Giter Club home page Giter Club logo

hydroeval's Introduction

An evaluator for streamflow time series in Python

PyPI Version DOI License: GPL v3 GitHub Actions Test Workflow Status

hydroeval is an open-source evaluator of goodness of fit between simulated and observed streamflow time series in Python. It is licensed under GNU GPL-3.0. The package provides a bundle of the most commonly used objective functions in hydrological science. The package 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.

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

Hallouin, T. (XXXX). HydroEval: Streamflow Simulations Evaluator (Version X.X.X). Zenodo. https://doi.org/10.5281/zenodo.2591217

Brief overview of the API

import hydroeval as he

simulations = [5.3, 4.2, 5.7, 2.3]
evaluations = [4.7, 4.3, 5.5, 2.7]

nse = he.evaluator(he.nse, simulations, evaluations)

kge, r, alpha, beta = he.evaluator(he.kge, simulations, evaluations)

Objective functions available

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

Moreover, some objective functions 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, the evaluator 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')

Acknowledgement

Early versions of this tool were developed with the financial support of Ireland's Environmental Protection Agency (Grant Number 2014-W-LS-5).

hydroeval's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.