compute.climdex.indices: Compute Climdex indices using provided data.

View source: R/compute.indices.R

compute.climdex.indicesR Documentation

Compute Climdex indices using provided data.

Description

Compute Climdex indices using provided data.

Usage

compute.climdex.indices(in.dat, cdx.funcs, ts, base.range, metadata.config)

Arguments

in.dat

The input data to compute indices on.

cdx.funcs

The functions to be applied to the data, as created by get.climdex.functions.

ts

The associated time data, as created by nc.get.time.series.

base.range

The base range; a vector of two numeric years.

metadata.config

object containing the relevant metadata configuration information.

Details

Given the provided data and functions, compute the Climdex indices defined by the functions.

Value

A list of data for each index.

Examples

library(climind)

## Prepare input data
in.dat <- list(tmax=ec.1018935.tmax$MAX_TEMP)
cdx.funcs <- get.climdex.functions(get.climdex.variable.list(names(in.dat)))
in.dat$northern.hemisphere <- TRUE
ts <- as.PCICt(do.call(paste, ec.1018935.tmax[,c("year", "jday")]),
               format="%Y %j", cal="gregorian")

## Compute indices
res <- compute.climdex.indices(in.dat, cdx.funcs, ts, c(1981, 1990), FALSE)


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