ERI: Calculates Components Of the ERI Index

Description Usage Arguments Value Author(s) Examples

Description

Returns the temperature, precipitation and wind indexes required for the European Risk Index

Usage

1
ERI(proj, ref, index = "temp", period = 1, quantile = 0.9, threshold_upper = NULL, threshold_lower = 1, season_length = 365)

Arguments

proj

Vector of projected or forecasted temperatures

ref

Vector of temperatures from the references period

period

The width of the moving window for calculating the mean (heat index) or sum (flood index).

threshold_upper

The exceedance threshold above which values will be recorded.

threshold_lower

The exceedance threshold below which values will be recorded.

quantile

The quantile used to define the threshold from the reference data.

\tem

season_length The number of days in a year.

Value

$reference.index: the time series of the standardized reference index
$projection.index: the time series of the standardized projection index
$ref.index.sd: the sd of the non-standardized reference index

Author(s)

History:
0.1 - 2017-02 (A. Hunter, alasdair.hunter@bsc.es) - Original code

Examples

1
2
3
ref <- rnorm(3650)
proj <- rnorm(3650) + seq(0.001,3.65,0.001)
hw <- ERI(proj, ref, quantile = 0.9, period = 1, season_length = 365)

alasdairhunter/MagicWP7 documentation built on May 10, 2019, 8:50 a.m.