h3-lowpoints

Data sources

The library analyzes any elevation raster you give it. For convenience it can also download open data for any box. This page describes each dataset: what it measures, how good it is, where it exists, its licence, how the library reads it, and the surprises found while testing it.

No data is bundled with the library. Everything is read from the publisher’s own servers, over HTTPS, with no account or key, and only the parts a box needs are downloaded (the files are cloud-optimized GeoTIFFs, which allow reading windows by HTTP range requests).

Choosing elevation data

Dataset Pixel Surface Vertical accuracy (typical) Area Use for
USGS 3DEP 1 m lidar 1 m bare earth ~10 cm most of the US street-scale depressions: sags, low corners, pits
USGS 3DEP 1/3″ ~10 m bare earth about 1 m; better where built from lidar the US neighbourhood basins
USGS 3DEP 1″ ~30 m bare earth about 1 m or more; varies with the source survey the US large basins, regional and national overviews
Copernicus GLO-30 ~30 m surface (roofs, trees) ~2 to 4 m the world large basins outside the US

Rules of thumb:

Accuracy figures are the publishers’ typical values, not guarantees for any one place; check the metadata of the survey covering your area.

USGS 3DEP 30 m and 10 m

Things learnt while testing:

USGS 3DEP 1 m lidar

How the library assembles a box:

Copernicus GLO-30

Things to know:

NLCD percent impervious

A trap found while testing: the MRLC service labels 0 as “no data”, but in this product 0 means “0% impervious” (a park, a field, a forest). Read naively, every unbuilt pixel would vanish. The library drops that label and treats only values above 100 as no data (Annual NLCD marks no data as 250).

It is the paved share of the curve numbers of the susceptibility index (Susceptibility).

NLCD land cover

The drainage flags read it at each lowest point (land_cover), so residential and farm depressions can be studied apart.

USDA soil survey (gNATSGO): hydrologic groups

The groups are read from the full 10 m soil grid onto 30 m pixels: each pixel takes the map unit at its centre (NLCD’s pixel centres lie on the soil grid’s lines; such a centre takes the soil pixel to its east or south), so a place gets the same group whatever box it is read in. Until October 2026 the library read the grid’s 20 m overview through a window that depended on the box, which gave 3% of pixels in a test region another group near unit boundaries; it reads no faster, so nothing is gained by it. Checked in October 2026 on three test boxes: Houston’s soils are 84% group D (clays), North Dakota’s mostly C, the Central Valley’s a mix of A to D. The table lists one unit twice (“Water”), which is harmless and dropped.

USDA soil survey: how fast water soaks in

The rule, per map unit: the component with the largest share that has a usable surface horizon (a mineral texture class, and the three water contents) and a conductivity for every horizon starting above 50 cm. Its conductivity is the least of those horizons: NRCS judges hydrologic groups by the least transmissive layer in the top 50 cm (National Engineering Handbook Part 630, chapter 7), so conductivity and group follow the same rule. The wetting-front suction comes from the surface horizon’s texture class through the table of Rawls, Brakensiek and Miller (1983, Journal of Hydraulic Engineering 109(1), table 2, values for the whole class; silt, which has no row there, takes silt loam’s). NRCS’s 21 texture names map to the 12 USDA classes by dropping the sand-size words (“fine sandy loam” is sandy loam). Map units without such a component (urban land, water, pits, rock, units renamed since 2020) take the fallback: conductivity 1 µm/s (3.6 mm/h, the most a group D soil conducts), no water deficit and no suction, so the ground takes in water only slowly. The share of each catchment on the fallback is reported.

USGS National Hydrography Dataset (NHD)

A state’s GeoPackage is unpacked once beside its zip (1.7 to 2.6 times the zip’s size: Texas 6.4 GB) and read through its spatial index: Texas unpacked and read for a 1° box in about a minute. Reading it straight from the zip is not workable, because a compressed zip cannot be read by parts: every lookup decompresses the file from its start again (Texas ran for more than 20 minutes without finishing). remove_unpacked deletes the unpacked file when done.

Checked in October 2026: for a box in Washington, DC the service and the state file gave the same 430 lines (165.0 km). The service can be slow (single requests took 1 to 4 minutes, some timed out); for large areas use the state files. In that DC box most lines are underground pipelines (387 of 430, described as “Pipeline: General Case; Underground”), which the drainage flags count with canals.

US Census Bureau TIGER/Line roads

ESA WorldCover

Its “permanent water bodies” class is a convenient water mask for analyze(mask=...).

Water mask from ESA WorldCover

build_water_mask (and h3lowpoints build --water-mask) turns WorldCover into a mask on the elevation raster’s own pixel grid: each elevation pixel is sampled at 3 × 3 evenly spaced points, and it is water when at least 5 of the 9 fall on “permanent water bodies”. A test compares this pixel for pixel with the same sampling done by hand. For grids in longitude/latitude (all of 3DEP) each point is looked up directly in the WorldCover pixel containing it, treating the grid’s datum as WGS 84; other CRSs are sampled through a warped view of WorldCover. On 52 million pixels of Wisconsin the two ways agree on all but 0.02% of pixels, which lie on the edges of water where the metre between NAD83 and WGS 84 moves a sample point into the next WorldCover pixel.

Points on a pixel edge. On 3DEP’s 1 arc-second grid, every third pixel centre lies exactly on an edge between two WorldCover pixels. Such a point belongs to the pixel after it (east, or south), whatever box is analyzed: since version 0.5.1, two boxes over the same place give the same mask on every pixel they share (a test builds overlapping boxes on the real grids and compares them). Before 0.5.1, rounding error decided these ties and depended on the box’s corner; dataset 0.3 was built that way, so at a few pixels on the edges of water a box run today differs from it.

Why it matters: lakes are flat in elevation data, and a lake whose outlet (a dam, locks, a narrow river) stands higher than its surface fills as one huge depression. Measured on two boxes of 3DEP 30 m data:

Box Without the mask With the mask
Western Lake Erie (−83.5, 41.4, −82.5, 42.1) largest depression 465 km² (the lake); 662 km² depressed in all largest 2.5 km²; 101 km² in all
Great Salt Lake (−113.1, 40.6, −111.8, 41.7) largest 3,835 km² (the lake); 4,366 km² in all largest 172 km², in the desert west of the lake; 312 km² in all

Ninety-eight per cent of the depressions on land were unchanged; what disappeared were the lakes and the low shore land merged into them.

The open sea. WorldCover maps land and the water near it; beyond that it has no data. USGS 3DEP, however, continues offshore and stores the sea there as flat ground at 0 m (sampled every 0.1° east of Atlantic City: WorldCover’s water reaches about 25 km out, then 3DEP goes on at 0 m for roughly another 8 km before it stops). Without a rule for it, that sea is analysed as land: harmless for depressions (it has no depth) but a flat of hundreds of millions of pixels for water routing. So a pixel is also water when at least 5 of its 9 points fall where WorldCover has no data and its own elevation is at or below 0 m: open sea. The height condition keeps any gap in WorldCover over dry land from being masked. Elevations are read only where WorldCover has no data, so inland the mask costs no extra reading. Found by the national run of 22 to 23 October 2026, whose routing failed on 302 million flat sea pixels; results published before that (version 0.2 and the v1 national dataset) analysed this strip of sea as land at 0 m.

Limits: only permanent water (2021) is masked, not seasonal flooding; water narrower than about half a pixel (15 m at 30 m) is not seen; WorldCover’s own classification errors carry over. Elevation grids on NAD83 and WorldCover on WGS 84 differ by about a metre, far below a pixel.

JRC Global Surface Water

Layer Values
occurrence per cent of clear observations with water, 0 to 100
recurrence per cent of years in which water came back, 0 to 100
extent 1 where water was seen at least once, else 0
yearly (1984-2021) 1 not water, 2 seasonal water, 3 permanent water, 0 no data
monthly_recurrence (months 1-12) per cent of years with water in that month, inside the extent

Things learnt while testing (checked against the files in November 2026):

Copernicus Global Flood Monitoring (GFM)

Layer Used as
ensemble flood extent 1 flooded, 0 not flooded, 255 outside the image
exclusion mask where GFM cannot judge (cities, dense forest, radar shadow, sand): not observed
reference water water normally there (permanent or seasonal for the month): not observed
advisory flags 1 low backscatter over a region (snow, ice, dry soil), 2 rough water (wind), 3 both: not observed with advisory=True

Things learnt while testing:

OpenStreetMap (Geofabrik extracts)

The extracts of the lower 48 states are about 12.3 GB in all. The extract’s file name carries its date (north-dakota-261113.osm.pbf is 13 November 2026) and is recorded in meta["breach"].

NOAA Atlas 14 design rainfall

Durations are labelled as NOAA labels them: 5-min, 10-min, 15-min, 30-min, 60-min, 2-hr, 3-hr, 6-hr, 12-hr, 24-hr, 2-day, 3-day, 4-day, 7-day, 10-day, 20-day, 30-day, 45-day, 60-day. Values are partial-duration-series estimates at a point; over a city they change little, so one point near the centre is a fair design value.

Grids, for many points. For a whole region (every H3 cell of a result), Atlas14Grids reads NOAA’s published grids instead (https://hdsc.nws.noaa.gov/pub/hdsc/data/): ESRI ASCII grids 30 arc-seconds (about 800 m) apart, in thousandths of an inch (converted to millimetres), one zip of about 1 to 4 MB per project area and return period, downloaded only for the project areas a region lies in. Seven grid sets cover the conterminous US (checked in October 2026):

Folder Project area
sw Southwest: volumes 1 (semiarid Southwest) and 6 (California)
orb Volume 2, Ohio River Basin and surrounding states
mw Volume 8, Midwestern states
se Volume 9, Southeastern states
ne Volume 10, Northeastern states
tx Volume 11, Texas
inw Volume 12, Interior Northwest (Idaho, Montana, Wyoming)

Sampled on a regular lattice over the lower 48 states, they cover every state except Washington and Oregon (0.2% of their points), and the coastal states up to their shores (97% to 99.9% of points within the Census state outlines, which include bays and sounds). The files do not share one grid, and their no-data value differs (-9 or -999), so each is read with its own header. Where two project areas meet, both have values in a thin strip (0.4% of covered points); there they differ by about 5% typically and up to 41% (100-year 24-hour grids), as NOAA notes discrepancies at project boundaries are inevitable, and the mean is used. The 24-hour grid matches the point service to within 1% (a network test, at Houston).

Storms of any duration and their rarity. Atlas14Storms reads the grids of every published duration (05m to 60d; NOAA names the 1-hour grid 60m) as needed. A duration between two published ones gets the depth interpolated linearly in log(depth) against log(duration); a depth gets its return period interpolated linearly in log(years) between the published return periods, 0 below the 1-year storm and inf above the 1000-year storm (beyond Atlas 14; nothing is extrapolated). Both rules were checked against NOAA’s point estimates at 12 US cities by leaving each published value out and predicting it from its neighbours (h3lowpoints-data, October 2026): depth across durations, median error 1.2%, 90th percentile 3.8%, worst 11.8% (2,040 values); return period, median 3.3%, 90th percentile 9.4%, worst 46% (1,824 values). Leaving a value out doubles the gap it is predicted across, so in use the errors are likely smaller; this is not proven. The grids the library reads are the partial-duration series (NOAA also publishes annual-maximum grids, _ams); their return periods are average recurrence intervals.

How storms unfold. NOAA publishes temporal distributions with Atlas 14: for 6, 12, 24 and 96-hour storms, the cumulative share of the rain by each time, for storms with most rain in the first, second, third or fourth quarter and for all storms, each as nine curves (10% to 90% of storms had at least that much rain by then; 50% is the median). There are 120 files for the lower 48 states, in two layouts (volumes 1 and 2, and the later ones), and a map of regions per volume (https://hdsc.nws.noaa.gov/pfds/shapefiles/): 30 regions, for example tx_3 around Houston, ne_2 around New York, ca_1 to ca_14 in California. Volume 1’s two areas are “general” (area 1) and “convective” (area 2), as NOAA’s own page names them. Checked in October 2026: every file reads, every curve runs from 0 to 100%; in 51 curves rounding makes the share fall back by at most 0.03 percentage points, which the library holds level; the regions of different volumes overlap only in thin strips along their borders (at most 1,018 km², under 1% of a region; a point there takes the newer volume’s region), except that volume 8’s region 4 and volume 9’s region 1 are the same area with identical files. Washington and Oregon have none. TemporalPatterns reads them; a storm of another duration takes the curve of the published duration nearest in log time, stretched to its length, an assumption since NOAA publishes these four only.

US Census Bureau boundaries

Your own data

Any single-band elevation raster with a coordinate reference system works: national lidar from other countries, FABDEM, NASADEM, a drone survey. Requirements and tips:

Drains (inlets, grates) and building footprints can come from any vector file; see read_drains and read_buildings in the Python API. City open-data portals often publish both.