h3-lowpoints finds closed depressions (low points in the ground that water cannot flow out of) in an elevation model, and describes them on H3 hexagon cells at any resolution, ready for maps, 3D views and analysis.
It is written for GIS analysts, urban planners, researchers and developers who want to know where the terrain holds water, at any scale from a city block to a whole state, without running a GIS desktop application.
Status: alpha (0.x). The method is tested against independent methods and on real terrain (see Verification). A depression is a feature of the terrain model: this library does not say whether water actually collects there, and its output is not a flood map. See Accuracy and limits.
National dataset: every closed depression on land in the lower 48 US states (USGS 3DEP 30 m, open water masked), on H3, with catchments, spill links, fill curves and how easily each fills (Susceptibility), and how often satellites saw water in it with a confidence grade (Seen wet and seen flooded), is published as open data: doi.org/10.5281/zenodo.24382887.
| If you want to… | Read |
|---|---|
| Try it in five minutes | Getting started |
| Understand the ideas (elevation models, depressions, H3) from scratch | Concepts |
| Know exactly what every number means | Outputs and Definition |
| Look up a function or a parameter | Python API |
| Look up a command | Command line |
| Choose and download elevation data | Data sources |
| Analyze a state or a country | Large regions |
| Read and share the interactive map | The map |
| Use the web explorer and its rain simulator | The explorer |
| Know how results are checked, and check your own | Verification |
| Test the depressions against observed flooding | Validation |
| Know how easily each depression fills in a storm | Susceptibility |
| Know whether satellites saw water in each depression | Seen wet and seen flooded |
| Grade depressions and fix road embankments | Confidence grade |
| See the method run outside the US | Outside the US |
| See what has been tested against real floods, and what failed | Evidence |
| See example maps of three test areas | Example maps |
| Know what the results cannot tell you | Accuracy and limits |
| Look up a term | Glossary |
| See where the project is going | Roadmap |
meta.json, and how to open
them in other tools.The changelog lists every change, and contributing explains how to help.
Give the library an elevation raster (a GeoTIFF, or a box to download). It fills every pit the way water would, up to the level at which it would spill out, and the difference between the filled surface and the ground is the depth of water each spot could hold. Connected areas of positive depth are depressions; each gets a depth, an area, a volume and a lowest point. Every depressed pixel is then assigned to the H3 cell that contains its centre, giving one row per cell with the deepest depth, the area and volume held, the number of lowest points and how much of the cell the data covered. Coarser H3 resolutions are exact roll-ups of the finest one, so the same result can be viewed from a street to a continent.
Other national maps of US depressions exist, and may suit some uses better:
What this project adds: a library that runs on any elevation model anywhere; results on H3 cells, exact at every resolution; each depression’s catchment and the depression it spills into; fill curves; for the US, which storm fills each depression (counting overflow from upstream) and whether a mapped stream, canal or highway drains it; and tools to test all of it against observations, with a published test. We did not find another open dataset that combines these; if you know of one, please open an issue.
Code is Apache-2.0. If you use the library in published work, cite it with its DOI,
doi.org/10.5281/zenodo.23552522 (all versions), or CITATION.cff in the
repository. Data you download through it keeps its own licence (see
Data sources).