A streamflow characteristics calculator in Python

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

eflowcalc is an open-source calculator of ecological streamflow characteristics in Python. It is licensed under GNU GPL-3.0. The package currently gives the Python scientific community access to 159 ecologically relevant streamflow characteristics inventoried by Olden and Poff (2003). A key strength of eflowcalc is the vectorisation of all calculations (using numpy, and therefore C code in the background) which makes for very efficient computation of the streamflow characteristics.

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

Hallouin, T. (XXXX). eflowcalc: a streamflow characteristics calculator in Python (Version X.X.X). Zenodo. https://doi.org/10.5281/zenodo.2566757

Brief overview of the API

from datetime import datetime, timedelta
import numpy as np
import eflowcalc as efc

times = [datetime(2010, 1, 1) + timedelta(days=d) for d in range(3652)]
flows = np.random.uniform(3, 50, 3652)
area = 120.7  # km2

ma41 = efc.calculator(efc.ma41, times, flows, area)

ma41, dh4, ra7 = efc.calculator((efc.ma41, efc.dh4, efc.ra7), times, flows, area)

Streamflow characteristics available

The streamflow characteristics currently available in eflowcalc are as follows:

Note

The computations implemented in eflowcalc are partially inspired by the work of Henriksen et al. (2006), however eflowcalc is neither endorsed by these authors nor by the U.S. Geological Survey.

Acknowledgement

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