Learn R Programming

CompoundEvents (version 0.3.0)

SCEI: Standardized Compound Event Indicator (SCEI)

Description

Compute SCEI based on monthly precipitation and temperature.

Usage

SCEI(mp,mt,ts)

Value

The monthly SCEI series

Arguments

mp

monthly precipitation

mt

monthly temperature

ts

time scale

References

Hao, Z. et al., 2019a. Statistical prediction of the severity of compound dry-hot events based on El Ni??o-Southern Oscillation. J. Hydrol., 572, 243-250.

Examples

Run this code
mp=matrix(rnorm(120,0,1),ncol=1)
mt=matrix(rnorm(120,0,1),ncol=1)
ts=3; # ts<=12 otherwise you should revise line 98
nd<-SCEI(mp,mt,ts)
d=cbind(mp,mt,nd)
testd<-matrix(d, ncol=3,byrow=FALSE)

Run the code above in your browser using DataLab