Skip to contents

Downloads and preprocesses raw structured WorldFish survey data from cloud storage into a binary format. The process includes organizing data from general and trip information into a structured format optimized for analysis.

Usage

preprocess_wf_surveys(log_threshold = logger::DEBUG)

Arguments

log_threshold

The logging threshold to use. Default is logger::DEBUG. See logger::log_levels for available options.

Value

None; the function is used for its side effects.

Details

Configurations are read from conf.yml with the following necessary parameters:

surveys:
  wf_surveys:
    asset_id:
    username:
    password:
    file_prefix:
  version:
    preprocess:
storage:
  storage_name:
    key:
    options:
      project:
      bucket:
      service_account_key:

The function uses logging to track progress.