climdex.cwd: Maximum Consecutive Wet Days

View source: R/indices.R

climdex.cwdR Documentation

Maximum Consecutive Wet Days

Description

This function computes the climdex index CWD.

The spells.can.span.years option specifies whether spells can cross year boundaries – i.e., span years. The default for this is the same as for fclimdex.

Usage

climdex.cwd(ci, freq = c("monthly", "annual", "halfyear", "seasonal"),
  spells.can.span.years = TRUE)

Arguments

ci

Object of type climdexInput.

spells.can.span.years

Whether to allow spells to span years

Details

This function takes a climdexInput object as input and computes the climdex index CWD: the annual maximum length of wet spells, in days. Wet spells are considered to be sequences of days where daily precipitation is at least 1mm per day.

Value

A vector containing the length of the spell for each year.

References

http://etccdi.pacificclimate.org/list_27_indices.shtml

See Also

climdexInput.raw, climdexInput.csv, spell.length.max.


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