Learn R Programming

SeaVal (version 1.1.1)

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.

Examples

Run this code
# \donttest{
dt = climatology_threshold_exceedence(chirps_monthly)
# }

Run the code above in your browser using DataLab