# Simple arrays with single thresholds
tas <- array(rnorm(100, mean = 25, sd = 5), dim = c(time = 10, lat = 5, lon = 2))
prlr <- array(abs(rnorm(100, mean = 50, sd = 20)), dim = c(time = 10, lat = 5, lon = 2))
# Check where temperature > 25 AND precipitation > 40
result <- MultiVarExceedingThreshold(
data = list(tas, prlr),
operators = list(">", ">"),
thresholds = list(25, 40)
)
Run the code above in your browser using DataLab