create.nc {RNetCDF}R Documentation

Create a NetCDF Dataset

Description

Create a new NetCDF dataset.

Usage

create.nc(filename, clobber=TRUE)

Arguments

filename Filename for the NetCDF dataset to be created.
clobber The creation mode. If TRUE (default), any existing dataset with the same filename will be overwritten. Otherwise set to FALSE.

Details

This function creates a new NetCDF dataset, returning an object of class "NetCDF" that can be used in R. A creation mode flag specifies whether to overwrite any existing dataset with the same name.

Value

Object of class "NetCDF" which points to the NetCDF dataset.

Author(s)

Pavel Michna

References

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

Examples

##  Create a void NetCDF dataset
nc <- create.nc("foo.nc")
close.nc(nc)

[Package RNetCDF version 1.2-1 Index]