Hazard Examples
Three end-to-end interactive examples, one per ADAM hazard module. Each tutorial combines step-by-step curl calls, a Python recap and a marimo playground embedded inline where you can edit the code and re-run it directly in the browser.
By the end you will have answered a real operational question for each hazard using only the public ADAM API.
How to use these tutorials
Each example follows the same shape:
- Business question — the concrete operational question we answer
- Step-by-step —
curl+jqcalls, runnable in your terminal - Python recap — the same flow in ~20 lines of Python
- Marimo playground — the same notebook, editable in your browser, with sliders and charts
- Try it yourself — deep-links to Swagger and the live HTML browser
Pick a hazard
-
Earthquakes
Find recent significant earthquakes, filter by magnitude and geography, and plot their distribution.
-
Tropical Storms
Rank active cyclones by alert level and peak wind speed, follow the track of a named storm.
-
Floods
Query flood events for a country, rank by affected population, summarise cropland loss.
Prerequisites
You should have read Quickstart or be comfortable with:
curlfrom a terminal with the-H "Accept: application/geo+json"header- Python 3.11+,
httpxor stdliburllib - Basic idea of OGC collections and
filter=(see Concepts)
About the marimo playgrounds
Each example embeds a marimo playground via iframe. Marimo runs Python directly in your browser using WebAssembly — no local install, no account. You can edit any cell, move sliders, and re-run on the fly. The notebook source (.py) is stored in this repository and linked from each example for download.