Acts as a wrapper for ctd_df_cols

vpr_ctd_read(ctd_files, station_of_interest, day, hour, col_list)

Arguments

ctd_files

full file paths to vpr ctd .dat files

station_of_interest

VPR station name

day

Day of interest, if not provided will be pulled from file path

hour

Hour of interest, if not provided will be pulled from file path

col_list

Optional chr vector of CTD data column names

Details

Reads CTD data and adds day, hour, and station information. Calculates sigma T and depth variables from existing CTD data to supplement raw data. If there are multiple hours of CTD data, combines them into single dataframe.

WARNING ctd_df_cols is hard coded to accept a specific order of CTD data columns. The names and values in these columns can change based on the specific instrument and should be updated/confirmed before processing data from a new VPR.

Author

E. Chisholm & K. Sorochan

Examples


station_of_interest <- 'test'

ctd_files <- system.file("extdata/COR2019002/rois/vpr5/d222", "h03ctd.dat.gz",
package = "vprr", mustWork = TRUE)

ctd_dat_combine <- vpr_ctd_read(ctd_files, station_of_interest)
#> Warning: CTD data columns named based on defaults!