Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

close.nc

Close a NetCDF Dataset


Description

Close an open NetCDF dataset.

Usage

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, Milton Woods

References

Examples

##  Create a void NetCDF dataset
file1 <- tempfile("close_", fileext=".nc")
nc <- create.nc(file1)
close.nc(nc)
unlink(file1)

RNetCDF

Interface to 'NetCDF' Datasets

v2.4-2
GPL (>= 2) | file LICENSE
Authors
Pavel Michna [aut], Milton Woods [aut, cre]
Initial release
2020-09-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.