Description Usage Arguments Details Value Author(s) References Examples
Inquire about a NetCDF dimension.
1 | dim.inq.nc(ncfile, dimension)
|
ncfile |
Object of class " |
dimension |
Either the ID or the name of the dimension to be inquired. |
This function returns information about a NetCDF dimension. Information about a dimension include its name, its ID, its length and a flag if it is the unlimited dimension of this NetCDF dataset, if any. The length of the unlimited dimension, if any, is the number of records written so far.
A list containing the following components:
id |
Dimension ID. |
name |
Dimension name. |
length |
Length of dimension. For the unlimited dimension, this is the number of records written so far. |
unlim |
|
Pavel Michna
http://www.unidata.ucar.edu/software/netcdf/
1 2 3 4 5 6 7 8 9 10 11 | ## Create a new NetCDF dataset and define two dimensions
nc <- create.nc("dim.inq.nc")
dim.def.nc(nc, "station", 5)
dim.def.nc(nc, "time", unlim=TRUE)
## Inquire about the dimensions
dim.inq.nc(nc, 0)
dim.inq.nc(nc, "time")
close.nc(nc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.