Python

evalhyd-python is a Python package to evaluate deterministic and probabilistic streamflow predictions.

Getting started

Brief usage overview

Deterministic evaluation
>>> import numpy
... obs = numpy.array(
...     [[4.7, 4.3, 5.5, 2.7]]
... )
... prd = numpy.array(
...     [[5.3, 4.2, 5.7, 2.3]]
... )
>>> import evalhyd
... evalhyd.evald(obs, prd, ["NSE"])
[array([[[0.86298077]]])]
Probabilistic evaluation
>>> import numpy
... obs = numpy.array(
...     [[4.7, 4.3, 5.5, 2.7, 4.1]]
... )
... prd = numpy.array(
...     [[[[5.3, 4.2, 5.7, 2.3, 3.1],
...        [4.3, 4.2, 4.7, 4.3, 3.3],
...        [5.3, 5.2, 5.7, 2.3, 3.9]]]]
... )
... thr = numpy.array([[4., 5.]])
>>> import evalhyd
... evalhyd.evalp(obs, prd, ["BS"],
...               thr, events="high")
[array([[[[[0.22222222, 0.13333333]]]]])]