close.ncdf {ncdf} | R Documentation |
Closes an open netCDF file, which flushes any unwritten data to disk.
close.ncdf( con, ... )
con |
An object of class ncdf (as returned by either function
open.ncdf() or function create.ncdf() , indicating what file to read from. |
... |
Other arguments passed to or from other methods. |
Data in a netCDF file might be cached in memory, for better performance. This data is written out when the file is closed. Therefore, always remember to close the file when done with it.
David W. Pierce dpierce@ucsd.edu
http://www.unidata.ucar.edu/packages/netcdf/
## Not run: nc <- open.ncdf("salinity.nc") ## Not run: data <- get.var.ncdf( nc ) # Read the "only" var in the file ## Not run: close.ncdf(nc)