Read a netcdf file, trying to interpret its contents sensibly.
read.netcdf(file, ..., encoding = NA, debug = getOption("oceDebug"))
An oce object.
the name of a file
ignored
ignored.
an integer specifying whether debugging information is
to be printed during the processing. This is a general parameter that
is used by many oce
functions. Generally, setting debug=0
turns off the printing, while higher values suggest that more information
be printed. If one function calls another, it usually reduces the value of
debug
first, so that a user can often obtain deeper debugging
by specifying higher debug
values.
It is important to note that this is a preliminary version of this function, and much about it may change without notice. Indeed, it may be removed entirely.
Below are some features that may be changed.
The names of data items are not changed from those in the netcdf file on the assumption that this will offer the least surprise to the user.
An attempt is made to find some common metadata from global
attributes in the netcdf file. These attributes include
Longitude
, Latitude
, Ship
and Cruise
.
Before they are stored in the metadata, they are converted to
lower case, since that is the oce convention.