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).
| 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:
min_depth above the vertical error: about 0.15 m on lidar, 0.5 to 1 m on 10 to 30 m
data. The library warns when min_depth is under 1 m on data coarser than 2 m.res="auto"): 14 for 1 m, 11 for 10 m,
10 for 30 m.Accuracy figures are the publishers’ typical values, not guarantees for any one place; check the metadata of the survey covering your area.
prd-tnm bucket.fetch_3dep (a GeoTIFF for a box), build_3dep_vrt (a virtual raster for a box
of any size), h3lowpoints fetch-dem --from 3dep|3dep10, h3lowpoints build.Things learnt while testing:
n31w098 covers 30° to 31° N and 98° to 97° W.fetch_3dep and build_3dep_vrt give identical pixels.build can stream
tiles over HTTP or download them once into --cache-dir, which is faster because a tiled
analysis reads everything twice.fetch_lidar, h3lowpoints fetch-dem --from lidar (boxes up to 100 km² by
default).How the library assembles a box:
auto), and lowest points to the metre.fetch_dem, h3lowpoints fetch-dem (the default source).Things to know:
s3://usgs-landcover) that charges whoever downloads; the library reads the unchanged copy
on Source Cooperative (data.source.coop/kylebarron/usgs-landcover), which needs no account.
A box takes a second or two.source="mrlc", --nlcd-source mrlc): the older NLCD editions, years 2001, 2004,
2006, 2008, 2011, 2013, 2016, 2019 and 2021 (default 2021), from MRLC’s web coverage service.
In October 2026 it was down for hours at a time, which is why Annual NLCD became the default.fetch_impervious, h3lowpoints fetch-landcover --from nlcd. Output values are
0 to 100, with 255 for no data.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_CLASSES.fetch_land_cover, h3lowpoints fetch-landcover --from nlcd-landcover. Output is
uint8 class codes, 0 for no data (outside the lower 48 states, open sea).The drainage flags read it at each lowest point (land_cover), so residential and farm
depressions can be studied apart.
hydgrpdcd,
dominant condition): A (sand, gravel; water soaks in fast), B, C, D (clay, shallow soil, a high
water table; it sheds water), or a dual group A/D, B/D, C/D for wet soils (the first letter if
artificially drained). Some units have no group: urban land, water, pits, rock outcrop.sources.soils.fetch_soil_groups, h3lowpoints fetch-landcover --from soil-groups;
runoff.fetch_curve_numbers (--from curve-numbers) combines them with NLCD.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.
ksat_r), water content at saturation, 1/3 bar (field capacity) and
15 bar (wilting point), and texture class, from the Soil Survey Geographic Database (SSURGO).https://sdmdataaccess.sc.egov.usda.gov), which
answers SQL queries without an account; the library asks for 500 map units at a time and keeps
the answers. Microsoft’s copy of gNATSGO has the horizon table too, but for the lower 48 states
it is empty (checked in October 2026: its Texas part has no rows; only Palau has data), so it
cannot be used.sources.soils.fetch_soil_infiltration, h3lowpoints fetch-landcover --from
soil-infiltration; used by the Green-Ampt method and by seepage (Storms in time).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.
ftype)
on every line: 460 stream or river, 558 artificial path (through a lake or a wide river), 336
canal or ditch, 420 underground conduit, 428 pipeline, 334 connector, 566 coastline.sources.nhd.fetch_flowlines (a box, from the service), state_flowlines (a state,
by box and feature type), h3lowpoints drainage --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.
MTFCC: S1100 primary road, S1200 secondary road, S1400 local street, S1630
ramp, S1740 private road, …).sources.roads.fetch_roads (the counties a box touches, cut to the box),
county_roads, counties, h3lowpoints drainage --tiger.county_roads never keeps such a page and raises
an OSError; ask for year=2023 for those counties. The national layer did so and lists them
in meta.json (susceptibility.drainage.roads_previous_edition_in).WORLDCOVER_CLASSES).fetch_worldcover, h3lowpoints fetch-landcover (the default). Output is uint8
class codes, 0 for no data.Its “permanent water bodies” class is a convenient water mask for analyze(mask=...).
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.
jeodpp.jrc.ec.europa.eu/ftp/jrc-opendata/GSWE).sources.jrc.read_layer and read_window (windows read by range requests),
water.water_history and water.WaterHook (Seen wet and seen flooded).| 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):
extent and occurrence (seen on a Pacific tile); only
extent = 1 counts as inside the extent, and an occurrence of 255 counts as 0.source; reading windows from the server is far
too slow at that size.sources.gfm.credit writes it). Two points the page leaves open: its free-access sentence
names only EFAS and GloFAS, and it does not mention commercial use. The GFM wiki’s own terms
page did not load as text. Check the current terms for your use.stac.eodc.eu/api/v1, collection GFM, no account), one
item per Sentinel-1 scene and 300 km Equi7 tile, with cloud-optimized GeoTIFF layers.sources.gfm.search, read_scene, write_flood_map; floods.flood_events and
floods.FloodHook.| 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:
flooded_pixels belongs to the whole Sentinel-1 scene, not the tile: every tile of one
scene carries the same number. Count scenes (acquisition times), not items, to avoid
overstating events.advisory=True and are skipped and
listed..osm.pbf extracts per country, state or region from Geofabrik
(download.geofabrik.de), no account.sources.osm.fetch_lines (picks the smallest extract that holds the box,
downloads it once under its dated name, reads the lines in the box with GDAL’s OSM driver),
split_lines, extract_for.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"].
design_rainfall (the whole table, in millimetres), rainfall_depth (one value),
h3lowpoints rainfall LAT LON.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.
sources.boundaries.us_lower48 and h3lowpoints clip --boundary us48: the lower
48 states and DC as one outline, for clipping results to the US after the analysis.Any single-band elevation raster with a coordinate reference system works: national lidar from other countries, FABDEM, NASADEM, a drone survey. Requirements and tips:
mask= or mask_path=) for water or areas to ignore.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.