Description Usage Arguments Details Author(s) References Examples
Rename a NetCDF dimension.
1 | dim.rename.nc(ncfile, dimension, newname)
|
ncfile |
Object of class " |
dimension |
Either the ID or the name of the dimension to be renamed. |
newname |
The new dimension name. |
This function renames an existing dimension in a NetCDF dataset open for writing. A dimension cannot be renamed to have the same name as another dimension.
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.rename.nc")
dim.def.nc(nc, "station", 5)
dim.def.nc(nc, "time", unlim=TRUE)
## Rename the dimensions
dim.rename.nc(nc, 0, "mystation")
dim.rename.nc(nc, "time", "mytime")
close.nc(nc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.