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
ERA5 Meteorological ERA5 Global
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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hydropandas-0.19.0.tar.gz (276.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hydropandas-0.19.0-py3-none-any.whl (280.7 kB view details)

Uploaded Python 3

File details

Details for the file hydropandas-0.19.0.tar.gz.

File metadata

  • Download URL: hydropandas-0.19.0.tar.gz
  • Upload date:
  • Size: 276.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hydropandas-0.19.0.tar.gz
Algorithm Hash digest
SHA256 f34e661fd0dec5b6ba6dc1b72463578585a8599a2e68d101c4814f815355c4fc
MD5 8245e34b2974884e8c0321cb439dfcb5
BLAKE2b-256 dc8aa894e7f694fdd6bd705422f12ead7b1a0571ec92394a7b097cb3cf863e63

See more details on using hashes here.

File details

Details for the file hydropandas-0.19.0-py3-none-any.whl.

File metadata

  • Download URL: hydropandas-0.19.0-py3-none-any.whl
  • Upload date:
  • Size: 280.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hydropandas-0.19.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c2682c025ce7cf2e74ca7d0e73e17b1df52dd0cf9ee884c039d548adc751c92
MD5 1751e054a74582dedfd513db71969b9d
BLAKE2b-256 584bc7e90d6df3d6ea6e0c7cc67636360f059dbec0a102e23befadbe07b2d5ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page