climdex.rx5day: Monthly Maximum 5-day Consecutive Precipitation

View source: R/indices.R

climdex.rx5dayR Documentation

Monthly Maximum 5-day Consecutive Precipitation

Description

This function computes the climdex index Rx5day.

Usage

climdex.rx5day(ci, freq = c("monthly", "annual", "halfyear", "seasonal"),
  center.mean.on.last.day = FALSE)

Arguments

ci

Object of type climdexInput.

freq

Time frequency to aggregate to.

center.mean.on.last.day

Whether to center the 5-day running mean on the last day of the window, instead of the center day.

Details

This function takes a climdexInput object as input and computes the climdex index Rx5day: monthly or annual maximum 5-day consecutive precipitation.

Value

A vector containing the value of the index for each month of each year.

Note

The default behaviour of climdex.rx5day differs somewhat from fclimdex, as fclimdex and climdex.pcic differ on the definition of Rx5day. The running sum series computed by fclimdex is off by 2 days, and the first day a running sum can be computed for is left out entirely. The behaviour of fclimdex can be replicated by setting center.mean.on.last.day to TRUE.


ECA-D/climind documentation built on Nov. 26, 2022, 10:20 a.m.