Skip to content
Salvador Navas edited this page Aug 4, 2026 · 3 revisions

pyhydra Wiki

pyhydra is a modular Python library for hydrological and climate analysis. It contains reusable tools for hydroclimatic data access, event extraction, extreme-value analysis, stochastic generation, bias correction, spatial analysis, hybrid flood downscaling and selected hydrological/hydraulic model automation.

The library is the Python core used by the companion HYDRA platform, but it is maintained as an independent package:

Scope

Use pyhydra when you need Python building blocks for research workflows such as:

  • downloading or reading rainfall, river-discharge, soil and climate-projection datasets;
  • extracting precipitation or discharge events;
  • fitting GEV/GPD extreme-value models and deriving return levels;
  • applying delta and quantile-based climate bias correction;
  • working with regional frequency analysis, interpolation and copulas;
  • generating point rainfall series, spatial stochastic fields or NSRP/STNSRP precipitation simulations when optional libraries are available;
  • preparing selected input files for HEC-HMS, SWAT+, HEC-RAS and SFINCS;
  • analysing flood-map ensembles, Manning roughness uncertainty and hybrid downscaling outputs;
  • deciding, from a pilot run charged against a simulation budget, whether an ensemble should be reduced and emulated or propagated directly by Monte Carlo.

External hydrological and hydraulic models are not bundled. Model workflows require the corresponding software, project files and local execution environment.

Main Pages

Relationship With HYDRA

pyhydra is the installable Python package. HYDRA is the web/Jupyter/API platform that uses pyhydra as a dependency and exposes selected workflows through a user interface and containerized environment.

When documenting research software, cite pyhydra for the Python package and HYDRA for the platform, deployment layer or integrated application.

Clone this wiki locally