Skip to content

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:

  1. Business question — the concrete operational question we answer
  2. Step-by-stepcurl + jq calls, runnable in your terminal
  3. Python recap — the same flow in ~20 lines of Python
  4. Marimo playground — the same notebook, editable in your browser, with sliders and charts
  5. Try it yourself — deep-links to Swagger and the live HTML browser

Pick a hazard

  • Earthquake hazard icon Earthquakes


    Find recent significant earthquakes, filter by magnitude and geography, and plot their distribution.

    Open example

  • Tropical storm hazard icon Tropical Storms


    Rank active cyclones by alert level and peak wind speed, follow the track of a named storm.

    Open example

  • Flood hazard icon Floods


    Query flood events for a country, rank by affected population, summarise cropland loss.

    Open example

Prerequisites

You should have read Quickstart or be comfortable with:

  • curl from a terminal with the -H "Accept: application/geo+json" header
  • Python 3.11+, httpx or stdlib urllib
  • 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.