h3-lowpoints

h3-lowpoints documentation

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.

Where to start

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

All pages, in reading order

  1. Getting started: install, a first analysis, a first map.
  2. Concepts: elevation models, closed depressions, filling, H3, resolution and coverage, explained without assuming GIS knowledge.
  3. Definition: the precise contract, what is computed and how edge cases are treated.
  4. Outputs: every file, every column, every field of meta.json, and how to open them in other tools.
  5. Python API: every public function, class and parameter.
  6. Command line: every command and option.
  7. Data sources: the elevation, land cover and rainfall data the library can fetch, with their accuracy, coverage, licences and quirks.
  8. Large regions: how regions far larger than memory are analyzed exactly, what it costs, and how to run one.
  9. The map: the interactive web map, its controls and its shareable links.
  10. Verification: the checks every result can be put through, anywhere.
  11. Validation: whether observations (flood reports, claims) fall in or near depressions more often than chance, with honest uncertainty.
  12. Susceptibility: how easily each depression fills: runoff, the rain that fills it, and design storms.
  13. Storms in time: how long it rains: storms of any duration and their rarity, how the rain falls, two runoff methods, seepage, assumed drains, and how long water stands.
  14. Seen wet and seen flooded: 38 years of satellite water and radar flood maps, joined to every depression.
  15. Confidence grade: a grade from A to D for every depression, the road-crossing fix, and comparing two terrains.
  16. Outside the US: the same code on Copernicus GLO-30 in the Netherlands, the Ganges delta, Lagos and the Pampas, and what a surface model changes.
  17. Evidence: every study against real floods and terrain, with what worked and what did not.
  18. Example maps: interactive maps of three test areas (Houston, North Dakota, the Central Valley), a preview of the explorer.
  19. Accuracy and limits: what the results can and cannot be used for.
  20. Glossary: terms used across these pages.
  21. Roadmap: what is done and what comes next.

The changelog lists every change, and contributing explains how to help.

In one paragraph

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.

How it compares with existing data

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.

Citing and licence

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).