R: R Interface to NetCDF Datasets

RNetCDF {RNetCDF} | R Documentation

## R Interface to NetCDF Datasets

### Description

This package provides an interface to Unidata's NetCDF library functions (version 3) and furthermore access to Unidata's UDUNITS 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.

The external types supported by the NetCDF interface are:

`NC_CHAR` | 8-bit characters intended for representing text.
`NC_BYTE` | 8-bit signed or unsigned integers.
`NC_SHORT` | 16-bit signed integers.
`NC_INT` | 32-bit signed integers.
`NC_FLOAT` | 32-bit IEEE floating-point.
`NC_DOUBLE` | 64-bit IEEE floating-point.

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.

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 version 3.6.

A high-level interface based on this library is the `ncvar` package by Juerg Schmidli. It simplifies the handling of datasets which contain lots of metadata. Different metadata conventions are supported including the CF metadata conventions used by the climate modeling and forecasting community.

### Note

The NetCDF and the UDUNITS library must be already installed on the system.

### Author(s)

Pavel Michna

### References

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

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

[Package RNetCDF version 1.9-1 Index]