Skip to main content
Artesia

PyPi PyPi Supported Python Versions Ruff

Coverage hydropandas Documentation Status

HydroPandas

HydroPandas is a Python package for reading, analyzing and writing (hydrological) timeseries.

Reading

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).

source observations API available location
BRO Groundwater BRO Netherlands
GGMN Groundwater GGMN Global
GHCN Meteorological GHCN Global
KNMI Meteorological KNMI Netherlands
Lizard (Vitens) Groundwater Lizard Netherlands (Vitens)
Lizard (Rotterdam) Groundwater Lizard Rotterdam
Matroos Surface water Matroos Netherlands and neighbours
Waterconnect Groundwater Waterconnect South Australia
Waterinfo Surface water Waterinfo Netherlands

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 csv / zip Netherlands
Wiski (no docs available) Groundwater csv Netherlands

Install

Install 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.

Documentation

Get in touch

Structure

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

The Obs class holds the measurements and metadata for one timeseries. There are currently 7 specific Obs classes for different types of measurements:

  • GroundwaterObs: for groundwater measurements
  • WaterQualityObs: for groundwater quality measurements
  • WaterlvlObs: for surface water level measurements
  • ModelObs: for "observations" from a MODFLOW model
  • MeteoObs: for meteorological observations
  • PrecipitationObs: for precipitation observations, subclass of MeteoObs
  • EvaporationObs: for evaporation observations, subclass of MeteoObs

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

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

Authors

  • Onno Ebbens, Artesia
  • Ruben Caljé, Artesia
  • Davíd Brakenhoff, Artesia
  • Martin Vonk, Artesia

Metadata

Release files for hydropandas 0.20.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 hydropandas 0.20.2
File Size Uploaded
hydropandas-0.20.2.tar.gz 277.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hydropandas 0.20.2
File Interpreter ABI Platform
hydropandas-0.20.2-py3-none-any.whl Python 3 none any Details

Total release size: 560.4 kB

Release files / hydropandas-0.20.2.tar.gz

Download URL hydropandas-0.20.2.tar.gz
Size 277.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c2814780275f3ef330a6d3278f4b8b40f0d1ef84a6dfd5c2ecfda09818fd3d82
BLAKE2b-256 checksum
How to use checksums
73005dbde82b8d9f9b19d54828e4324aaa8861b1e877884c373181974665e841
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / hydropandas-0.20.2-py3-none-any.whl

Download URL hydropandas-0.20.2-py3-none-any.whl
Size 282.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c8c3d9042352d04bf743fb9483358d74096987206d92efafe3e9906caf95207
BLAKE2b-256 checksum
How to use checksums
ec68966f7340097e83e50717981c13d6d6d5e6c9daa1cea562dbe14a6fcdea39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.20.2 This release

2 release files

0.20.1

2 release files

0.19.0

2 release files

0.18.1

2 release files

0.18.0

2 release files

0.17.2

2 release files

0.17.1

2 release files

0.17.0

2 release files

0.13.1

2 release files

0.13.0

2 release files

0.12.6

2 release files

0.12.4

2 release files

0.12.2

2 release files

0.12.1

2 release files

0.12.0

2 release files

0.11.3

2 release files

0.11.2

2 release files

0.11.1

2 release files

0.11.0

2 release files

0.10.0

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.3

2 release files

0.3.1

2 release files

0.2.7

2 release files

0.2.3

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