process_ctd: Master processing function for ctd data

View source: R/process.R

process_ctdR Documentation

Master processing function for ctd data

Description

Function takes in a filepath to a folder containing the cruise cnv CTD files, reads them in, combines them into one data object and then exports to a comma-separated-file and an odv text file.

Usage

process_ctd(
  ctd_folder,
  cruiseID = NULL,
  csv_folder = "output/csv",
  csv_filename = "ctd.csv",
  odv_folder = "output/odv/ctd",
  odv_filename = "ctd.txt",
  add_cruiseID = TRUE,
  ...
)

Arguments

ctd_folder

filepath to the folder containing ctd cnv files

cruiseID

Optional string specifying cruise ID (i.e. "S301")

csv_folder

The directory path to output the csv file. Set to NULL for no csv output.

csv_filename

The csv filename to output the data

odv_folder

The directory path to output the odv file. Set to NULL for no odv output.

odv_filename

The odv .txt filename to output the data

...

optional arguments passed to read_ctd_fold(). Most likely one you'd set would be the depth_step which is the depth resolution of output data in meters. Default is 1m.

add_cruise_ID

If cruiseID is set, logical to specify whether cruiseID should be appended to beginning of filenames for csv and odv output


benharden27/seaprocess documentation built on June 28, 2023, 7:20 p.m.