This is a provisional function, written to handle provisional
netcdf files created from the python pyglider
processing chain
as well as files downloaded from the Glider IOOS ERDDAP site.
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 also
Other functions to read glider data:
read.glider.netcdf()
,
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()
,
read.glider.slocum.netcdf()