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

Getting Started

IFRC

Run in the Cloud (No Install)

Click any badge below to open a notebook in a live Binder or Google Colab environment — all dependencies are pre-installed.

#RecipeBinderColab
01Connecting to the STAC APIBinderColab
02Multi-Source Hazard AnalysisBinderColab
03Time-Series DecompositionBinderColab
04Cyclone Track AnimationBinderColab
05Earthquake Cluster MapsBinderColab
06Cold-Wave Impact DashboardBinderColab
07Cascading-Impact AnalysisBinderColab
08Queryables & CQL2 ReferenceBinderColab
09EM-DAT People-Impact MiningBinderColab

Local Setup

Step 1: Obtain an API Token

How to Get Your Token

  1. Navigate to GO platform and click Sign In.

  2. Go to Account SettingsAPI Tokens.

  3. Click Generate New Token, name it (e.g., Montandon Cookbook), and copy the value immediately.

Step 2: Set Up Your Environment

Clone and Install

git clone https://github.com/IFRCGo/montandon-notebooks.git
cd montandon-notebooks
pip install uv   # one-time setup
uv sync          # resolves and installs all dependencies

Configure Your Token

macOS/Linux
Windows (PowerShell)
Windows (Command Prompt)
export MONTANDON_API_TOKEN='your_token_here'

To make this permanent, add it to your shell profile:

echo "export MONTANDON_API_TOKEN='your_token_here'" >> ~/.bashrc
# or for zsh users:
echo "export MONTANDON_API_TOKEN='your_token_here'" >> ~/.zshrc

Step 3: Launch Jupyter

uv run jupyter lab

Navigate to book/notebooks/ and open any recipe.

Step 4: Verify Your Setup

Open Recipe 1 (01_Getting_Started_Montandon_STAC_API.ipynb) and execute the first three cells. You should see:

Troubleshooting

ImportError: No module named pystac_client

Run uv sync from the repository root to install all pinned dependencies.

401 Unauthorized from the API

Your token may be missing, invalid, or expired.

  • Verify the variable is set: echo $MONTANDON_API_TOKEN

  • Re-generate a token at Go Platform

Folium maps not rendering in JupyterLab

Ensure JavaScript is enabled and try:

jupyter labextension install @jupyter-widgets/jupyterlab-manager

As a fallback, save the map to HTML: m.save("map.html") and open in a browser.


What’s Next?

  1. Start with Recipe 1 — Connecting to the STAC API

  2. Explore the Queryables Deep Dive to master CQL2 filtering

  3. Try modifying queries to analyse your own region or hazard type

  4. Build your own visualisations using the helper functions from any recipe