att.get.ncv {ncvar} | R Documentation |
Get all attributes for a given variable. For internal use only.
att.get.ncv(ncfile, variable, natts)
ncfile |
Object of class "NetCDF", returned from open.nc . |
variable |
ID or name of the variable from which the attribute will be
read, or NC_GLOBAL for the global attributes. |
natts |
The number of attributes to be read. |
Get all attributes for a given variable. For internal use only.
List of objects of class "att.ncv". An empty list if no attributes exist.
Juerg Schmidli
## Create example file foo.ncv() ## Open file nc <- open.nc(paste(tempdir(),"/foo.nc",sep="")) ## Get attribute att <- att.get.ncv(nc, "temperature", 1) close.nc(nc)