View source: R/get.variable.metadata.R
get.climdex.variable.metadata | R Documentation |
Returns metadata for specified Climdex variables.
get.climdex.variable.metadata(vars.list, template.filename, metadata.config)
vars.list |
The list of variables, as returned by |
template.filename |
The filename template to be used when generating filenames. |
metadata.config |
config object read using |
This function returns metadata suitable for use in NetCDF files for the specified variables.
A data frame containing the following:
long.nameLong names for the variable
var.nameVariable name for use in the file
unitsUnits for the variable
time.resThe time resolution of the variable.
base.period.attrWhether to include a base period attribute
standard.nameStandard name to use for the variable
filenameFilename to be written out
## Get metadata (including filenames) for specified variables. fn <- "pr_day_BCCAQ+ANUSPLIN300+MRI-CGCM3_historical+rcp85_r1i1p1_19500101-21001231.nc" var.list2 <- get.climdex.variable.list("prec", time.resolution="annual") md <- get.climdex.variable.metadata(var.list2, fn)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.