#Copernicus

4 posts

Situation map of L'Horta Sud south-west of Valencia on 2 November 2024, showing the blue flood extent and affected towns

Tutorial Python Part 1 of 6

Rapid situational mapping from open data in Python: the Valencia floods of 29 October 2024

Build a first situation map of a disaster from open data in Python. For the Valencia DANA floods of October 2024, read the Copernicus EMS activation and its first flood delineation, add municipalities, modelled rainfall from Open-Meteo and OpenStreetMap hospitals, schools, fire stations and bridges as they were on the morning of the flood, then make a one-page map, an interactive Folium map and a 'what we know' table.

Beginner 16 min read

Two maps of walking time from Pen-y-Pass on Yr Wyddfa, shaded purple to red with 30-minute contours, comparing isotropic and slope-aware cost

Tutorial Python

Least-cost path analysis in Python: cost surfaces and walking routes up Yr Wyddfa

Build a walking cost surface from real slope (Copernicus GLO-30) and land cover (ESA WorldCover), compute the accumulated cost surface and the least-cost path with scikit-image's MCP_Geometric, add a direction-aware Dijkstra version with SciPy, and compare the routes with the straight line and the OpenStreetMap footpaths from Pen-y-Pass to the summit of Yr Wyddfa (Snowdon).

Intermediate 14 min read

Delineated catchment over a hillshade with streams coloured and sized by Strahler order, from purple headwaters to orange main rivers

Tutorial Python

Watershed delineation in Python with pysheds: the River Derwent above Ladybower

Delineate a catchment and its stream network from a free DEM in Python with pysheds: fill pits and depressions, D8 flow direction, flow accumulation, snapping the pour point, catchment polygon and area, Strahler stream order and drainage density, all checked against the official NRFA boundary for the River Derwent at Yorkshire Bridge in the Peak District.

Intermediate 13 min read