wrapper_run_gapctd: Wrapper function for run_ctd (R workflow)

View source: R/run_gapctd.R

wrapper_run_gapctdR Documentation

Wrapper function for run_ctd (R workflow)

Description

Runs run_ctd() on all cnv files in a filepath.

Usage

wrapper_run_gapctd(
  cnv_dir_path = here::here("cnv"),
  processing_method,
  haul_df = NULL,
  vessel = NULL,
  cruise = NULL,
  channel = NULL,
  racebase_tzone = "America/Anchorage",
  ctd_tzone = "America/Anchorage"
)

Arguments

cnv_dir_path

Path to directory containing cnv files to be processed.

processing_method

Name of processing method; for saving output.

haul_df

Optional. data.frame containing haul data from RACEBASE. Must provide arguments for vessel and cruise if not provided.

vessel

Optional. Vessel code as a 1L numeric vector.

cruise

Optional. Cruise code as a numeric vector (>= 1L).

channel

Optional. RODBC channel; only used when haul_df = NULL.

racebase_tzone

Time zone for events and start_time in racebase/race_data tables. Passed to get_haul_data()

ctd_tzone

Time zone for CTD events. Passed to run_gapctd().

Value

Writes rds files with cast data to /output/[processing_method]


afsc-gap-products/gapctd documentation built on March 5, 2025, 3:42 a.m.