tlu_get_casts: Wrapper function to retrieve cast data and aggregate

View source: R/tlu_get_casts.R

tlu_get_castsR Documentation

Wrapper function to retrieve cast data and aggregate

Description

Description goes here... writes binned cast data to an rds file after interpolating missing surface values.

Usage

tlu_get_casts(
  directory_structure = NULL,
  survey,
  cast.dir = "downcast",
  time.buffer = 20,
  bin.size = 2,
  bin.gap = 6,
  agg.fun = geometric.mean,
  silent = TRUE,
  ...
)

Arguments

directory_structure

File path to csv file that lists directories to be processed.

survey

RACE survey region as a character vector ("BS", "NBS", "AI", "GOA" or "SLOPE")

cast.dir

Cast direction, either "upcast" or "downcast"

time.buffer

Time buffer in seconds to add/subtract from upcast and downcast times. Default = 20

bin.size

Passed to trawllight::filter_stepwise. Depth bin size for aggregating light measurements. Default = 2

bin.gap

Passed to trawllight::filter_stepwise. Maximum allowable gap in observations before a profile is considered to not meet continuity standards. Default = 6 (i.e., three bins if bin.size = 2)

agg.fun

Function used to calculate summary statistic for a depth bin. Default = geometric.mean

silent

Passed to...

...

Optional arguments passed to filter_stepwise or calculate_attenuation.


sean-rohan/trawllight documentation built on Jan. 13, 2023, 10:43 p.m.