vpr_ctd_read {vprr} | R Documentation |
Read and format CTD VPR data
Description
Acts as a wrapper for ctd_df_cols
Usage
vpr_ctd_read(ctd_files, station_of_interest, day, hour, col_list)
Arguments
ctd_files |
full file paths to vpr ctd |
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 list 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(s)
E. Chisholm & K. Sorochan
Examples
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)
[Package vprr version 0.2.3 Index]