vpr_ctd_read.Rd
Acts as a wrapper for ctd_df_cols
vpr_ctd_read(ctd_files, station_of_interest, day, hour, col_list)
full file paths to vpr ctd .dat
files
VPR station name
Day of interest, if not provided will be pulled from file path
Hour of interest, if not provided will be pulled from file path
Optional list of CTD data column names
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.
station_of_interest <- 'test'
ctd_files <- system.file("extdata/COR2019002/rois/vpr5/d222", "h03ctd.dat",
package = "vprr", mustWork = TRUE)
ctd_dat_combine <- vpr_ctd_read(ctd_files, station_of_interest)
#> Warning: CTD data columns named based on defaults!