detect_exeve {evapoRe} | R Documentation |
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)
Arguments
x |
A |
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. |
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
Examples
# 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)
}
[Package evapoRe version 1.0.1 Index]