Hydropandas is a Python package for reading, analyzing and writing (hydrological) timeseries.
The HydroPandas package provides convenient read functions from various sources. The table below lists all API-accessible sources. Click a link in the first column for the documentation. The "API available" column indicates current availability (updated weekly).
Some sources also provide files readable by HydroPandas.
source observations file format location BRO Groundwater xml Netherlands DINO Groundwater / surface water csv Netherlands FEWS Groundwater / surface water xml Netherlands KNMI Meteorological txt Netherlands Pastastore Time series models NA NA Waterinfo Surface water quantity and quality csv / zip Netherlands Wiski (no docs available) Groundwater csv NetherlandsInstall the module with pip:
pip install hydropandas
For some functionality additional packages are required. Install all optional packages:
pip install hydropandas[full]
For installing in development mode, clone the repository and install by typing pip install -e .[full]
from the module root directory.
The HydroPandas package allows users to store a timeseries and metadata in a single object (Obs class). Or store a collection of timeseries with metadata in a single object (ObsCollection class). Both inheret from a pandas DataFrame and are extended with custom methods and attributes related to hydrological timeseries.
The Obs class holds the measurements and metadata for one timeseries. There are currently 7 specific Obs classes for different types of measurements:
Each of these Obs classes is essentially a pandas DataFrame with additional methods and attributes related to the type of measurement that it holds. Each Obs object also contains specific methods to read data from specific sources.
The ObsCollection class hold the data for a collection of Obs classes, e.g. 10 timeseries of the groundwater level in a certain area. The ObsCollection is essentialy a pandas DataFrame in which each timeseries is stored in a different row. Each row contains metadata (e.g. latitude and longitude of the observation point) and the Obs object that holds the measurements. It's recommended to use one ObsCollection per observation type — for example, group 10 GroundwaterObs in one collection and 5 PrecipitationObs in another.
More information on dealing with Obs and ObsCollection objects in the documentation
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4