pyflwdir
Fast methods to work with hydro- and topography data in pure Python.
https://github.com/deltares/pyflwdir
Category: Hydrosphere
Sub Category: Freshwater and Hydrology
Keywords
basins d8 hydrography hydrology ldd topography watershed
Keywords from Contributors
hydrological-modelling wflow
Last synced: about 8 hours ago
JSON representation
Repository metadata
Fast methods to work with hydro- and topography data in pure Python.
- Host: GitHub
- URL: https://github.com/deltares/pyflwdir
- Owner: Deltares
- License: mit
- Created: 2021-09-24T07:22:34.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-09-22T11:22:40.000Z (3 months ago)
- Last Synced: 2025-12-01T05:52:24.921Z (25 days ago)
- Topics: basins, d8, hydrography, hydrology, ldd, topography, watershed
- Language: Python
- Homepage: https://deltares.github.io/pyflwdir/latest
- Size: 43.2 MB
- Stars: 100
- Watchers: 7
- Forks: 33
- Open Issues: 10
- Releases: 11
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.txt
- Authors: AUTHORS.txt
- Zenodo: .zenodo.json
README.rst
#############################################################################
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 `_ 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 `_
Quickstart
----------
See `user guide `_
Reference API
-------------
See `reference API `_
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 `__ for how we work.
Owner metadata
- Name: Deltares
- Login: Deltares
- Email: oss@deltares.nl
- Kind: organization
- Description: Deltares is an independent institute for applied research in the field of water and subsurface.
- Website: https://www.deltares.nl/en/
- Location: Delft, The Netherlands
- Twitter: deltares
- Company:
- Icon url: https://avatars.githubusercontent.com/u/6613768?v=4
- Repositories: 74
- Last ynced at: 2023-03-03T19:30:55.614Z
- Profile URL: https://github.com/Deltares
GitHub Events
Total
- Create event: 10
- Release event: 1
- Issues event: 24
- Watch event: 21
- Delete event: 10
- Issue comment event: 24
- Push event: 26
- Pull request review event: 2
- Pull request review comment event: 1
- Pull request event: 23
- Fork event: 4
Last Year
- Create event: 8
- Release event: 1
- Issues event: 15
- Watch event: 15
- Delete event: 8
- Issue comment event: 14
- Push event: 12
- Pull request review event: 2
- Pull request review comment event: 1
- Pull request event: 17
- Fork event: 3
Committers metadata
Last synced: about 21 hours ago
Total Commits: 428
Total Committers: 5
Avg Commits per committer: 85.6
Development Distribution Score (DDS): 0.021
Commits in past year: 8
Committers in past year: 2
Avg Commits per committer in past year: 4.0
Development Distribution Score (DDS) in past year: 0.125
| Name | Commits | |
|---|---|---|
| DirkEilander | d****r@g****m | 419 |
| verseve | w****d@g****m | 6 |
| vzagorovskiy | v****y@g****m | 1 |
| Martijn Visser | m****r@g****m | 1 |
| Jens de Bruijn | 2****n | 1 |
Issue and Pull Request metadata
Last synced: 23 days ago
Total issues: 42
Total pull requests: 45
Average time to close issues: 6 months
Average time to close pull requests: about 1 month
Total issue authors: 15
Total pull request authors: 7
Average comments per issue: 1.79
Average comments per pull request: 0.27
Merged pull request: 36
Bot issues: 0
Bot pull requests: 0
Past year issues: 11
Past year pull requests: 20
Past year average time to close issues: 20 days
Past year average time to close pull requests: 2 days
Past year issue authors: 5
Past year pull request authors: 4
Past year average comments per issue: 1.18
Past year average comments per pull request: 0.1
Past year merged pull request: 14
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- DirkEilander (13)
- AquaPore (8)
- debpal (4)
- jensdebruijn (2)
- JasonDalton (2)
- schoeller (2)
- Jiangchao3 (2)
- MauKruisheer (2)
- vzagorovskiy (1)
- lotruheawea (1)
- mn5hk (1)
- robgpita (1)
- yutabvb (1)
- lj512lj512 (1)
- forestbat (1)
Top Pull Request Authors
- DirkEilander (34)
- jensdebruijn (2)
- gurbuzf (2)
- robgpita (2)
- vzagorovskiy (2)
- caiostringari (2)
- verseve (1)
Top Issue Labels
- enhancement (5)
- documentation (2)
- invalid (1)
- needs refinement (1)
Top Pull Request Labels
Package metadata
- Total packages: 4
-
Total downloads:
- pypi: 11,671 last-month
- Total dependent packages: 9 (may contain duplicates)
- Total dependent repositories: 4 (may contain duplicates)
- Total versions: 49
- Total maintainers: 1
proxy.golang.org: github.com/Deltares/pyflwdir
- Homepage:
- Documentation: https://pkg.go.dev/github.com/Deltares/pyflwdir#section-documentation
- Licenses: mit
- Latest release: v0.5.10 (published 10 months ago)
- Last Synced: 2025-12-23T19:01:55.899Z (2 days ago)
- Versions: 10
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 5.401%
- Average: 5.583%
- Dependent repos count: 5.764%
proxy.golang.org: github.com/deltares/pyflwdir
- Homepage:
- Documentation: https://pkg.go.dev/github.com/deltares/pyflwdir#section-documentation
- Licenses: mit
- Latest release: v0.5.10 (published 10 months ago)
- Last Synced: 2025-12-23T19:01:55.955Z (2 days ago)
- Versions: 10
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 5.401%
- Average: 5.583%
- Dependent repos count: 5.764%
pypi.org: pyflwdir
Fast methods to work with hydro- and topography data in pure Python.
- Homepage: https://github.com/Deltares/pyflwdir
- Documentation: https://deltares.github.io/pyflwdir
- Licenses: MIT License
- Latest release: 0.5.10 (published 10 months ago)
- Last Synced: 2025-12-23T19:01:56.774Z (2 days ago)
- Versions: 17
- Dependent Packages: 6
- Dependent Repositories: 1
- Downloads: 11,671 Last month
-
Rankings:
- Dependent packages count: 1.597%
- Stargazers count: 9.68%
- Forks count: 10.952%
- Average: 11.292%
- Downloads: 12.143%
- Dependent repos count: 22.088%
- Maintainers (1)
conda-forge.org: pyflwdir
- Homepage: https://github.com/deltares/pyflwdir/
- Licenses: MIT
- Latest release: 0.5.6 (published about 3 years ago)
- Last Synced: 2025-12-23T19:01:59.223Z (2 days ago)
- Versions: 12
- Dependent Packages: 3
- Dependent Repositories: 3
-
Rankings:
- Dependent packages count: 15.638%
- Dependent repos count: 17.914%
- Average: 32.19%
- Stargazers count: 44.857%
- Forks count: 50.352%
Dependencies
- affine
- cartopy
- descartes
- geopandas
- jupyter
- matplotlib
- numba >=0.48
- numpy
- python >=3.6
- rasterio
- scipy
- setuptools_scm
- actions/checkout v2 composite
- conda-incubator/setup-miniconda v2 composite
- peaceiris/actions-gh-pages v3.8.0 composite
- actions/checkout v3 composite
- actions/checkout v2 composite
- actions/download-artifact v3 composite
- actions/setup-python v4 composite
- actions/upload-artifact v3 composite
- pypa/gh-action-pypi-publish v1.5.1 composite
- actions/checkout v2 composite
- codecov/codecov-action v1 composite
- conda-incubator/setup-miniconda v2 composite
- actions/checkout v2 composite
- conda-incubator/setup-miniconda v2 composite
Score: 15.675979525199475