Skip to main content

HydroEval: An Efficient Evaluator for Streamflow Time Series In Python

Project description

License: GPL v3 PyPI Version DOI

HydroEval - An efficient evaluator for streamflow time series in Python

HydroEval is an open-source evaluator for streamflow time series in Python. It is licensed under GNU GPL-3.0 (see licence file provided). The purpose of this evaluator is to compare observed and simulated hydrographs using one or more objective functions. HydroEval is designed to calculate all objective functions in a vectorised manner (using numpy, and therefore C code in the background) which makes for very efficient computation of the objective functions.

How to Install

HydroEval is available on PyPI, so you can simply use pip and the name of the package:

python -m pip install hydroeval

You can also use pip and a link to the GitHub repository directly:

python -m pip install git+https://github.com/ThibHlln/hydroeval.git

Alternatively, you can download the source code (i.e. the GitHub repository) and, from the downloaded directory itself, run the command:

python setup.py install

How to Use

A tutorial in the form of a Jupyter notebook is available to get started with the usage of HydroEval's API. The input files required for the tutorial are all provided in the examples/ folder.

How to Cite

If you are using HydroEval, please consider citing the software as follows (click on the link to get the DOI of a specific version):

Objective Functions Available

The objective functions currently available in HydroEval to evaluate the fit between observed and simulated stream flow time series are as follows:

Moreover, KGE and NSE can be calculated in a bounded version following Mathevet et al. (2006):

  • Bounded Nash-Sutcliffe Efficiency (nse_c2m)
  • Bounded Original Kling-Gupta Efficiency (kge_c2m)
  • Bounded Modified Kling-Gupta Efficiency (kgeprime_c2m)
  • Bounded Non-Parametric Kling-Gupta Efficiency (kgenp_c2m)

Finally, any of the objective functions can take an optional argument transform. This argument allows to apply a transformation on both the observed and the simulated streamflow time series prior the calculation of the objective function. The possible transformations are as follows:

  • Inverted flows (using transform='inv')
  • Square Root-transformed flows (using transform='sqrt')
  • Natural Logarithm-transformed flows (using transform='log')

Dependencies

HydroEval requires the Python package numpy to be installed on the Python interpreter where hydroeval is installed.

Version History

Acknowledgment

This tool was developed with the financial support of Ireland's Environmental Protection Agency (Grant Number 2014-W-LS-5).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hydroeval-0.0.3.tar.gz (5.6 kB view details)

Uploaded Source

Built Distributions

hydroeval-0.0.3-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

hydroeval-0.0.3-py2-none-any.whl (20.2 kB view details)

Uploaded Python 2

File details

Details for the file hydroeval-0.0.3.tar.gz.

File metadata

  • Download URL: hydroeval-0.0.3.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.15

File hashes

Hashes for hydroeval-0.0.3.tar.gz
Algorithm Hash digest
SHA256 4217e0ad9075dd33bb8f3fa6ab8fe8b3897a7d81b5acb2d6c61aaf0016472615
MD5 8042c0cf7fa423684a02037830d433be
BLAKE2b-256 5a389c3c1579413360afbaee6186a54dd328f6e26c640afd797c6dc4f68b45f3

See more details on using hashes here.

File details

Details for the file hydroeval-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: hydroeval-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.15

File hashes

Hashes for hydroeval-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8ee8c7fcc35a6fa92d1638606f8180ab40199073d66592c17d50bfc00a49ff41
MD5 5fcb7c761eff5732271be154ce840edd
BLAKE2b-256 b717e32bd50ba4e135983d4d5bb8679b1fab51ece8e49453d13c4710b84d1105

See more details on using hashes here.

File details

Details for the file hydroeval-0.0.3-py2-none-any.whl.

File metadata

  • Download URL: hydroeval-0.0.3-py2-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.15

File hashes

Hashes for hydroeval-0.0.3-py2-none-any.whl
Algorithm Hash digest
SHA256 c569f486593e47d4483eb37604b11fbc6fe338596a2c92eb6cec455c0aca4e4b
MD5 0fae12ab7c721c6c87feb4202a3b678a
BLAKE2b-256 34e9f4033dd82140a74ae45ad68ce0838da16bafee904211f851bca9c2304bc2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page