View source: R/precipitation.R
| ck_r99p | R Documentation |
ETCCDI canonical index R99p. Annual total precipitation on days where
daily precipitation exceeds the 99th percentile of wet-day precipitation
in a reference period (default 1961 to 1990). Same convention as
ck_r95p().
ck_r99p(precip, dates, ref_start = 1961L, ref_end = 1990L, period = "annual")
precip |
Numeric vector of daily precipitation (mm). |
dates |
Date vector of the same length as |
ref_start, ref_end |
Integer. Reference period boundary years (inclusive). Defaults to 1961 and 1990. |
period |
Character. Aggregation period: |
A data frame with columns period, value, index, and unit.
set.seed(1)
dates <- seq(as.Date("1961-01-01"), as.Date("1991-12-31"), by = "day")
precip <- pmax(rgamma(length(dates), shape = 0.4, scale = 8) - 1, 0)
tail(ck_r99p(precip, dates))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.