get.climdex.functions: Returns a list of Climdex functions, with parameters curried...

View source: R/get.functions.R

get.climdex.functionsR Documentation

Returns a list of Climdex functions, with parameters curried in.

Description

Returns a list of Climdex functions, with parameters curried in.

Usage

get.climdex.functions(vars.list, metadata.config, fclimdex.compatible = TRUE)

Arguments

vars.list

The variable list, as created by get.climdex.variable.list.

fclimdex.compatible

Whether to create fclimdex compatible functions.

Details

This function takes a variable list (as created by get.climdex.variable.list) and creates a list of functions corresponding to the specified indices, with parameters such as time resolution curried in. This allows for these functions to be called with just the t object as an argument, easing the automation of computing indices.

Value

A list of functions, named by the variable they compute.

Examples

## Get Climdex functions for a variable list with all appropriate params
## curried in, so that all they take is a t object.
cdx.funcs <- get.climdex.functions(get.climdex.variable.list(c("tmax", "tmin")))


ECA-D/ecad_indices_grid documentation built on Nov. 23, 2022, 6:04 a.m.