This repository has been archived by the owner on Mar 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
/
index.html
92 lines (70 loc) · 3.98 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Hydropy by stijnvanhoey</title>
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
<script src="javascripts/scale.fix.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="wrapper">
<header>
<h1 class="header">Hydropy</h1>
<p class="header">Analysis of hydrological oriented time series.</p>
<ul>
<li class="download"><a class="buttons" href="https://github.com/stijnvanhoey/hydropy/zipball/master">Download ZIP</a></li>
<li class="download"><a class="buttons" href="https://github.com/stijnvanhoey/hydropy/tarball/master">Download TAR</a></li>
<li><a class="buttons github" href="https://github.com/stijnvanhoey/hydropy">View On GitHub</a></li>
</ul>
<p class="header">This project is maintained by <a class="header name" href="https://github.com/stijnvanhoey">stijnvanhoey</a></p>
</header>
<section>
<h1>
<a id="hydropy" class="anchor" href="#hydropy" aria-hidden="true"><span class="octicon octicon-link"></span></a>Hydropy</h1>
<p>Work with hydrological oriented time series. Basically, the package adds domain-specific functionalities to Pandas DataFrames, while keeping the power of it.</p>
<p>Examples are:</p>
<pre><code># Recession periods in June 2011:
myflowserie.get_year('2011').get_month("Jun").get_recess()
</code></pre>
<p><img src="./images/recession.png" alt="Recession periods"></p>
<pre><code># 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)
</code></pre>
<p><img src="./images/peaks.png" alt="Selected peaks"></p>
<pre><code># Select 3 storms out of the series
storms = myflowserie.derive_storms(raindata['P06_014'], 'LS06_347', number_of_storms=3, drywindow=96, makeplot=True)
</code></pre>
<p><img src="./images/storms.png" alt="Selected storms"></p>
<p>A more extended tutorial/introduction is provided in a ipython notebook. See the output at <a href="http://nbviewer.ipython.org/github/stijnvanhoey/hydropy/blob/master/hydropy_tutorial.ipynb">http://nbviewer.ipython.org/github/stijnvanhoey/hydropy/blob/master/hydropy_tutorial.ipynb</a></p>
<p>We acknowledge the Flemish Environmental Agency (VMM) for the data used in the tutorial. It can be downloaded from <a href="http://www.waterinfo.be">http://www.waterinfo.be/</a></p>
<p>Or <a href="hydropy_tutorial.slides.html">in a slide version as used for EGU 2015 conference</a></p>
<p>To install this, git clone the repo and then install it by:</p>
<pre><code>python setup.py install
</code></pre>
<p>Inspiration or possible useful extensions:</p>
<ul>
<li>Basically this is a restart of hydropy <a href="https://code.google.com/p/hydropy/">https://code.google.com/p/hydropy/</a>
</li>
<li>Hydroclimpy <a href="http://hydroclimpy.sourceforge.net/">http://hydroclimpy.sourceforge.net/</a>
</li>
<li>Georgakakos2004, ROC</li>
<li><a href="http://cran.r-project.org/web/packages/hydroTSM/vignettes/hydroTSM_Vignette.pdf">http://cran.r-project.org/web/packages/hydroTSM/vignettes/hydroTSM_Vignette.pdf</a></li>
</ul>
<p>The slides version of the notebook was made with nbconvert (using reveal.js), by following command:</p>
<pre><code>ipython nbconvert hydropy_tutorial.ipynb --to=slides --post=serve --reveal-prefix=reveal.js --config slides_config.py
</code></pre>
<p>Copyright (c) 2015, Stijn Van Hoey</p>
</section>
<footer>
<p><small>Hosted on <a href="https://pages.github.com">GitHub Pages</a> using the Dinky theme</small></p>
</footer>
</div>
<!--[if !IE]><script>fixScale(document);</script><![endif]-->
</body>
</html>