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 9 — Cascading-Impact Analysis

IFRC

What you will learn:

  1. Locate a primary earthquake event by bounding box and hazard code.

  2. Retrieve aftershocks within a time window using USGS + GDACS hazard collections.

  3. Find triggered landslides via secondary hazard codes (LS, GH0301).

  4. Query impact records (displacement, damages) filtered by country codes (TUR, SYR).

  5. Build a multi-layer Folium map with simulated intensity contours and colour-coded legend.

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'

======================================================================
Connected to: stac-fastapi
Connected to: stac-fastapi
Available collections: 29
Available collections: 29

Step 1 — Find the Primary Event (Earthquake)

We search for the M 7.8 earthquake of 6 February 2023 Goldberg et al. (2023) using a union of hazard codes from UNDRR-ISC 2025 (GH0101), GLIDE (EQ), and EM-DAT (nat-geo-ear-gro).

Search Configuration:
  Date: 2023-02-06
  Bounding Box: [34.0, 35.5, 40.0, 39.0]
  Aftershock window: 14 days
Found 12 USGS + 16 GDACS/EMDAT = 28 total events
Primary Event: M 7.8 - Pazarcik earthquake, Kahramanmaras earthquake sequence
  Magnitude: 7.8 | Depth: 10.0 km | Alert: N/A
  Aftershock window: 2023-02-06 to 2023-02-20

Step 2 — Find Secondary Hazards (Aftershocks & Landslides)

Aftershocks
Landslides

Subsequent earthquakes (GH0101) within a 30-day window after the main event. We search both usgs-hazards and gdacs-hazards to maximise coverage.

Found 14 USGS aftershocks
Aftershocks: 14 USGS + 7 GDACS = 21 total
Found 0 landslides in the region

Step 3 — Find Cascading Impacts (Displacement & Damages)

Impact records for Türkiye (TUR) and Syria (SYR) are queried from IDMC, EM-DAT, and GDACS impact collections using a_contains on monty:country_codes.

Found 100 impact records

Step 4 — Multi-Layer Map Visualisation

The map overlays four data layers with a colour-coded legend:

LayerColourSymbol
Main / Major Event (M ≥ 7)Red★ Star
AftershocksOrange● Circle (scaled by magnitude)
LandslidesGreen🍃 Leaf
ImpactsBlueℹ Info
Processing aftershocks...
Map shows 1 major events (M>=7.0) and 20 aftershocks
Loading...
References
  1. Goldberg, D. E., Taymaz, T., Reitman, N. G., & others. (2023). Rapid Characterization of the February 2023 Kahramanmaraş, Türkiye, Earthquake Sequence. The Seismological Research Letters, 94(4), 1474–1490. 10.1785/0220230113
  2. U.S. Geological Survey. (2024). USGS Earthquake Hazards Program. https://earthquake.usgs.gov
  3. European Commission Joint Research Centre. (2024). Global Disaster Alert and Coordination System (GDACS). https://www.gdacs.org
  4. Guha-Sapir, D. (2024). EM-DAT: The Emergency Events Database. Centre for Research on the Epidemiology of Disasters (CRED). https://www.emdat.be
  5. Internal Displacement Monitoring Centre. (2024). IDMC Global Internal Displacement Database. https://www.internal-displacement.org