climatology_threshold_exceedence: Get climatological prediction for exceedence probabilities.
Description
The climatological prediction for exceedence probabilities is the fraction of observed years where the observation exceeded the threshold.
It's calculated from leave-one-year-out climatology.
Usage
climatology_threshold_exceedence(
obs_dt,
o = "prec",
by = setdiff(dimvars(obs_dt), "year"),
thresholds = c(200, 300, 350, 400)
)
Value
Data table with the climatological probabilities of exceedence for the provided thresholds.
Arguments
obs_dt
Data table containing observations.
o
column name of the observation. Mostly observed precipitation in mm.
by
By which columns should be grouped?
thresholds
vector of thresholds for which the exceedence probabilities should be derived.