read.ctd.ios: Read an IOS-formatted CTD file

View source: R/read.ctd.ios.R

read.ctd.iosR Documentation

Read an IOS-formatted CTD file

Description

The read.ctd.ios() function reads CTD data in either of two formats used by the Institution of Ocean Sciences, of the Department of Fisheries and Oceans, Canada. The formats are inferred from the value of the filename argument. If that value ends in ".ctd", then read.ctd.ios.text() is called to read the data. If it ends in ".nc", then read.ctd.ios.netcdf() is called. (No other endings are handled.)

Usage

read.ctd.ios(filename, missingValue = NULL, debug = 0)

Arguments

filename

character value specifying the file name.

missingValue

numeric value that is to be converted to NA. If this is NULL, the default, then an attempt to infer a reasonable value is made by examining information stored in the file.

debug

integer value controlling the printing of information that may help in debugging problems. The default, 0, means to work silently; positive values mean that some information should be printed.

Value

read.ctd.ios() returns an oce object of class ctd.

Development note

  1. Add lines to nameMaker() and unitMaker() as required, to handle column names that are not yet handled.

Author(s)

Dan Kelley

References

https://catalogue.cioos.ca/dataset/ios_ctd_profiles


dankelley/dfo documentation built on Nov. 21, 2022, 2:35 a.m.