View source: R/create.file.metadata.R
create.file.metadata | R Documentation |
Retrieve metadata about NetCDF-format files.
create.file.metadata(f, variable.name.map)
f |
The list of NetCDF files. |
variable.name.map |
A named character vector mapping standard variable names (tmax, tmin, prec) to NetCDF variable names. |
Given a list of NetCDF files and a mapping from standard variable names (tmax, tmin, prec) to NetCDF variable names, retrieve a set of standardized metadata.
A list containing time data (ts), dimension sizes (dim.size), dimension axes (dim.axes), source units (src.units), destination units (dest.units), a mapping from variables to files (v.f.idx), and a projection, if available.
## Not run: ## Get metadata about a single input file. input.files <- c("pr_NAM44_CanRCM4_ERAINT_r1i1p1_1989-2009.nc") f <- lapply(input.files, ncdf4::nc_open) f.meta <- create.file.metadata(f, variable.name.map) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.