GithubHelp home page GithubHelp logo

nbiswasuw / hydroeval Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thibhlln/hydroeval

0.0 1.0 0.0 456 KB

An efficient evaluator for streamflow time series in Python

License: GNU General Public License v3.0

Python 100.00%

hydroeval's Introduction

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).

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.