Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Disaster Data Analytics

Recipe 7 — Earthquake Cluster Maps

IFRC

What you will learn:

  1. Define earthquake hazard codes across GLIDE, EM-DAT, and UNDRR-ISC taxonomies.

  2. Search 7 event collections and correlate with hazard & impact collections.

  3. Build a Folium MarkerCluster map coloured by data source and sized by magnitude.

  4. Create an interactive widget to select an event and inspect its linked hazards/impacts.

Environment Setup

Binder
Google Colab
Local

All dependencies are pre-installed. Click Launch Binder at the top of the page — no setup needed.

======================================================================
AUTHENTICATION REQUIRED
======================================================================

The Montandon STAC API requires a Bearer Token for authentication.

How to get your token:
  1. Visit: https://goadmin-stage.ifrc.org/
  2. Log in with your IFRC credentials
  3. Generate an API token from your account settings

Alternatively, set the MONTANDON_API_TOKEN environment variable:
  PowerShell: $env:MONTANDON_API_TOKEN = 'your_token_here'
  Bash: export MONTANDON_API_TOKEN='your_token_here'

======================================================================

Connecting to STAC API: https://montandon-eoapi-stage.ifrc.org/stac
✅ Connected successfully!
   Catalog ID: montandon-eoapi
   Catalog Title: Montandon STAC API
   Available Collections: 29

Step 1 — Connect & Fetch Data

============================================================
FETCHING EARTHQUAKE EVENTS FROM ALL SOURCES
============================================================
Searching across collections: ['emdat-events', 'desinventar-events', 'gdacs-events', 'gidd-events', 'glide-events', 'ifrc-events', 'pdc-events']
Date range: 2026-02-04 to 2026-03-06
Filtering for EARTHQUAKE events only
  emdat-events: 0 earthquakes out of 14 total items
  desinventar-events: 0 earthquakes out of 0 total items
  gdacs-events: 138 earthquakes out of 308 total items
  gidd-events: 0 earthquakes out of 0 total items
  glide-events: 0 earthquakes out of 1 total items
  ifrc-events: 0 earthquakes out of 0 total items
  pdc-events: 0 earthquakes out of 500 total items

✅ Total: Found 138 earthquakes out of 823 total items

============================================================
FETCHING EARTHQUAKE HAZARDS FROM ALL SOURCES
============================================================
Searching across collections: ['gdacs-hazards', 'pdc-hazards', 'emdat-hazards']
Date range: 2026-02-04 to 2026-03-06
Filtering for EARTHQUAKE events only
  gdacs-hazards: 144 earthquakes out of 500 total items
  pdc-hazards: 0 earthquakes out of 500 total items
  emdat-hazards: 0 earthquakes out of 14 total items

✅ Total: Found 144 earthquakes out of 1014 total items

============================================================
FETCHING EARTHQUAKE IMPACTS FROM ALL SOURCES
============================================================
Searching across collections: ['emdat-impacts', 'desinventar-impacts', 'gdacs-impacts', 'idmc-gidd-impacts', 'idmc-idu-impacts', 'ifrc-event-impacts', 'pdc-impacts']
Date range: 2026-02-04 to 2026-03-06
  Found 35 items in emdat-impacts
  Found 0 items in desinventar-impacts
  Found 138 items in gdacs-impacts
  Found 0 items in idmc-gidd-impacts
  Found 0 items in idmc-idu-impacts
  Found 0 items in ifrc-event-impacts
  Found 500 items in pdc-impacts

✅ Total: Found 673 earthquakes out of 673 total items

Step 2 — Process Events into a DataFrame

Convert raw STAC items into a pandas.DataFrame with extracted magnitude, depth, and coordinate columns for mapping.

Created DataFrame with 138 events from 1 sources
  - Events with magnitude: 0 (0.0%)
  - Events with depth: 0 (0.0%)
Sources: {'gdacs-events': 138}
Loading...

Step 3 — Global Earthquake Map

Loading...

Step 4 — Event Selector: Linked Hazards & Impacts

Select an earthquake from the dropdown to fetch its associated hazard observations and impact records on a detail map.

Loading...
References
  1. European Commission Joint Research Centre. (2024). Global Disaster Alert and Coordination System (GDACS). https://www.gdacs.org
  2. Guha-Sapir, D. (2024). EM-DAT: The Emergency Events Database. Centre for Research on the Epidemiology of Disasters (CRED). https://www.emdat.be
  3. Asian Disaster Reduction Center. (2024). GLobal IDEntifier Number (GLIDE). https://glidenumber.net
  4. Internal Displacement Monitoring Centre. (2024). IDMC Global Internal Displacement Database. https://www.internal-displacement.org
  5. Pacific Disaster Center. (2024). PDC DisasterAWARE. https://www.pdc.org