RNetCDF (version 2.9-2)

RNetCDF: R Interface to NetCDF Datasets

Description

This package provides an interface to Unidata's NetCDF library functions (version 4) and furthermore access to Unidata's UDUNITS (version 2) calendar conversions. The routines and the documentation follow the NetCDF and UDUNITS C interface, so the corresponding manuals can be consulted for more detailed information.

NetCDF is an abstraction that supports a view of data as a collection of self-describing, portable objects that can be accessed through a simple interface. Array values may be accessed directly, without knowing details of how the data are stored. Auxiliary information about the data, such as what units are used, may be stored with the data. Generic utilities and application programs can access NetCDF datasets and transform, combine, analyze, or display specified fields of the data.

First versions of the R and C code of this package were based on the netCDF package by Thomas Lumley and the ncdf package by David Pierce. Milton Woods added some enhancements of the NetCDF library versions 3.6 and 4.x.

Arguments

Functions

Help pages are available for the following RNetCDF functions:

CategoryFunction
Datasetclose.nc
create.nc
file.inq.nc
open.nc
print.nc
read.nc
sync.nc
Groupgrp.def.nc
grp.inq.nc
grp.rename.nc
Attributeatt.copy.nc
att.delete.nc
att.get.nc
att.inq.nc
att.put.nc
att.rename.nc
Dimensiondim.def.nc
dim.inq.nc
dim.rename.nc
Data typetype.def.nc
type.inq.nc
Variablevar.def.nc
var.get.nc
var.inq.nc
var.par.nc
var.put.nc
var.rename.nc
Calendarutcal.nc
utinit.nc
utinvcal.nc

Data Types

The external types supported by all NetCDF datasets are:

NC_CHAR8-bit characters intended for representing text.
NC_BYTE8-bit signed integers.
NC_SHORT16-bit signed integers.
NC_INT32-bit signed integers.
NC_FLOAT32-bit IEEE floating-point.
NC_DOUBLE64-bit IEEE floating-point.

Datasets in NetCDF4 format support additional external types, including:

NC_UBYTE8-bit unsigned integers.
NC_USHORT16-bit unsigned integers.
NC_UINT32-bit unsigned integers.
NC_INT6464-bit signed integers.
NC_UINT6464-bit unsigned integers.
NC_STRINGvariable length character strings.

These types are called “external”, because they correspond to the portable external representation for NetCDF data. When a program reads external NetCDF data into an internal variable, the data is converted, if necessary, into the specified internal type. Similarly, if you write internal data into a NetCDF variable, this may cause it to be converted to a different external type, if the external type for the NetCDF variable differs from the internal type.

In addition to the external types, NetCDF4 supports user-defined types. See type.def.nc for more explanation.

Author

Pavel Michna, Milton Woods

References

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

https://www.unidata.ucar.edu/software/udunits/