SkillAgentSearch skills...

Pyflwdir

Fast methods to work with hydro- and topography data in pure Python.

Install / Use

/learn @Deltares/Pyflwdir
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

############################################################################# PyFlwDir: Fast methods to work with hydro- and topography data in pure Python #############################################################################

.. image:: https://codecov.io/gh/Deltares/PyFlwDir/branch/main/graph/badge.svg?token=N4VMHJJAV3 :target: https://codecov.io/gh/Deltares/PyFlwDir

.. image:: https://img.shields.io/badge/docs-latest-brightgreen.svg :target: https://deltares.github.io/pyflwdir/latest :alt: Latest docs

.. image:: https://mybinder.org/badge_logo.svg :alt: Binder :target: https://mybinder.org/v2/gh/Deltares/pyflwdir/main?urlpath=lab/tree/examples

.. image:: https://badge.fury.io/py/PyFlwDir.svg :target: https://pypi.org/project/PyFlwDir/ :alt: Latest PyPI version

.. image:: https://anaconda.org/conda-forge/PyFlwDir/badges/version.svg :target: https://anaconda.org/conda-forge/PyFlwDir

.. image:: https://zenodo.org/badge/409871473.svg :target: https://zenodo.org/badge/latestdoi/409871473

.. image:: https://img.shields.io/github/license/Deltares/pyflwdir?style=flat :alt: License :target: https://github.com/Deltares/pyflwdir/blob/main/LICENSE

Intro

PyFlwDir contains a series of methods to work with gridded DEM and flow direction datasets, which are key to many workflows in many earth sciences. PyFlwDir supports several flow direction data conventions and can easily be extended to include more. The package contains some unique methods such as Iterative Hydrography Upscaling (IHU) method to upscale flow directions from high resolution data to coarser model resolution.

PyFlwDir is in pure python and powered by numba <https://numba.pydata.org/>_ to keep it fast.

Featured methods

  • flow directions from elevation data using a steepest gradient algorithm
  • strahler stream order
  • flow direction upscaling
  • (sub)basin delineation
  • pfafstetter subbasins delineation
  • classic stream order
  • height above nearest drainage (HAND)
  • geomorphic floodplain delineation
  • up- and downstream tracing and arithmetics
  • hydrologically adjusting elevation
  • upstream accumulation
  • vectorizing streams
  • many more!

.. image:: https://raw.githubusercontent.com/Deltares/pyflwdir/main/docs/_static/pyflwdir.png :width: 100%

Installation

See installation guide <https://deltares.github.io/pyflwdir/latest/installation.html>_

Quickstart

See user guide <https://deltares.github.io/pyflwdir/latest/quickstart.html>_

Reference API

See reference API <https://deltares.github.io/pyflwdir/latest/reference.html>_

Development and Testing

Welcome to the PyFlwDir project. All contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome. See Contributing to PyFlwDir <https://deltares.github.io/pyflwdir/latest/contributing.html>__ for how we work.

Related Skills

View on GitHub
GitHub Stars105
CategoryDevelopment
Updated14d ago
Forks35

Languages

Python

Security Score

100/100

Audited on Mar 13, 2026

No findings