close.nc: Close a NetCDF Dataset

Description Usage Arguments Details Author(s) References Examples

View source: R/RNetCDF.R

Description

Close an open NetCDF dataset.

Usage

1
close.nc(con, ...)

Arguments

con

Object of class "NetCDF" which points to the NetCDF dataset (as returned from open.nc).

...

Arguments passed to or from other methods (not used).

Details

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.

Author(s)

Pavel Michna

References

http://www.unidata.ucar.edu/software/netcdf/

Examples

1
2
3
##  Create a void NetCDF dataset
nc <- create.nc("close.nc")
close.nc(nc)

RNetCDF documentation built on May 2, 2019, 6:12 p.m.