R

evalhyd-r is an R package to evaluate deterministic and probabilistic streamflow predictions.

Getting started

Brief usage overview

Deterministic evaluation
> obs <- rbind(c(4.7, 4.3, 5.5, 2.7))
> prd <- rbind(c(5.3, 4.2, 5.7, 2.3))
> library(evalhyd)
> evalhyd::evald(obs, prd, c("NSE"))
[[1]]
, , 1
[,1]
[1,] 0.8629808
Probabilistic evaluation
> obs <- rbind(c(4.7, 4.3, 5.5, 2.7, 4.1))
> prd <- array(
+     rbind(c(5.3, 4.2, 5.7, 2.3, 3.1),
+           c(4.3, 4.2, 4.7, 4.3, 3.3),
+           c(5.3, 5.2, 5.7, 2.3, 3.9)),
+     dim = c(1, 1, 3, 5)
+ )
> thr <- rbind(c(4., 5.))
> library(evalhyd)
> evalhyd::evalp(obs, prd, c("BS"),
+                thr, events="high")
[[1]]
, , 1, 1, 1

          [,1]
[1,] 0.2222222

, , 1, 1, 2

          [,1]
[1,] 0.1333333