dim.get.ncv {ncvar} | R Documentation |
Get a dimension of a given variable. For internal use only.
dim.get.ncv(ncfile, dimension)
ncfile |
Object of class "NetCDF", returned from
open.nc . |
dimension |
ID or name of the dimension. |
Get a dimension of a given variable. For internal use only.
Object of class "dim.ncv". NULL
for a scalar variable.
Juerg Schmidli
## Create example file foo.ncv() ## Open file nc <- open.nc(paste(tempdir(),"/foo.nc",sep="")) ## Get dimension (id=0) dim <- dim.get.ncv(nc, 0) close.nc(nc)