h3-lowpoints
Find closed depressions ("low points") in an elevation model and describe them on H3 hexagon cells at any resolution, ready for maps, 3D views and analysis.
Status: alpha (0.x). The method is tested against independent methods and on real terrain. A depression is a feature of the terrain model: this library does not say whether water collects there, and its output is not a flood map.
Documentation: ujjawal-01.github.io/h3-lowpoints (also in docs/), with getting started, concepts, outputs, the Python API, the command line, data sources, large regions, the map, verification, accuracy and limits, a glossary and the roadmap.
What it does
- Fills the terrain the way water would, to find every place water cannot flow out of, with its depth, area, volume and lowest point.
- Maps every depressed pixel onto H3 cells: deepest depth, depressed area and volume, number of lowest points, and how much of each cell the data covers. Coarser resolutions are exact roll-ups, so one result serves every scale from a street to a continent.
- Scales to regions far larger than memory with an exact tiled method: the answer never depends on the tile size, and tables are written to disk as they are produced.
- Fetches open data for any box: USGS 3DEP (US, 30 m, 10 m and 1 m lidar), Copernicus GLO-30 (worldwide), land cover and design rainfall.
- Shows results as a self-contained, shareable 3D web map.
- Verifies any result, anywhere, with checks that need no reference answer.
Install
Python 3.10 or newer:
pip install h3-lowpoints # core
pip install "h3-lowpoints[viz,sources,parquet]" # + notebook maps, drain/building files, Parquet output
National dataset
Every closed depression on land in the lower 48 US states, from USGS 3DEP 30 m with open water masked: 10.6 million depressions and 34 million H3 resolution-10 cells, as Parquet, with a description of methods, columns and limits. Open data (CC BY 4.0) on Zenodo: doi.org/10.5281/zenodo.23552773.
Quick start
from h3lowpoints import analyze
from h3lowpoints.sources.usgs import fetch_3dep
fetch_3dep((-97.9, 30.1, -97.6, 30.4), "austin.tif") # USGS 3DEP, 30 m bare earth
res = analyze("austin.tif", min_depth=0.5) # H3 resolution chosen from the data: 10
res.depressions # one row per depression: depth, area, volume, lowest point, ...
res.cells # one row per H3 cell: deepest depth, area, volume, counts, coverage
res.at_resolution(7) # the same cells rolled up exactly to resolution 7
res.to_html("map.html") # interactive 3D map, one file
res.save("results") # depressions.csv, cells.csv, meta.json (or format="parquet")
The same from the command line:
h3lowpoints fetch-dem --from 3dep --bbox -97.9 30.1 -97.6 30.4 --out austin.tif
h3lowpoints analyze austin.tif --min-depth 0.5 --out results --map map.html
h3lowpoints verify results
A whole US region, straight from the 3DEP tiles, verified on completion:
h3lowpoints build --bbox -98 30 -96 32 --out region --min-depth 0.5 --cache-dir tiles --format parquet
What counts as a depression
The terrain is filled with the priority-flood algorithm; water leaves over the raster's edge and
into nodata or masked areas. Fill level minus ground is the depth, and an 8-connected area of
positive depth whose deepest point reaches min_depth (default 0.15 m) is one depression. The
precise rules are in docs/definition.md.
Limits
- Ponds, quarries, sinkholes and street sags are all depressions; the library does not know which hold water or cause problems, nor about drains the elevation data cannot see.
- Results are only as good as the elevation data: keep
min_depthabove its vertical error, and prefer bare-earth data. Road embankments over culverts appear as dams. - Heights must be in metres.
The full list is in docs/limitations.md.
Project
Contributing · Changelog · Citation
Code is Apache-2.0 (see LICENSE and NOTICE). No data is included; data fetched through the library keeps its own licence (USGS 3DEP, NLCD and NOAA Atlas 14 are public domain; Copernicus GLO-30 and ESA WorldCover require attribution). See docs/data-sources.md.
Metadata
Release files for h3-lowpoints 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| h3_lowpoints-0.1.1.tar.gz | 185.6 kB | With provenance | Details for h3_lowpoints-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| h3_lowpoints-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for h3_lowpoints-0.1.1-py3-none-any.whl |
Total release size: 277.8 kB
Release files / h3_lowpoints-0.1.1.tar.gz
| Download URL | h3_lowpoints-0.1.1.tar.gz |
|---|---|
| Size | 185.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76471fb7ae275c385f604676f589c94fe04416d9f24ce91506763b7f8ffaf4e0
|
|
BLAKE2b-256 checksum How to use checksums |
6db1c068a61333946e5a532a3f1901e7cfb99086b10c868ed052e35319619319
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / h3_lowpoints-0.1.1-py3-none-any.whl
| Download URL | h3_lowpoints-0.1.1-py3-none-any.whl |
|---|---|
| Size | 92.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9eb003290e30cf8a1146e76ad76c83920a2909722ae773a728a2117d86ee0fbc
|
|
BLAKE2b-256 checksum How to use checksums |
d87dbf4bf993315bc966e42a856bc4e1c66d675d44f9484020463b87d960d734
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logSecurity for h3-lowpoints 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for h3_lowpoints-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.