saveNetCDF: Save a cmip5data object to netCDF format
Description
There are at least three ways to save a cmip5data object.
First, save it. Second, use as.data.frame. Third, this function
will write out a new netCDF file readable by any netCDF-aware software.Usage
saveNetCDF(x, file = NULL, path = "./", verbose = FALSE,
saveProvenance = TRUE, originalNames = FALSE, force.ncdf = FALSE)
Arguments
file
Filename desired. If omitted one will be generated automatically.
verbose
logical. Print info as we go?
saveProvenance
Save the provenance separately?
originalNames
logical. Use original dimension names from file?
force.ncdf
Force use of the older ncdf package for testing?
Value
- The fully-qualified filename that was written (invisible).
Details
If no filename is provided, a meaningful one will be assigned based on the
CMIP5 naming convention (but appending 'RCMIP5'). loadCMIP5 should be
able to read this file. If saveProvenance is specified, the provenance is saved
separately in a comma-separated file of the same name but appending "_prov.csv".
(Provenance messages are always saved as netcdf file attributes.)