Code Monkey home page Code Monkey logo

hydroanalysis's Introduction

DOI

HydroAnalysis

HydroAnalysis is a Python package to calculate indices and metrics useful in the everyday job of an hydrologist.

The package is the result of the re-organization of code that I have used during my research and that I have decided to publish because of its supposed usefulness.

Generic interface

Please refer to the docstrings of the single functions for documentation.

Generally all the functions have the same interface

def calculate_index_name(flux1, quality, flux2, fluxN, other_time_series):
    # code

where:

  • flux1, flux2, fluxN are fluxes needed to calculate the index/metric
  • quality is a vector that is used to signal time steps where the quality of the data is not good and, therefore, are not used to calculate the index/metric.
  • other_time_series: are other time series needed to calculate the index/metric. Example could be the season.

Files in the package

  • meteo_indices.py: contains the functions to calculate the indices related to meteorological data
  • metrics.py: contains the functions to calculate the metrics related to the hydrological data
  • streamflow_signatures.py: contains the functions to calculate the signatures related to the hydrological data
  • utils.py: contains the functions used by the other files

Documentation

The documentation is work in progress. It is not complete yet but can be found in ReadTheDocs.

Examples

Examples of the usage of the package are not available yet. However, the code should be self-explanatory..just read carefully the docstrings.

Testing

There is no systematic testing implemented here. However, the code has been manually tested against other available code (e.g., R code from Addor et al. (2017)) when possible.

Your contribution

Please feel free to contribute to the package. If you have any suggestion or you want to contribute to the documentation, please contact the author and have a look at the documentation page explaining how to do it.

hydroanalysis's People

Contributors

dalmo1991 avatar

Stargazers

Huang Zeqin avatar Jonatan Moreno avatar  avatar spirit_only avatar Olivier Bonte avatar Jinghao Hu avatar  avatar Nele Reyniers avatar  avatar baoqingling avatar Raoul Collenteur avatar

Watchers

 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.