Add weight of species to merged landings
calculate_weights.Rd
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.