Skip to main content

hydroflow

License: MIT Python Docs

A distributed, physics-based hydrological + hydrodynamic model. hydroflow turns a bare-earth DEM and a rain event into a routed flood hydrograph — Variable Source Area runoff, Green-Ampt infiltration and impervious shedding, feeding grid-based kinematic / diffusive-wave / Muskingum–Cunge channel routing, with optional GPU acceleration and Google Earth Engine forcing.

📖 Documentation

Full docs, guides and API reference → pyhydroflow.readthedocs.io

Learn the science interactively → the hydroflow course

Installation

pip install hydroflow            # core (CPU)
pip install "hydroflow[gpu]"     # + CuPy/CUDA acceleration
pip install "hydroflow[gee]"     # + Google Earth Engine forcing

Quick example

from hydroflow import Config, run_pipeline

cfg = Config(DEM_PATH="dem.tif", OUTPUT_DIR="results/",
             OUTPUT_POINT=(27.632, 85.293))   # (lat, lon) of the outlet
cfg.update_output_paths()
run_pipeline(cfg, stages=("process_dem", "routing"))   # → results/hydrograph.csv

Or from the command line:

hydroflow init-config -o run.yaml   # template config
hydroflow run -c run.yaml           # process_dem + routing

What it offers

  • DEM → watershed — reproject, pit-fill, D8 flow direction/accumulation and delineation (pysheds or pyflwdir).
  • Runoff generationnone · coefficient · raster · scs_cn · vsa_opm; VSA saturation-excess + Green-Ampt + impervious as composable mechanisms.
  • Flood routing — kinematic, diffusive-wave, or Muskingum–Cunge, with always-on mass-balance checking.
  • Satellite forcing — optional IMERG rainfall, SERVES soil deficit, SoilGrids, LULC/LCZ via Google Earth Engine (degrades gracefully offline).
  • CPU / GPU — one code path (NumPy or CuPy), automatic CPU fallback.
  • Three interfaces — Python API, a hydroflow CLI, and a QGIS plugin, all driven by one Config object.

Links

License

MIT © Saurav Bhattarai. Based on the One-Parameter Model of Pradhan & Ogden (2010).

Download files

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

Source Distribution

hydroflow-0.1.1.tar.gz (123.1 kB view details)

Uploaded Source

Built Distribution

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

hydroflow-0.1.1-py3-none-any.whl (138.9 kB view details)

Uploaded Python 3

File details

Details for the file hydroflow-0.1.1.tar.gz.

File metadata

  • Download URL: hydroflow-0.1.1.tar.gz
  • Upload date:
  • Size: 123.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.9

File hashes

Hashes for hydroflow-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e6879f6f147c72c66ac68e5389aa9329d67aba2f1a7794b4c4b0ddebb4620c20
MD5 8be6a0f5116ed59073b8140035efb28a
BLAKE2b-256 8ab92ea0f615034eb451254ae9f4bab49370da520b67e918a8a2e73d6061f972

See more details on using hashes here.

File details

Details for the file hydroflow-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: hydroflow-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 138.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.9

File hashes

Hashes for hydroflow-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f18c0dbcb25eb804a1ff7fca8d76eef43a98febe52588bc6d1962a01a1149430
MD5 853c2434140a008a4166a0832b34a868
BLAKE2b-256 bc3be7164fc79c45df5fe5555057990e711b9e132e580ceaac4727b52f65ffc8

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 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