Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Sentinel-2 / World Settlement Footprint / AlphaEarth Foundations / Overture Maps pair

Open in molab

Settlement growth read two ways on one H3 grid, in a single marimo notebook.

Two notebooks: the pair (s2-wsf-aef-overture-pair.py, two maps, one camera) and the slider (s2-wsf-aef-overture-slider.py, one map, the Overture building footprints over everything, the Sentinel-2 mosaic behind a divider you drag). The slider is described in its own section below.

Two maps share one camera. On the left, Earth Genome's Sentinel-2 yearly mosaic (true colour, 2022 to 2025), rendered by the kernel from the COGs. On the right, one H3 fill per hexagon from two independent records of change:

  • WSF Tracker (World Settlement Footprint, DLR and MindEarth): the half-year each 10 m pixel was first observed as built-up. Per hexagon: the share built-up, the share that grew inside the window, and the year most of that new ground arrived.
  • AlphaEarth Foundations (Google DeepMind): the mean 64-dimensional embedding per hexagon per year. How far it moved between the ends of the window (1 minus cosine similarity), and the first year it jumped past a quiet level set by the hexagons WSF says did not grow.

A click on a hexagon names its place from Overture Maps divisions, locality up to country. Everything is read live from Source Cooperative; nothing is downloaded ahead of time. Every raster is folded onto H3 cells by the H3 UDF inside DataFusion (xarray-sql), and the browser receives only cell ids and colours.

The slider notebook

Open in molab

s2-wsf-aef-overture-slider.py turns the pair inside out: one map, and the Overture Maps buildings are the subject. From zoom 14 every footprint is drawn from Overture's pinned release and coloured by one thing at a time: the year WSF first read the ground under it as built-up, the first year its own AlphaEarth fingerprint jumped, or the dataset that drew it. Under the footprints, layers you switch on and off: the WSF raster at 10 m, the H3 hexagons of the pair (AlphaEarth change over the year window, finer as you zoom, res 12 from zoom 14.6), and the Sentinel-2 mosaic on the left of a divider you drag across the map, the data on its right, the footprints on both sides. A click on a footprint gives its source, its WSF pixels and their first year, and AlphaEarth's year; a click on bare ground says what WSF saw there that Overture has no building for. Keys: B W A S switch the layers, Q steps the building fill, F flips the mosaic between its first and last year, X fills the window.

Run

Open the pair in molab or the slider in molab. molab runs in the same region as the data and is the faster place to open them. Locally, the dependencies are declared inline (PEP 723):

uv run marimo edit s2-wsf-aef-overture-pair.py --sandbox
uv run marimo edit s2-wsf-aef-overture-slider.py --sandbox

Controls, the fills and the click panel are described in the notebook's first cell.

Datasets

Everything is read live from Source Cooperative.

Dataset Producer Source Cooperative Licence
Sentinel-2 yearly mosaics (true colour, 2022 to 2025) Earth Genome, from Copernicus Sentinel data earthgenome/sentinel2-yearly-mosaics, via the Earth Genome STAC CC BY 4.0
Sentinel-2 temporal mosaics (fills nodata holes in the yearly) Earth Genome, from Copernicus Sentinel data earthgenome/sentinel2-temporal-mosaics CC BY 4.0
World Settlement Footprint (WSF) Tracker, 10 m, 2016 to 2026 DLR and MindEarth mindearth/wsf (DOI 10.5281/zenodo.20424537) CC BY 3.0 IGO
AlphaEarth Foundations Satellite Embedding, annual, 2017 to 2025 Google and Google DeepMind (dataset page) tge-labs/aef (index) and tge-labs/aef-mosaic (COG overviews) CC BY 4.0
Overture Maps divisions (PMTiles, regions and counties) Overture Maps Foundation cboettig/overturemaps ODbL
Overture Maps buildings and divisions (the slider: GeoParquet and PMTiles from a pinned release) Overture Maps Foundation Overture's own release bucket ODbL
Overture Maps divisions (GeoParquet, point-in-polygon on click) Overture Maps Foundation fused/overture ODbL

Also used: place search by Photon (komoot) over OpenStreetMap data (ODbL); basemap by Carto.

Attribution

WSF Tracker (c) DLR and MindEarth, via Source Cooperative (mindearth/wsf, DOI 10.5281/zenodo.20424537). The AlphaEarth Foundations Satellite Embedding dataset is produced by Google and Google DeepMind (CC BY 4.0). Sentinel-2 yearly and temporal mosaics by Earth Genome from Copernicus Sentinel data (CC BY 4.0). Overture Maps divisions (ODbL) via Source Cooperative (cboettig/overturemaps, fused/overture). Place search by Photon (komoot) over OpenStreetMap data (ODbL). Basemap by Carto.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages