Open a NetCDF Dataset
Open an existing NetCDF dataset for reading and (optionally) writing.
open.nc(con, write=FALSE, share=FALSE, prefill=TRUE, diskless=FALSE, persist=FALSE, mpi_comm=NULL, mpi_info=NULL, ...)
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 |
diskless |
When |
persist |
When |
mpi_comm |
Fortran handle of MPI communicator for parallel I/O. The default of |
mpi_info |
Fortran handle of MPI Info object for parallel I/O. The default value |
... |
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, returned invisibly.
Pavel Michna, Milton Woods
## Create a void NetCDF dataset file1 <- tempfile("open_", fileext=".nc") nc <- create.nc(file1) close.nc(nc) ## Open the NetCDF dataset for writing nc <- open.nc(file1, write=TRUE) close.nc(nc) unlink(file1)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.