Embed the map, or use the data

Kampala Flood Replay is free to embed and its data files are open. Please keep the credit: Gava Charles · Kampala Flood Replay. Back to the map

Embed

The embed shows the map and the timeline, without the side panel and search bar.

<iframe src="https://gavacharles.github.io/kampala-flood-replay/?embed=1&t=18"
        width="100%" height="560" style="border:0" loading="lazy"
        title="Kampala Flood Replay: the 10–11 October 2026 storm"></iframe>

Link to a moment and a place

Every view can be shared with Copy link on the map. The link can carry these settings:

ParameterMeaningExample
tHour of the replay, 0 to 45 (0 = Sat 10 Oct 09:00, Kampala time)t=18 (Sun 03:00)
cMap view: longitude, latitude, zoom, bearing, pitchc=32.555,0.352,14.1,-20,55
pinA pinned place (longitude, latitude); opens its cardpin=32.5395,0.3420
mRain multiplierm=1.5
sSilt in the channels, as a share of depths=0.3
pPaving on the hills: 2020 or 1990p=2020
lightfollow (time of the replay), day or nightlight=day
embed1 hides the side panel and search barembed=1

Data files

All files are under https://gavacharles.github.io/kampala-flood-replay/data/. Binary files are little-endian; each also exists gzipped (.gz).

FileContents
meta.jsonNumber of channel stretches, the 46 hours (Kampala time), water-level steps of the rating curves, the grid of the flood squares, stretch names and systems
seg.binPer stretch, 5 × float32: 0.278 × area (km²) × areal reduction, runoff coefficient today, runoff coefficient 1990, channel capacity clean and silted (m³/s)
rating.binPer stretch, 50 × uint16: floodplain flow at each water level, encoded as log(1 + Q) × 5000
rain_seg.binPer stretch and hour, uint16: rain intensity over the stretch's response time (mm/h × 1000), PERSIANN-CCS
cells.png30 m squares that can flood: red and green = stretch index, blue = height above the channel × 20 (m)
floodable.binBuildings that can flood: int32 building id, uint16 stretch, uint16 height above the channel (cm)
roads.binRoad pieces that can flood: uint16 stretch, uint16 height (cm), float32 length (m), float32 longitude, float32 latitude
buildings.pmtiles, roads.pmtiles, channels.pmtilesVector tiles: every building with its height, the roads that can flood, and every channel stretch with its maintenance priority
rain_grid.jsonHourly satellite rain on the 4 km grid (mm/h)
extras.json, places.jsonChannel priorities and their main drivers; reported places of this storm and known flood hotspots

The model is the same in the page and in Python: water level of a stretch in an hour is the level at which channel capacity plus floodplain flow carries 0.278 × C × i × A × ARF; depth is that level minus each square's height above the channel. Depths are screening estimates, not measurements.

Licences

Model outputs: CC BY 4.0, credit Gava Charles. Inputs keep their own licences: PERSIANN-CCS (CHRS, UC Irvine), Copernicus DEM GLO-30, Microsoft Global ML Building Footprints (ODbL), © OpenStreetMap contributors (ODbL), ESA WorldCover (CC BY 4.0), Sentinel-2 cloudless by EOX (CC BY-NC-SA 4.0).