In [1]:
import hydropy as hp
In [2]:
hp.draw_map(width=800)
Out[2]:
Use HydroCloud.org to find a stream gauge. Click on the red dots to learn more about a site.
In [3]:
help(hp.draw_map)
Help on function draw_map in module hydropy.ipython:
draw_map(width=700, height=400)
Draw an interactive map from hydrocloud.org.
Places a map of USGS stream gauges from hydrocloud.org into an IFrame and
displays it in an IPython interactive session. To use the map, click on
the red dots to display information about each USGS stream gauge.
Args:
-----
width (int): The width of the map iframe.
height (int): The height of the map iframe.
Returns:
--------
HTML display object.
Example:
--------
>>> import hydropy as hp
>>> hp.draw_map()
A map is drawn.
>>> hp.draw_map(width=900, height=600)
A big map is drawn!
TODO:
-----
- use ipywidgets to allow users to click on the map, and this will
return a value that can be used in another IPython cell. This
feature would allow the map to act as an interactive site selection
tool.
In [6]:
hp.draw_map?
In [5]:
help(hp)
Help on package hydropy:
NAME
hydropy - # Hydropy
DESCRIPTION
Analysis of hydrological oriented time series.
This package is especially designed to simplify the collection and analysis of
hydrology data in an interpretive Python session. 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
Hydropy is available through [Github](https://github.com/stijnvanhoey/hydropy)
and [PyPI](https://pypi.python.org/pypi/hydropy). The easiest way to use it is
with the Anaconda scientific distribution. If you have Anaconda, or if you
already have numpy, pandas, and matplotlib installed, then use Pip to install
hydropy like this::
$ pip install hydropy
## Basic Usage::
>>> import numpy as np
>>> import pandas as pd
>>> import hydropy as hp
>>> flowdata = pd.read_pickle("./data/FlowData")
>>> flowdata.head()
>>> myflowserie = hp.HydroAnalysis(flowdata)
>>> myflowserie.get_year('2009').get_season('summer').plot(figsize=(12,6))
PACKAGE CONTENTS
baseflow
composition
exceptions
flowanalysis
ipython
old_tests
reading_third_party_data
storm
DATA
__license__ = 'BSD'
__title__ = 'hydropy'
absolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0...
print_function = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0)...
FILE
c:\users\marty\google drive\pydev\src\hydropy\hydropy\__init__.py
In [5]:
hp.startsession()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-5-5756248fa4bd> in <module>()
----> 1 hp.startsession()
AttributeError: module 'hydropy' has no attribute 'startsession'
In [6]:
hp?
Content source: stijnvanhoey/hydropy
Similar notebooks: