close.nc | R Documentation |
Close an open NetCDF dataset.
close.nc(con, ...)
con |
Object of class |
... |
Arguments passed to or from other methods (not used). |
This function closes an open NetCDF dataset. After an open NetCDF dataset is closed, its NetCDF ID may be reassigned to the next NetCDF dataset that is opened or created. Therefore, the passed object (ncfile
) should be deleted by the user after calling this function.
Pavel Michna, Milton Woods
https://www.unidata.ucar.edu/software/netcdf/
## Create a void NetCDF dataset
file1 <- tempfile("close_", fileext=".nc")
nc <- create.nc(file1)
close.nc(nc)
unlink(file1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.