ncdf4.helpers is a collection of helpful R functions for working with netCDF files that conform to the CF Conventions. The CF Conventions define metadata needed to specify the spatial and temporal properties of a dataset and a description of what each variable represents. This library can be used in addition to ncdf4 to work with netCDF files that follow this standard.
You can install ncdf4.helpers from CRAN within R:
install.packages("ncdf4.helpers")
library("ncdf4.helpers")
Help on the package or individual functions is available within R:
?ncdf4.helpers
?nc.get.time.series
Eventually much of this will be automated, but for now:
- Update the version in
DESCRIPTIONand describe changes in CHANGELOG - Regenerate the documentation by running roxygen::roxygenize("/path/to/ncdf4.helpers") with R
- Add the following two lines to the
NAMESPACEfile generated by roxygen:
importFrom("stats", "na.omit")
importFrom("utils", "head", "tail")
- Commit changes to github
- If the github tests pass, you can build the new package with
R CMD build ncdf4.helpersand upload to CRAN if relevant.