h3-lowpoints

Seen wet and seen flooded: observed water in each depression

A depression is a feature of the terrain: it says where water could collect. This page covers two tables that say where satellites saw water, one row per depression:

Both are observations, not predictions. They are joined to depressions by the depressions’ own outlines, at any scale from a city to the lower 48 states. Every rule below was written down before the national data was looked at (the phase 7 study rules, with their dated deviations), and every threshold is a named constant in the code.

Quick start

from h3lowpoints import analyze
from h3lowpoints.water import water_history
from h3lowpoints.floods import flood_events
from h3lowpoints.sources import gfm

box = (-95.8, 29.5, -95.0, 30.1)                      # Houston
res = analyze("houston_30m.tif", min_depth=0.5)
history = water_history(res)                           # one row per depression
scenes = gfm.search(box, "2017-08-25", "2017-09-05", min_flooded_pixels=25_000)
summary, seen = flood_events(res, scenes, advisory=True)

For a region too big to hold in memory, pass hooks to analyze_tiled; the tables are the same as on the whole region and are saved next to the depression table:

from h3lowpoints import analyze_tiled
from h3lowpoints.water import WaterHook
from h3lowpoints.floods import FloodHook

res = analyze_tiled("state.vrt", mask_path="water.vrt", min_depth=0.5, out_dir="state",
                    format="parquet",
                    hooks=[WaterHook(source="jrc_tiles"), FloodHook(scenes, advisory=True)])
res.tables["water_history"], res.tables["flood_events"], res.tables["flood_seen"]

Water history (JRC Global Surface Water, 1984-2021)

The record

The European Commission’s Joint Research Centre mapped open water in every Landsat image from March 1984 to December 2021, at 30 m, worldwide from 80° N to 60° S (Pekel et al. 2016, version 1.4; see Data sources). The library reads its yearly classification (per year: not water, seasonal water, permanent water, or no data), its occurrence (per cent of clear views with water), its maximum water extent and its monthly recurrence. Windows are read straight from the JRC server, so a small region costs a few megabytes; a national run uses a local copy of the tiles (source=).

Which pixels belong to a depression

Clear years

Landsat does not see through cloud, and some years have few images. A year only counts when the satellite saw the place, but the yearly files hold 0 both for “no data” and for every pixel outside the maximum water extent, so a single pixel cannot say whether it was seen. The views are therefore judged per area:

The rules

Rule Value (constant in h3lowpoints.water)
A wet year: a clear year with water (seasonal or permanent) on at least 10% of the depression’s pixels, or on at least 1 ha, and in either case on at least 2 pixels WET_SHARE 0.10, WET_MIN_AREA_M2 10,000, WET_MIN_PIXELS 2
A permanent year: a wet year with permanent water on at least half of the pixels PERMANENT_SHARE 0.5
Fewer JRC pixels than this: too small to tell MIN_PIXELS 3
Fewer clear years than this: too few views MIN_CLEAR_YEARS 20
Clear-year share of the median, and its floor CLEAR_SHARE 0.5, CLEAR_FLOOR 0.1
Clear years needed for a trend TREND_MIN_YEARS 10

Each depression gets one class, the first that applies:

water_class Meaning
too_small fewer than 3 JRC pixels: the record cannot tell
too_few_views fewer than 20 clear years
permanent permanent years in at least 80% of the clear years (a pond or lake)
seasonal wet in at least half of the clear years
some_years wet in at least one clear year
never_seen_wet never wet in a clear year (including when the views are unknown, flagged by views_res = 0)

“Seen wet” in the confidence grade and in the study means permanent, seasonal or some_years. The table’s columns are listed in Outputs.

What the record cannot see

Radar flood events (Copernicus GFM, and your own maps)

The maps

The Copernicus Global Flood Monitoring service maps flooded land on every Sentinel-1 radar image worldwide at 20 m, since 2015, and radar sees through cloud (Data sources). gfm.search lists the catalogue items over a box and a period; each item is one Sentinel-1 scene cut to one 300 km tile. gfm.read_scene turns an item’s layers into one coded map:

Code Meaning
1 flooded
0 observed, not flooded
255 not observed: outside the image, in GFM’s exclusion mask (cities, dense forest, radar shadow, sand), normally water (GFM reference water), or, with advisory=True, under one of GFM’s advisory flags

Places the radar could not judge are never counted as dry.

Advisory flags. GFM marks pixels where its result is doubtful: low backscatter over a region (snow, ice or very dry soil) and rough water (wind). In development regions in North Dakota and the Texas High Plains most radar “floods” fell under the first flag, in dry or frozen months, so the study counts flagged pixels as not observed (deviation 3). Use advisory=True for the same rule. An item without an advisory file cannot be judged under it and is skipped and listed.

The rules

For each map, the depression is laid on the map’s grid by nearest pixel and its pixels are counted:

flood_events returns two tables: a summary per depression (maps that reach it, observed it and flooded it, the first and last flood, the largest flooded share and the flooded scenes) and the long table seen, one row per observed depression and map, for scoring maps one by one. Both are described in Outputs.

Your own flood maps. Pass a dict {name: path} of rasters coded 1 flooded, 0 observed and dry, anything else not observed. gfm.write_flood_map writes a GFM scene in that form, which also suits h3lowpoints validate --flood-map (Validation).

What radar floods are, and are not

In the US national tables

The national run (lower 48 states, USGS 3DEP 30 m, 10,527,850 depressions after clipping; dataset 0.4, doi.org/10.5281/zenodo.24382887) used the outline method on the whole JRC record and a fixed random sample of 400 GFM items (2015-2025, scenes with at least 25,000 flooded pixels), of which 394 had every layer, advisory flags as not observed.

Water class Depressions
never_seen_wet 6,543,740
too_small 3,592,658
some_years 214,005
seasonal 95,199
too_few_views 82,047
permanent 201

Of the depressions, 8,502,323 lie where at least one sampled radar map reaches, 1,265,597 were observed in at least one, and 13,294 were flooded in at least one. How these observations relate to the fill index is Study 3 in Evidence.

Credits and licences

Each table’s settings, rules and credit are kept in meta.json under tables (Outputs).