Skip to main content

# Hydropy

[![Pypi](https://img.shields.io/pypi/v/hydropy.svg)](https://pypi.python.org/pypi/hydropy) [![Build Status](https://img.shields.io/travis/stijnvanhoey/hydropy.svg)](https://travis-ci.org/stijnvanhoey/hydropy) [![License](https://img.shields.io/badge/License-BSD%202–Clause-blue.svg)](https://opensource.org/licenses/BSD-2-Clause)

Analysis of hydrological oriented time series.

This package is designed to simplify the collection and analysis of hydrology data. Use HydroPy in a Jupyter notebook and save your analysis so that you can recreate your procedures and share them with others.

Hydropy uses the power of Numpy and Pandas to quickly process large datasets. Matplotlib and Seaborn are built-in to Hydropy, allowing you to create publication-ready diagrams quickly and easily.

Try Hydropy in a notebook: [hydropy_tutorial.ipynb](https://github.com/stijnvanhoey/hydropy/blob/master/hydropy_tutorial.ipynb)

## Example:

# Recession periods in June 2011: myflowserie.get_year(‘2011’).get_month(“Jun”).get_recess()

![Recession periods](./data/recession.png)

# Peak values above 90th percentile for station LS06_347 in july 2010: myflowserie[‘LS06_347’].get_year(‘2010’).get_month(“Jul”).get_highpeaks(150, above_percentile=0.9)

![Selected peaks](./data/peaks.png)

# Select 3 storms out of the series storms = myflowserie.derive_storms(raindata[‘P06_014’], ‘LS06_347’, number_of_storms=3, drywindow=96, makeplot=True)

![Selected storms](./data/storms.png)

A more extended tutorial/introduction is provided in a ipython notebook: [hydropy_tutorial.ipynb](https://github.com/stijnvanhoey/hydropy/blob/master/hydropy_tutorial.ipynb)

We acknowledge the Flemish Environmental Agency (VMM) for the data used in the tutorial. It can be downloaded from http://www.waterinfo.be/.

To install this, git clone the repo and then install it by:

python setup.py install

To test the functionalities yourself without installing it, use following test environment provided by Binder: [![Binder](http://mybinder.org/badge.svg)](http://mybinder.org/repo/stijnvanhoey/hydropy)

Inspiration or possible useful extensions: * Basically this is a restart of hydropy https://code.google.com/p/hydropy/ * Hydroclimpy http://hydroclimpy.sourceforge.net/ * Georgakakos2004, ROC * http://cran.r-project.org/web/packages/hydroTSM/vignettes/hydroTSM_Vignette.pdf

The slides version of the notebook was made with nbconvert (using reveal.js), by following command:

ipython nbconvert hydropy_tutorial.ipynb –to=slides –post=serve –reveal-prefix=reveal.js –config slides_config.py

http://nbviewer.ipython.org/format/slides/github/stijnvanhoey/hydropy/blob/master/hydropy_tutorial.ipynb#/

Copyright (c) 2015-2017 Stijn Van Hoey, Martin Roberge, and Contributors

Credits

Development Lead

Contributors

Martin Roberge <mroberge@towson.edu>

Metadata

Release files for hydropy 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hydropy 0.1.2
File Size Uploaded
hydropy-0.1.2.tar.gz 3.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for hydropy 0.1.2
File Interpreter ABI Platform
hydropy-0.1.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 3.2 MB

Release files / hydropy-0.1.2.tar.gz

Download URL hydropy-0.1.2.tar.gz
Size 3.2 MB
Tags Source
SHA-256 checksum
How to use checksums
1d89925fc9aec9ec47dd736416e10775ab35292f07ed8c604cb93cfa64aef97e
BLAKE2b-256 checksum
How to use checksums
0d56d53bebb5d8cd33ce0104494a08c123c7c37ef1b6bd3fab0a3a94225c7755
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / hydropy-0.1.2-py2.py3-none-any.whl

Download URL hydropy-0.1.2-py2.py3-none-any.whl
Size 23.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ccf9f9e9f2117c79008cca1b3274bc419fb81b8e1e4b3095140db9846993c360
BLAKE2b-256 checksum
How to use checksums
788e6baab5d31d0b7fd369edc8cd1ee301a70de5f3d22c91948ac4d6881d72f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page