Learn R Programming

iki.dataclim (version 1.0)

computeClimdex: Compute a comprehensive set of climdex indices

Description

This function computes a comprehensive set of indices using the climdex.pcic package.

Usage

computeClimdex(myClimdex)

Arguments

myClimdex
A climdexInput object.

Value

A list:
annual.climdex
A zoo object containing a comprehensive set of annual climdex indices.
monthly.climdex
A zoo object containing a comprehensive set of monthly climdex indices.

Details

This function calls a number of functions for annual and monthly indices from the climdex.pcic package.

The following annual indices are computed, always using the default options of the climdex.pcic package: cdd, cwd, fd, id, r20mm, r99ptot, rx1day, sdii, tn10p, tnn, tr, tx90p, txx, csdi, dtr, gsl, prcptot, r10mm, r95ptot, rnnmm, rx5day, su, tn90p, tnx, tx10p, txn, wsdi.

The following monthly indices are computed, always using the default options of the climdex.pcic package: rx1day, tn10p, tnn, tx90p, txx, dtr, rx5day, tn90p, tnx, tx10p, txn.

References

http://cccma.seos.uvic.ca/ETCCDMI/list_27_indices.shtml

See Also

climdex.pcic-package, zoo-package

Examples

Run this code
data(potsdam)
date <- as.Date(potsdam$date)
myDataclim <- createDataclim(date=date, tmin=potsdam$tmin, tmax=potsdam$tmax,
                          prec=potsdam$prec, basePeriod=1981:2010)
myClimdex <- createClimdex(myDataclim, basePeriod=1981:2010)
climdexIndices <- computeClimdex(myClimdex)

Run the code above in your browser using DataLab