Learn R Programming

evapoRe (version 1.0.1)

detect_exeve: Detect Extreme Evaporation Events (ExEvE)

Description

The function detect_exeve identifies extreme evaporation events based on standardized evaporation and extreme thresholds.

Usage

detect_exeve(x, EXTREMES_THRES = 0.95, LOW_THRES = 0.8)

Value

A data.table with original columns and added columns:

  • std_value — standardized evaporation

  • pentad_std_q80, pentad_std_q95 — pentad thresholds

  • value_above_low_thres, extreme, evap_event — flags

  • above_low_thres_id, extreme_id, event_id — event group IDs

Arguments

x

A data.table containing columns: lon, lat, date, and value, representing daily evaporation values.

EXTREMES_THRES

Numeric. Quantile threshold used to define extreme evaporation events. Default is 0.95.

LOW_THRES

Numeric. Lower quantile threshold. Default is 0.80.

Examples

Run this code
# \donttest{
# Example using an RDS file (only run if file exists)
evap_path <- file.path(tempdir(), "czechia_evap_gleam.rds")
if (file.exists(evap_path)) {
  evap <- readRDS(evap_path)
  events <- detect_exeve(evap)
}
# }

Run the code above in your browser using DataLab