ncdf4.helpers: ncdf4.helpers: helper functions for NetCDF files.

Description Details References

Description

This package provides a number of helper functions for NetCDF files opened using the ncdf4 package.

Details

Dealing with NetCDF format data is unnecessarily difficult. The ncdf4 package does a good job of making many lower-level operations easier. The ncdf4.helpers package aims to build higher-level functions upon the foundation of ncdf4.

One concept central to much of the package is the idea of indexing, and dealing with data, by axis rather than by indices or by specific dimension names. The axes used are:

Indexing by axis avoids the pitfalls of using data in forms other than (X, Y, Z, T), such as (T, X, Y). Avoiding using dimension names directly avoids problems when using projected data.

The functions in the package can be broken down into the following categories:

  1. Functions which get, put, and transform data: nc.put.var.subset.by.axes, nc.get.var.subset.by.axes, nc.conform.data

  2. Functions which deal with identifying axes, variables, and types of dimensions: nc.get.variable.list, nc.get.dim.axes, nc.get.dim.for.axis, nc.get.dim.bounds.var.list, nc.get.dim.names, nc.get.dim.axes.from.names, nc.get.coordinate.axes, nc.get.compress.dims, nc.is.regular.dimension.

  3. Functions which deal with getting, classifying, and using time information: nc.get.time.series, nc.make.time.bounds, nc.get.time.multiplier.

  4. Functions which make sense of projection information: nc.get.proj4.string.

  5. Functions to ease chunked processing of data in parallel: get.cluster.worker.subsets.

  6. Functions to ease dealing with CMIP5 data: get.split.filename.cmip5.

  7. Utility functions: get.f.step.size.

References

http://cfconventions.org/Data/cf-conventions/cf-conventions-1.8/cf-conventions.html


ncdf4.helpers documentation built on Oct. 15, 2021, 5:19 p.m.