calculate_weights: Add weight of species to merged landings

View source: R/calculate-weights.R

calculate_weightsR Documentation

Add weight of species to merged landings

Description

Downloads merged landings and calculates the weight of the catch.

Usage

calculate_weights(log_threshold = logger::DEBUG)

Arguments

log_threshold

The (standard Apache logj4) log level used as a threshold for the logging infrastructure. See logger::log_levels for more details

Details

The file is then uploaded to the cloud. The name is the same as for merged landings but with "_weight" at the end. The parameters needed are:

surveys:
  merged_landings:
    file_prefix:
    version:
storage:
  storage_name:
    key:
    options:
      project:
      bucket:
      service_account_key:

Progress through the function is tracked using the package logger.

Value

No outputs. This function is used for it's side effects.


WorldFishCenter/peskas.timor.data.pipeline documentation built on April 14, 2025, 1:47 p.m.