Read a NetCDF file such as are created with e.g. oce2ncdf(),
interpreting variable names according to varTable (if provided).
This is intended to work with NetCDF files created by
oce2ncdf(), but it may also handle some other NetCDF files.
(Try oce::read.netcdf() if this fails. If that also fails,
you will need to work with the ncdf4 library directly.)
Note that the returned object does not get a specialized oce class,
because this is not known within NetCDF files. For ctd data,
try ncdf2ctd() instead of ncdf2oce(), or wrap the result
of calling the latter in oce::as.ctd().
ncdf2oce(ncfile = NULL, varTable = NULL, debug = 0)character value naming the input file.
character value indicating the variable-naming
scheme to be used, which is passed to read.varTable() to set
up variable names, units, etc.
integer, 0 (the default) for quiet action apart from messages and warnings, or any larger value to see more output that describes the processing steps.
ncdf2oce() returns an oce object.