View source: R/get.variable.list.R
get.climdex.variable.list | R Documentation |
Returns a list of Climdex variables given constraints.
get.climdex.variable.list( source.data.present, metadata.config, time.resolution = c("all", "annual", "monthly", "seasonal", "halfyear"), climdex.vars.subset = NULL )
source.data.present |
A vector of strings naming the data that's present; at least one of (tmin, tmax, prec, tavg). |
metadata.config |
config object read using |
time.resolution |
The time resolutions to compute indices at. See |
climdex.vars.subset |
A character vector of lower-case names of Climdex indices to calculate (eg: tr, fd, rx5day). See |
This function takes a character vector which specifies what source data is present and a time resolution, and generates a list of names consisting of the variable and the time resolution, separated by an underscore.
A character vector containing variable names with time resolutions appended.
create.indices.from.files
## Get all variables which require tmin and/or tmax, for all time resolutions. var.list1 <- get.climdex.variable.list(c("tmax", "tmin")) ## Get all variables which require prec with an annual time resolution. var.list2 <- get.climdex.variable.list("prec", time.resolution="annual") ## Get the intersection of a set list of vars and available data. sub.vars <- c("su", "id", "tr", "fd", "gsl", "csdi", "wsdi", "r10mm") var.list3 <- get.climdex.variable.list("tmax", climdex.vars.subset=sub.vars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.