open.nc {RNetCDF} | R Documentation |
Open an existing NetCDF dataset for reading and (optionally) writing.
open.nc(con, write=FALSE, share=FALSE, prefill=TRUE, ...)
con |
Filename of the NetCDF dataset to be opened. If the underlying NetCDF library supports OPeNDAP, |
write |
If |
share |
The buffer scheme. If |
prefill |
The prefill mode. If |
... |
Arguments passed to or from other methods (not used). |
This function opens an existing NetCDF dataset for access. By default, the dataset is opened read-only. If write=TRUE
, then the dataset can be changed. This includes appending or changing data, adding dimensions, variables, and attributes.
Object of class "NetCDF
" which points to the NetCDF dataset.
Pavel Michna, Milton Woods
http://www.unidata.ucar.edu/software/netcdf/
## Create a void NetCDF dataset nc <- create.nc("open.nc") close.nc(nc) ## Open the NetCDF dataset for writing nc <- open.nc("open.nc", write=TRUE) close.nc(nc)