cdfcont {clim.pact} | R Documentation |
Obtains the variable names and dimension names from a
netCDF file. This routine provides some of the information returned by
names.netCDF
, however this function does not depend on
the netCDF
package. If it doesn't work, make sure to set the
path to include the location of ncdump
and ncgen
(two
netCDF executables, usually under a netcdf direcory). Alternatively,
set the path
.
cdfcont(filename,path="",method=NULL)
filename |
name of netCDF file. |
path |
Path to the location where ncdump and ncgen are located. |
method |
The name of the function making calls to the
system. In Linux, it is 'system', in Windows 'shell'. If set to
NULL, the code tries to decide between these two by probing using Sys.info |
a list object containing two character vectors: vars
and
dims
holding the names of the variables and
dimensions. dims
gives the dimensions for each of the variable,
and may contain several names within the same string, separated by a
comma, eg. "LONS","LATS",and "LATS, LONS" (strsplit("TIME, LATS,
LONS",", ")
can be used to split up these variables into seperate
names).
'time.origin' returns the time_origin, 'add.offset' gives the 'add_offset'
attribute, and 'scale.factor' gives the scale_factor.
R.E. Benestad