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:
| Parameter | Meaning | Example |
|---|---|---|
t | Hour of the replay, 0 to 45 (0 = Sat 10 Oct 09:00, Kampala time) | t=18 (Sun 03:00) |
c | Map view: longitude, latitude, zoom, bearing, pitch | c=32.555,0.352,14.1,-20,55 |
pin | A pinned place (longitude, latitude); opens its card | pin=32.5395,0.3420 |
m | Rain multiplier | m=1.5 |
s | Silt in the channels, as a share of depth | s=0.3 |
p | Paving on the hills: 2020 or 1990 | p=2020 |
light | follow (time of the replay), day or night | light=day |
embed | 1 hides the side panel and search bar | embed=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).
| File | Contents |
|---|---|
meta.json | Number 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.bin | Per stretch, 5 × float32: 0.278 × area (km²) × areal reduction, runoff coefficient today, runoff coefficient 1990, channel capacity clean and silted (m³/s) |
rating.bin | Per stretch, 50 × uint16: floodplain flow at each water level, encoded as log(1 + Q) × 5000 |
rain_seg.bin | Per stretch and hour, uint16: rain intensity over the stretch's response time (mm/h × 1000), PERSIANN-CCS |
cells.png | 30 m squares that can flood: red and green = stretch index, blue = height above the channel × 20 (m) |
floodable.bin | Buildings that can flood: int32 building id, uint16 stretch, uint16 height above the channel (cm) |
roads.bin | Road pieces that can flood: uint16 stretch, uint16 height (cm), float32 length (m), float32 longitude, float32 latitude |
buildings.pmtiles, roads.pmtiles, channels.pmtiles | Vector tiles: every building with its height, the roads that can flood, and every channel stretch with its maintenance priority |
rain_grid.json | Hourly satellite rain on the 4 km grid (mm/h) |
extras.json, places.json | Channel 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).