This is a provisional function, written to handle some particular files available to the author.
Arguments
- file
Name of a netcdf file.
- debug
an integer specifying whether debugging information is to be printed during processing. If this is not provided, then the value of
getOption("gliderDebug",0)
is used. The printing is done by a call togliderDebug
. Settingdebug=0
turns off this form of debugging, while higher values may yield more information, depending on the function. If oneglider
function calls another, it passes the value ofdebug
but decreased by 1, which means that the value ofdebug
controls not just the breadth of debugging, but also the depth.
Value
A glider object, i.e. one inheriting from glider. (This class inherits from oce::oce in the oce package.)
Details
The data are copied directly from the file, except that time
is converted from an integer to a POSIX time. Variable names containing
underscores are renamed as e.g. profile_direction
to profileDirection
, although the [[,glider-method
mechanism works with either name, e.g. if g
is a glider object, then
g[["profileDirection"]]
and
g[["profile_direction"]]
give the same result.
See the SeaExplorer vignette for examples of using this function.
See also
Other functions to read glider data:
read.glider.netcdf.ioos()
,
read.glider.seaexplorer.delayed()
,
read.glider.seaexplorer.realtime()
,
read.glider.slocum.csv()
,
read.glider.slocum.netcdf()
Other functions to read netcdf glider data:
read.glider.netcdf.ioos()
,
read.glider.slocum.netcdf()