diff --git a/.github/ROADMAP_EXECUTION.md b/.github/ROADMAP_EXECUTION.md
index 9eec4144..cc392364 100644
--- a/.github/ROADMAP_EXECUTION.md
+++ b/.github/ROADMAP_EXECUTION.md
@@ -40,9 +40,14 @@ Key corrections from the audit:
- Earthquake has the main model adapters (`PhaseNet`, `EQTransformer`, `GPD`,
`EQNet`), but the SeisBench / pick-benchmark / pyCSEP / AEFA benchmark-data
stack is still missing.
-- Flood has the main model adapters (`NeuralHydrology`, `FloodCast`,
- `UrbanFloodCast`), but the Caravan / WaterBench / FloodCastBench /
- HydroBench benchmark-data stack is still missing.
+- Flood: the NeuralHydrology LSTM / EA-LSTM and Google's released FloodHub
+ model are faithful ports, with real CAMELS-US and Caravan readers and per-basin
+ NSE / KGE evaluation. `HydroGraphNet` (PhysicsNeMo MeshGraphKAN, with a real
+ White River mesh reader and rollout evaluation) and `UrbanFloodCast` (the DNO,
+ written from the paper and checked against the unlicensed official code) are
+ faithful too. `FloodCast` stays an experimental stand-in (flood-model code never
+ released, widths not in the paper), and WaterBench / FloodCastBench / HydroBench
+ have no readers (their former adapters generated random numbers and were removed).
- Storm has the main model adapters, but `TCBench`, `IBTrACS`, and
`TropiCycloneNet-Dataset` are still missing. `GraphCast`, `Pangu`, and
`FourCastNet` remain experimental wrappers and must not be counted as
@@ -251,17 +256,12 @@ Own:
- `pyhazards/models/tropicyclonenet.py`
- `pyhazards/models/saf_net.py`
- `pyhazards/models/tcif_fusion.py`
-- `pyhazards/models/graphcast_tc.py`
-- `pyhazards/models/pangu_tc.py`
-- `pyhazards/models/fourcastnet_tc.py`
+- `pyhazards/forecasts/**` (FourCastNet / GraphCast / Pangu-Weather cyclone pipelines; the former graphcast_tc, pangu_tc and fourcastnet_tc placeholders were removed)
- `pyhazards/model_cards/hurricast.yaml`
- `pyhazards/model_cards/tropicalcyclone_mlp.yaml`
- `pyhazards/model_cards/tropicyclonenet.yaml`
- `pyhazards/model_cards/saf_net.yaml`
- `pyhazards/model_cards/tcif_fusion.yaml`
-- `pyhazards/model_cards/graphcast_tc.yaml`
-- `pyhazards/model_cards/pangu_tc.yaml`
-- `pyhazards/model_cards/fourcastnet_tc.yaml`
- `tests/test_tc_*.py`
Do not edit:
@@ -537,17 +537,12 @@ You own:
- pyhazards/models/tropicyclonenet.py
- pyhazards/models/saf_net.py
- pyhazards/models/tcif_fusion.py
-- pyhazards/models/graphcast_tc.py
-- pyhazards/models/pangu_tc.py
-- pyhazards/models/fourcastnet_tc.py
+- pyhazards/forecasts/** (FourCastNet / GraphCast / Pangu-Weather cyclone pipelines; the former graphcast_tc, pangu_tc and fourcastnet_tc placeholders were removed)
- pyhazards/model_cards/hurricast.yaml
- pyhazards/model_cards/tropicalcyclone_mlp.yaml
- pyhazards/model_cards/tropicyclonenet.yaml
- pyhazards/model_cards/saf_net.yaml
- pyhazards/model_cards/tcif_fusion.yaml
-- pyhazards/model_cards/graphcast_tc.yaml
-- pyhazards/model_cards/pangu_tc.yaml
-- pyhazards/model_cards/fourcastnet_tc.yaml
- tests/test_tc_*.py
Do not edit:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 09a073ee..08e02b92 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -46,5 +46,8 @@ jobs:
- name: Generated coverage audit docs check
run: python scripts/render_appendix_a_docs.py --check
+ - name: Generated prompted-baseline docs check
+ run: python scripts/render_prompted_docs.py --check
+
- name: Catalog smoke test
run: python scripts/verify_table_entries.py
diff --git a/.github/workflows/model-docs-sync.yml b/.github/workflows/model-docs-sync.yml
index cc8f207f..0a175c80 100644
--- a/.github/workflows/model-docs-sync.yml
+++ b/.github/workflows/model-docs-sync.yml
@@ -12,10 +12,13 @@ on:
- "pyhazards/dataset_catalog.py"
- "pyhazards/benchmark_catalog.py"
- "pyhazards/appendix_a_catalog.py"
+ - "pyhazards/prompted/cards/**"
+ - "pyhazards/prompted/catalog.py"
- "scripts/render_model_docs.py"
- "scripts/render_dataset_docs.py"
- "scripts/render_benchmark_docs.py"
- "scripts/render_appendix_a_docs.py"
+ - "scripts/render_prompted_docs.py"
permissions:
contents: write
@@ -44,6 +47,7 @@ jobs:
python scripts/render_model_docs.py
python scripts/render_benchmark_docs.py
python scripts/render_appendix_a_docs.py
+ python scripts/render_prompted_docs.py
cd docs
sphinx-build -b html source build/html
cp -r build/html/* .
diff --git a/.github/workflows/oracle.yml b/.github/workflows/oracle.yml
new file mode 100644
index 00000000..e80235ee
--- /dev/null
+++ b/.github/workflows/oracle.yml
@@ -0,0 +1,274 @@
+name: Oracle
+
+# Compares PyHazards models with their pinned reference implementations (tests/oracle).
+# Reference stacks that cannot share one environment run as separate matrix entries; every
+# tests/oracle/test_*.py file must be listed in exactly one entry (checked by the CI test suite).
+
+on:
+ push:
+ branches: [main, master]
+ paths:
+ - "pyhazards/models/**"
+ - "pyhazards/simulators/**"
+ - "pyhazards/prompted/**"
+ - "pyhazards/datasets/figlib_smokebench/**"
+ - "pyhazards/datasets/tc/**"
+ - "pyhazards/benchmarks/tc.py"
+ - "pyhazards/forecasts/**"
+ - "pyhazards/datasets/flood/**"
+ - "pyhazards/metrics/**"
+ - "pyhazards/benchmarks/flood.py"
+ - "tests/oracle/**"
+ - "scripts/fetch_oracles.py"
+ - ".github/workflows/oracle.yml"
+ pull_request:
+ branches: [main, master]
+ paths:
+ - "pyhazards/models/**"
+ - "pyhazards/simulators/**"
+ - "pyhazards/prompted/**"
+ - "pyhazards/datasets/figlib_smokebench/**"
+ - "pyhazards/datasets/tc/**"
+ - "pyhazards/benchmarks/tc.py"
+ - "pyhazards/forecasts/**"
+ - "pyhazards/datasets/flood/**"
+ - "pyhazards/metrics/**"
+ - "pyhazards/benchmarks/flood.py"
+ - "tests/oracle/**"
+ - "scripts/fetch_oracles.py"
+ - ".github/workflows/oracle.yml"
+ workflow_dispatch:
+
+jobs:
+ oracle:
+ name: oracle (${{ matrix.suite }})
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - suite: default
+ python: "3.10"
+ torch: torch torchvision
+ requirements: tests/oracle/requirements.txt
+ references: >-
+ utae-paps WildfireSpreadTS utae_pastis_weights wildfire_forecasting
+ segformer_mit_b0 segformer_b0_ade TS-SatFire TCN uncertainty-wildfires firecastnet
+ tests: >-
+ tests/oracle/test_wildfirespreadts_oracle.py
+ tests/oracle/test_wildfire_forecasting_oracle.py
+ tests/oracle/test_classical_oracle.py
+ tests/oracle/test_deep_ensemble_oracle.py
+ tests/oracle/test_segformer_oracle.py
+ tests/oracle/test_attention_unet_oracle.py
+ tests/oracle/test_tcn_oracle.py
+ tests/oracle/test_deeplabv3_oracle.py
+ tests/oracle/test_convgru_oracle.py
+ # The original U-Net release is Caffe; OpenCV 4.x's Caffe importer runs it (OpenCV 5 dropped it).
+ - suite: unet
+ python: "3.10"
+ torch: torch
+ requirements: tests/oracle/requirements-unet.txt
+ references: unet_release
+ tests: tests/oracle/test_unet_oracle.py
+ # timm 0.4.12 (fire-asufm) conflicts with the timm 0.6.12 pin of smp 0.3.2.
+ - suite: swin
+ python: "3.10"
+ torch: torch torchvision
+ requirements: tests/oracle/requirements-swin.txt
+ references: Swin-Unet fire-asufm swin_tiny_imagenet SwinLSTM
+ tests: tests/oracle/test_swin_oracle.py tests/oracle/test_swinlstm_oracle.py
+ # EarthFarseer pins timm 0.9.16 (smp 0.3.2 needs 0.6.12, fire-asufm 0.4.12); Rainformer needs
+ # einops. Default-size models and the 751 MB Rainformer KNMI checkpoint are compared locally
+ # (PYHAZARDS_ORACLE_LARGE=1); CI compares reduced models.
+ - suite: farseer-rainformer
+ python: "3.10"
+ torch: torch torchvision
+ requirements: tests/oracle/requirements-farseer-rainformer.txt
+ references: EarthFarseer Rainformer
+ tests: >-
+ tests/oracle/test_earthfarseer_oracle.py
+ tests/oracle/test_rainformer_oracle.py
+ # MONAI's UNETR / SwinUNETR need einops, and TS-SatFire's SwinUNETR copy imports torchinfo.
+ - suite: tssatfire
+ python: "3.10"
+ torch: torch
+ requirements: tests/oracle/requirements-tssatfire.txt
+ references: TS-SatFire
+ tests: >-
+ tests/oracle/test_unet3d_oracle.py
+ tests/oracle/test_unetr_oracle.py
+ tests/oracle/test_swin_unetr_oracle.py
+ tests/oracle/test_ts_satfire_oracle.py
+ # The official FireCastNet code runs on DGL, whose CPU wheels need torch 2.4 (pinned in the
+ # requirements file). The comparison on the full global grid peaks at about 8 GB of RAM.
+ - suite: firecastnet
+ python: "3.10"
+ torch: ""
+ requirements: tests/oracle/requirements-firecastnet.txt
+ references: >-
+ firecastnet firecastnet_global_cls_ts24_h1 firecastnet_global_regr_ts24_h1
+ firecastnet_lam_aust_cls_ts24_h1
+ tests: tests/oracle/test_firecastnet_oracle.py
+ # The official Earthformer model file needs einops, which no other suite installs. The SEVIR
+ # and ICAR-ENSO checkpoints (35 MB and 6 MB) are fetched and compared in CI.
+ - suite: earthformer
+ python: "3.10"
+ torch: torch
+ requirements: tests/oracle/requirements-earthformer.txt
+ references: earth-forecasting-transformer earthformer_sevir earthformer_icarenso2021
+ tests: tests/oracle/test_earthformer_oracle.py
+ # The official TrajGRU code (HKO-7) is MXNet; MXNet 1.9.1 runs it and needs numpy < 1.24.
+ - suite: trajgru
+ python: "3.10"
+ torch: torch
+ requirements: tests/oracle/requirements-trajgru.txt
+ references: HKO-7 hko7_movingmnist_weights hko7_hko_weights
+ tests: tests/oracle/test_trajgru_oracle.py
+ # ForeFire (GPL-3.0) is installed from its official 2.5.0 wheel in this job only; the pinned
+ # repository and its Git LFS test files provide the official inputs and reference output.
+ - suite: forefire
+ python: "3.10"
+ torch: torch
+ requirements: tests/oracle/requirements-forefire.txt
+ references: forefire forefire_runff_data forefire_runff_reference
+ tests: tests/oracle/test_forefire_oracle.py
+ # SmokeBench authors' evaluation scripts (prompted VLM baselines): OpenCV + torchvision.
+ # The check over all 5,046 SmokeBench images needs the 11.4 GB download and runs locally.
+ - suite: smokebench
+ python: "3.10"
+ torch: torch torchvision
+ requirements: tests/oracle/requirements-smokebench.txt
+ references: SoraLink-MLLM smokeynet_metadata
+ tests: tests/oracle/test_smokebench_oracle.py
+ # Tropical cyclone models: the official tropicalcyclone_MLP Keras model and the TCIF-fusion notebook graph
+ # (about 300 M parameters, ~3 GB RAM) run on Keras 3 with the PyTorch backend; SAF-Net's notebook network,
+ # TropiCycloneNet's generator and Hurricast's encoder-decoders are plain PyTorch, Hurricast's second stage
+ # is XGBoost. The TropiCycloneNet checkpoint (56 MB, Zenodo, CC BY 4.0) is fetched and compared in CI.
+ - suite: tc
+ python: "3.10"
+ torch: torch
+ requirements: tests/oracle/requirements-tc.txt
+ references: tropicalcyclone_MLP TI_Prediction TropiCycloneNet tropicyclonenet_checkpoint hurricast TCIF-fusion
+ tests: >-
+ tests/oracle/test_tropicalcyclone_mlp_oracle.py
+ tests/oracle/test_saf_net_oracle.py
+ tests/oracle/test_tropicyclonenet_oracle.py
+ tests/oracle/test_hurricast_oracle.py
+ tests/oracle/test_tcif_fusion_oracle.py
+ # Cyclone trackers and TCBench scoring: TempestExtremes v2.4.2 is built from its pinned source
+ # (needs cmake and the netCDF C library) and compared with pyhazards.forecasts.tempest on synthetic
+ # fields; TCBench's own metric functions score its released 2023 tracks. The check on TCBench's
+ # raw Pangu-Weather fields reads ~200 MB over HTTP and runs locally (PYHAZARDS_ORACLE_LARGE=1).
+ - suite: tc-tracking
+ python: "3.10"
+ torch: torch
+ apt: cmake libnetcdf-dev
+ requirements: tests/oracle/requirements-tc-tracking.txt
+ references: >-
+ tempestextremes TCBench_Alpha tcbench_matched_pangu tcbench_matched_fcnet tcbench_ibtracs_2023
+ tcbench_pangu_unmatched_20230716_12
+ tests: tests/oracle/test_tempest_oracle.py tests/oracle/test_tcbench_evaluation_oracle.py
+ # Weather-model sources: earth2studio 0.19.0 (Python >= 3.11) drives its Persistence model through
+ # the PyHazards runner; zarr + gcsfs read small slices of the public WeatherBench 2 stores.
+ - suite: weather
+ python: "3.12"
+ torch: torch
+ requirements: tests/oracle/requirements-weather.txt
+ references: ""
+ tests: tests/oracle/test_forecasts_weather_oracle.py
+ # NeuralHydrology and googlehydrology (Google's flood-forecasting fork) are imported from their pinned
+ # checkouts; googlehydrology targets Python 3.12. Both repositories provide real test data (4 CAMELS-US
+ # basins, Caravan netCDF files) and the released FloodHub weights; the 939 MB HydroShare archive of the
+ # Kratzert et al. (2019) runs is not fetched in CI (those tests run locally with PYHAZARDS_ORACLE_LARGE=1).
+ # The official UrbanFloodCast DNO (no licence; test oracle only) needs torch, numpy, scipy and matplotlib,
+ # which this suite has.
+ - suite: flood
+ python: "3.12"
+ torch: torch
+ requirements: tests/oracle/requirements-flood.txt
+ references: neuralhydrology ealstm_regional_modeling flood-forecasting floodhub_weights UrbanFloodCast
+ tests: >-
+ tests/oracle/test_neuralhydrology_oracle.py
+ tests/oracle/test_google_flood_forecasting_oracle.py
+ tests/oracle/test_urbanfloodcast_oracle.py
+ # HydroGraphNet: NVIDIA PhysicsNeMo's MeshGraphKAN, physics loss, rollout and HydroGraphDataset, imported
+ # from the pinned checkout. PyTorch Geometric + torch_scatter (CPU wheels up to torch 2.12) and the
+ # packages `import physicsnemo` needs; see requirements-physicsnemo.txt.
+ - suite: physicsnemo
+ python: "3.12"
+ torch: torch==2.12.0 torchvision==0.27.0
+ requirements: tests/oracle/requirements-physicsnemo.txt
+ references: physicsnemo
+ tests: tests/oracle/test_hydrographnet_oracle.py
+ # TerraTorch 0.99.8 (the Prithvi-EO-2.0 BurnScars training stack) needs Python >= 3.12 and
+ # torch 2.6. The 1.3 GB checkpoints are not fetched in CI; those tests run locally.
+ - suite: prithvi
+ python: "3.12"
+ torch: torch==2.6.0 torchvision==0.21.0
+ requirements: tests/oracle/requirements-prithvi.txt
+ references: prithvi_eo2_tl_model_code prithvi_burnscars_config prithvi_burnscars_example
+ tests: tests/oracle/test_prithvi_oracle.py
+ # Earthquake phase pickers: the official PhaseNet (TF1 graph), EQTransformer and GPD (Keras) run on
+ # TensorFlow 2.11 with their released weights; SeisBench 0.12.6 (GPL-3.0) is a second oracle.
+ # WaveCastNet's official PyTorch code and both released checkpoints (40 MB, 66 MB, Google Drive),
+ # and EQNet's backbone / heads (AI4EPS/EQNet, non-commercial: oracle only) need only torch and numpy.
+ - suite: earthquake
+ python: "3.10"
+ torch: torch
+ requirements: tests/oracle/requirements-earthquake.txt
+ references: >-
+ PhaseNet EQTransformer generalized-phase-detection seisbench_phasenet_original
+ seisbench_eqtransformer_original seisbench_eqtransformer_original_nonconservative
+ seisbench_gpd_original WaveCastNet wavecastnet_dense_checkpoint wavecastnet_sparse_checkpoint
+ EQNet EQNet-2022
+ tests: >-
+ tests/oracle/test_picking_metrics_oracle.py
+ tests/oracle/test_phasenet_oracle.py
+ tests/oracle/test_eqtransformer_oracle.py
+ tests/oracle/test_gpd_oracle.py
+ tests/oracle/test_seisbench_reader_oracle.py
+ tests/oracle/test_wavecastnet_oracle.py
+ tests/oracle/test_eqnet_oracle.py
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Set up Python
+ uses: actions/setup-python@v5
+ with:
+ python-version: ${{ matrix.python }}
+
+ - name: Cache reference implementations and weights
+ uses: actions/cache@v4
+ with:
+ path: |
+ ~/.cache/pyhazards-oracles
+ ~/.cache/torch/hub
+ key: oracles-${{ matrix.suite }}-${{ hashFiles('tests/oracle/repos.yaml') }}
+
+ - name: Install system packages
+ if: matrix.apt != ''
+ run: sudo apt-get update && sudo apt-get install -y ${{ matrix.apt }}
+
+ - name: Install dependencies (CPU Torch + reference packages)
+ run: |
+ python -m pip install --upgrade pip
+ if [ -n "${{ matrix.torch }}" ]; then
+ python -m pip install ${{ matrix.torch }} --index-url https://download.pytorch.org/whl/cpu
+ fi
+ python -m pip install pytest
+ python -m pip install -r ${{ matrix.requirements }}
+ python -m pip install -e .
+
+ - name: Fetch pinned reference implementations
+ if: matrix.references != ''
+ run: python scripts/fetch_oracles.py --dest ~/.cache/pyhazards-oracles ${{ matrix.references }}
+
+ - name: Oracle tests
+ run: |
+ export PYHAZARDS_ORACLE_DIR="$HOME/.cache/pyhazards-oracles"
+ mkdir -p "$PYHAZARDS_ORACLE_DIR"
+ export PYHAZARDS_ORACLE_REQUIRED=1
+ export DGLBACKEND=pytorch
+ export KERAS_BACKEND=torch
+ python -m pytest ${{ matrix.tests }} -v -rs
diff --git a/README.md b/README.md
index 92927611..c688ed00 100644
--- a/README.md
+++ b/README.md
@@ -57,7 +57,7 @@ Intended users:
- **Wildfire**: danger forecasting, weekly forecasting, spread baselines, fuels, burn products, and active-fire sources.
- **Earthquake**: waveform picking, dense-grid forecasting adapters, and linked benchmark ecosystems for picking and forecasting.
- **Flood**: streamflow and inundation baselines with benchmark-backed evaluation paths.
-- **Tropical Cyclone**: track-and-intensity forecasting baselines plus shared benchmark ecosystems and adapters.
+- **Tropical Cyclone**: track-and-intensity forecasting baselines, IBTrACS / TCND / SHIPS readers, and cyclone tracks from global weather models (FourCastNet, GraphCast, Pangu-Weather) via trackers and published forecasts (`pyhazards.forecasts`).
## Installation
@@ -90,14 +90,8 @@ python -c "import pyhazards; print(pyhazards.__version__)"
```python
from pyhazards.models import build_model
-model = build_model(
- name="hydrographnet",
- task="regression",
- node_in_dim=2,
- edge_in_dim=3,
- out_dim=1,
-)
-print(type(model).__name__)
+model = build_model(name="hydrographnet", task="regression") # PhysicsNeMo's MeshGraphKAN
+print(type(model).__name__, sum(p.numel() for p in model.parameters())) # HydroGraphNet 2318722
```
3. Run a benchmark-aligned smoke configuration:
diff --git a/docs/source/api/pyhazards.datasets.rst b/docs/source/api/pyhazards.datasets.rst
index 1a7c06fc..1c8378fa 100644
--- a/docs/source/api/pyhazards.datasets.rst
+++ b/docs/source/api/pyhazards.datasets.rst
@@ -14,27 +14,27 @@ For the curated browsing experience, use :doc:`/pyhazards_datasets`.
Shared Forcing
~~~~~~~~~~~~~~
-:doc:`ERA5 `, :doc:`GOES-R `, :doc:`MERRA-2 `.
+:doc:`ERA5 `, :doc:`GOES-R `, :doc:`HRRR `, :doc:`LandScan Global `, :doc:`MERRA-2 `, :doc:`NDFD `, :doc:`SNODAS `.
Wildfire
~~~~~~~~
-:doc:`FIRMS `, :doc:`FPA-FOD Tabular `, :doc:`FPA-FOD Weekly `, :doc:`LANDFIRE `, :doc:`MTBS `, :doc:`WFIGS `.
+:doc:`CAL FIRE FRAP Fire Perimeters `, :doc:`FIgLib SmokeBench `, :doc:`FIRMS `, :doc:`FPA-FOD Tabular `, :doc:`FPA-FOD Weekly `, :doc:`GeoMAC Historical Perimeters `, :doc:`GOES-R ABI Fire/Hot Spot Characterization (FDCF) `, :doc:`LANDFIRE `, :doc:`MTBS `, :doc:`NOAA HMS Smoke Polygons `, :doc:`Track-O Wildfire Occurrence `, :doc:`WFIGS `, :doc:`Wildfire Risk to Communities: Housing Density `, :doc:`WRF-SFIRE Outputs `.
Flood
~~~~~
-:doc:`Caravan `, :doc:`FloodCastBench `, :doc:`HydroBench `, :doc:`NOAA Flood Events `, :doc:`WaterBench `.
+:doc:`CAMELS-US `, :doc:`Caravan `, :doc:`HydroGraphNet White River `, :doc:`NOAA Flood Events `, :doc:`Synthetic Mesh Hydrographs `, :doc:`Synthetic Urban Flood Events `.
Earthquake
~~~~~~~~~~
-:doc:`AEFA Forecast `, :doc:`pick-benchmark `, :doc:`SeisBench `.
+:doc:`SeisBench-format Waveforms `, :doc:`Synthetic Phase-Picking Waveforms `, :doc:`Synthetic Wavefield Sequences `.
Tropical Cyclone
~~~~~~~~~~~~~~~~
-:doc:`IBTrACS `, :doc:`TCBench Alpha `, :doc:`TropiCycloneNet-Dataset `.
+:doc:`Hurricast IBTrACS + ERA5 Inputs `, :doc:`IBTrACS `, :doc:`SHIPS Predictors (Xu et al. 2021) `, :doc:`Synthetic Hurricast Inputs `, :doc:`Synthetic SAF-Net Inputs `, :doc:`Synthetic SHIPS Predictors `, :doc:`Synthetic Storm Histories `, :doc:`Synthetic TCIF-fusion Inputs `, :doc:`Synthetic TCND Samples `, :doc:`TCBench Alpha `, :doc:`TropiCycloneNet Dataset `.
Developer Dataset Workflow
--------------------------
@@ -58,7 +58,7 @@ Load a Registered Dataset
print(available_datasets())
data = load_dataset(
- "seisbench_waveforms",
+ "earthquake_waveforms_synthetic",
micro=True,
).load()
print(sorted(data.splits.keys()))
diff --git a/docs/source/api/pyhazards.forecasts.rst b/docs/source/api/pyhazards.forecasts.rst
new file mode 100644
index 00000000..3586abc3
--- /dev/null
+++ b/docs/source/api/pyhazards.forecasts.rst
@@ -0,0 +1,79 @@
+pyhazards.forecasts package
+===========================
+
+Cyclone tracks from global ML weather models (FourCastNet, GraphCast, Pangu-Weather): readers for
+published forecasts and tracks (TCBench, WeatherBench 2), an optional earth2studio runner, the
+TempestExtremes-compatible and ECMWF-style trackers, IBTrACS matching and scoring. See
+:doc:`/pyhazards_forecasts`.
+
+Submodules
+----------
+
+pyhazards.forecasts.tempest module
+----------------------------------
+
+.. automodule:: pyhazards.forecasts.tempest
+ :members:
+ :show-inheritance:
+
+pyhazards.forecasts.following module
+------------------------------------
+
+.. automodule:: pyhazards.forecasts.following
+ :members:
+ :show-inheritance:
+
+pyhazards.forecasts.matching module
+-----------------------------------
+
+.. automodule:: pyhazards.forecasts.matching
+ :members:
+
+pyhazards.forecasts.scoring module
+----------------------------------
+
+.. automodule:: pyhazards.forecasts.scoring
+ :members:
+
+pyhazards.forecasts.pipeline module
+-----------------------------------
+
+.. automodule:: pyhazards.forecasts.pipeline
+ :members:
+
+pyhazards.forecasts.tcbench module
+----------------------------------
+
+.. automodule:: pyhazards.forecasts.tcbench
+ :members:
+ :show-inheritance:
+
+pyhazards.forecasts.weatherbench2 module
+----------------------------------------
+
+.. automodule:: pyhazards.forecasts.weatherbench2
+ :members:
+
+pyhazards.forecasts.earth2studio\_runner module
+-----------------------------------------------
+
+.. automodule:: pyhazards.forecasts.earth2studio_runner
+ :members:
+
+pyhazards.forecasts.fields module
+---------------------------------
+
+.. automodule:: pyhazards.forecasts.fields
+ :members:
+
+pyhazards.forecasts.catalog module
+----------------------------------
+
+.. automodule:: pyhazards.forecasts.catalog
+ :members:
+
+pyhazards.forecasts.synthetic module
+------------------------------------
+
+.. automodule:: pyhazards.forecasts.synthetic
+ :members:
diff --git a/docs/source/api/pyhazards.metrics.rst b/docs/source/api/pyhazards.metrics.rst
index a79a09ac..a8c136d3 100644
--- a/docs/source/api/pyhazards.metrics.rst
+++ b/docs/source/api/pyhazards.metrics.rst
@@ -5,3 +5,19 @@ pyhazards.metrics package
:members:
:undoc-members:
:show-inheritance:
+
+pyhazards.metrics.hydrology module
+----------------------------------
+
+.. automodule:: pyhazards.metrics.hydrology
+ :members:
+ :undoc-members:
+ :show-inheritance:
+
+pyhazards.metrics.inundation module
+-----------------------------------
+
+.. automodule:: pyhazards.metrics.inundation
+ :members:
+ :undoc-members:
+ :show-inheritance:
diff --git a/docs/source/api/pyhazards.models.rst b/docs/source/api/pyhazards.models.rst
index f2ee6f21..be922a62 100644
--- a/docs/source/api/pyhazards.models.rst
+++ b/docs/source/api/pyhazards.models.rst
@@ -17,7 +17,7 @@ Wildfire
Implemented Models
++++++++++++++++++
-:doc:`ASUFM `, :doc:`DNN-LSTM-AutoEncoder `, :doc:`FireCastNet `, :doc:`ForeFire Adapter `, :doc:`Wildfire Forecasting `, :doc:`WildfireSpreadTS `, :doc:`WRF-SFIRE Adapter `, :doc:`CNN-ASPP `.
+:doc:`ASUFM `, :doc:`Attention U-Net `, :doc:`ConvGRU `, :doc:`ConvLSTM `, :doc:`Deep Ensemble `, :doc:`DeepLabV3 `, :doc:`DNN-LSTM-AutoEncoder `, :doc:`Earthfarseer `, :doc:`Earthformer `, :doc:`FireCastNet `, :doc:`Logistic Regression (pixel) `, :doc:`Prithvi-EO-2.0 BurnScars `, :doc:`Prithvi-EO-2.0-TL `, :doc:`Rainformer `, :doc:`Random Forest `, :doc:`ResNet-18 U-Net `, :doc:`SegFormer `, :doc:`Swin-Unet `, :doc:`SwinLSTM `, :doc:`SwinUNETR `, :doc:`TCN `, :doc:`TrajGRU `, :doc:`TS-SatFire Baselines `, :doc:`U-Net-3D (MONAI) `, :doc:`U-TAE `, :doc:`UNETR `, :doc:`Wildfire Forecasting `, :doc:`WildfireSpreadTS Baselines `, :doc:`CNN-ASPP `, :doc:`U-Net `, :doc:`XGBoost `.
Earthquake
~~~~~~~~~~
@@ -25,7 +25,7 @@ Earthquake
Implemented Models
++++++++++++++++++
-:doc:`EQNet `, :doc:`EQTransformer `, :doc:`GPD `, :doc:`PhaseNet `, :doc:`WaveCastNet `.
+:doc:`EQTransformer `, :doc:`GPD `, :doc:`PhaseNet `, :doc:`WaveCastNet `, :doc:`EQNet `.
Flood
~~~~~
@@ -33,7 +33,12 @@ Flood
Implemented Models
++++++++++++++++++
-:doc:`EA-LSTM `, :doc:`FloodCast `, :doc:`Google Flood Forecasting `, :doc:`NeuralHydrology LSTM `, :doc:`UrbanFloodCast `, :doc:`HydroGraphNet `.
+:doc:`EA-LSTM `, :doc:`Google Flood Forecasting `, :doc:`HydroGraphNet `, :doc:`NeuralHydrology LSTM `, :doc:`UrbanFloodCast `.
+
+Experimental Adapters
++++++++++++++++++++++
+
+:doc:`FloodCast `.
Tropical Cyclone
~~~~~~~~~~~~~~~~
@@ -43,11 +48,6 @@ Implemented Models
:doc:`Hurricast `, :doc:`SAF-Net `, :doc:`TCIF-fusion `, :doc:`Tropical Cyclone MLP `, :doc:`TropiCycloneNet `.
-Experimental Adapters
-+++++++++++++++++++++
-
-:doc:`FourCastNet TC Adapter `, :doc:`GraphCast TC Adapter `, :doc:`Pangu TC Adapter `.
-
Developer Registry Workflow
---------------------------
@@ -63,7 +63,7 @@ Build a Registered Model
model = build_model(
name="phasenet",
- task="regression",
+ task="picking",
in_channels=3,
)
diff --git a/docs/source/api/pyhazards.prompted.rst b/docs/source/api/pyhazards.prompted.rst
new file mode 100644
index 00000000..534b6833
--- /dev/null
+++ b/docs/source/api/pyhazards.prompted.rst
@@ -0,0 +1,51 @@
+pyhazards.prompted package
+==========================
+
+Prompted multimodal-LLM baselines following SmokeBench; see :doc:`/pyhazards_prompted`.
+
+.. automodule:: pyhazards.prompted
+ :members:
+ :undoc-members:
+ :show-inheritance:
+
+pyhazards.prompted.prompts module
+---------------------------------
+
+.. automodule:: pyhazards.prompted.prompts
+ :members:
+
+pyhazards.prompted.geometry module
+----------------------------------
+
+.. automodule:: pyhazards.prompted.geometry
+ :members:
+
+pyhazards.prompted.parsers module
+---------------------------------
+
+.. automodule:: pyhazards.prompted.parsers
+ :members:
+
+pyhazards.prompted.metrics module
+---------------------------------
+
+.. automodule:: pyhazards.prompted.metrics
+ :members:
+
+pyhazards.prompted.runner module
+--------------------------------
+
+.. automodule:: pyhazards.prompted.runner
+ :members:
+
+pyhazards.prompted.backends package
+-----------------------------------
+
+.. automodule:: pyhazards.prompted.backends.base
+ :members:
+
+.. automodule:: pyhazards.prompted.backends.hf
+ :members:
+
+.. automodule:: pyhazards.prompted.backends.api
+ :members:
diff --git a/docs/source/api/pyhazards.rst b/docs/source/api/pyhazards.rst
index 385a8563..358093eb 100644
--- a/docs/source/api/pyhazards.rst
+++ b/docs/source/api/pyhazards.rst
@@ -9,6 +9,9 @@ Subpackages
pyhazards.datasets
pyhazards.models
+ pyhazards.prompted
+ pyhazards.simulators
+ pyhazards.forecasts
pyhazards.benchmarks
pyhazards.configs
pyhazards.reports
diff --git a/docs/source/api/pyhazards.simulators.rst b/docs/source/api/pyhazards.simulators.rst
new file mode 100644
index 00000000..c5c8a635
--- /dev/null
+++ b/docs/source/api/pyhazards.simulators.rst
@@ -0,0 +1,38 @@
+pyhazards.simulators package
+============================
+
+Adapters to external, physics-based fire simulators. ForeFire runs through
+:class:`~pyhazards.simulators.ForeFireSimulator` (the official ``pyforefire``, installed
+separately); WRF-SFIRE outputs are read by :mod:`pyhazards.datasets.wrf_sfire`. See
+:doc:`/pyhazards_simulators`.
+
+Submodules
+----------
+
+pyhazards.simulators.forefire module
+------------------------------------
+
+.. automodule:: pyhazards.simulators.forefire
+ :members:
+ :show-inheritance:
+
+pyhazards.datasets.wrf_sfire.reader module
+------------------------------------------
+
+.. automodule:: pyhazards.datasets.wrf_sfire.reader
+ :members:
+ :show-inheritance:
+
+pyhazards.datasets.wrf_sfire.dataset module
+-------------------------------------------
+
+.. automodule:: pyhazards.datasets.wrf_sfire.dataset
+ :members:
+ :show-inheritance:
+
+Module contents
+---------------
+
+.. automodule:: pyhazards.simulators
+ :members:
+ :show-inheritance:
diff --git a/docs/source/appendix_a_coverage.rst b/docs/source/appendix_a_coverage.rst
index 10610e49..e09d7f93 100644
--- a/docs/source/appendix_a_coverage.rst
+++ b/docs/source/appendix_a_coverage.rst
@@ -9,40 +9,61 @@ Overview
This page audits the current PyHazards implementation against the
planned methods, benchmarks, and datasets listed in ``pyhazard_plan.pdf``.
It separates implemented public entries from variant-only entries,
-experimental wrappers, and items that are still missing.
+experimental wrappers, external simulators, foundation-model pipelines, and items that are still missing.
Status meanings:
- ``Implemented``: a public PyHazards adapter exists for the named method or resource.
- ``Experimental``: a lightweight wrapper exists, but it should not be counted as stable core coverage.
+- ``External simulator``: PyHazards drives the official simulator, installed separately, or reads
+ its outputs. Nothing of the simulator is reimplemented, and it is not counted as a model.
+- ``Foundation model pipeline``: a global weather model whose hazard results come from tracking its
+ forecast fields. PyHazards reads published forecasts or tracks, can run the official model through a
+ separately installed runner, and provides the tracker and the scoring; the model itself is not
+ reimplemented and is not counted as a model.
- ``Missing``: no aligned adapter or benchmark integration is present yet.
Hazard Summary
--------------
.. list-table::
- :widths: 26 18 18 18
+ :widths: 22 13 13 13 13 13 13
:header-rows: 1
:class: dataset-list
* - Hazard Family
- Implemented
+ - Variant only
- Experimental
+ - External
+ - Pipeline
- Missing
* - Earthquake
- - 8
+ - 4
+ - 1
+ - 0
- 0
- 0
+ - 3
* - Wildfire
- - 6
+ - 4
+ - 0
+ - 0
+ - 2
- 0
- 0
* - Flood
- - 8
+ - 4
- 0
+ - 1
- 0
+ - 0
+ - 3
* - Hurricane / Tropical Cyclone
- 8
+ - 0
+ - 0
+ - 0
- 3
- 0
@@ -65,199 +86,199 @@ Method and Resource Matrix
- Baseline
- ``Implemented``
- :doc:`PhaseNet `
- - Model adapter is implemented, but the SeisBench / pick-benchmark data path is still missing.
+ - Port of the official TensorFlow U-Net (268,443 parameters); the released checkpoint 190703-214543 loads without TensorFlow and matches the official graph and SeisBench's port. Scored with the PhaseNet and EQTransformer pick metrics on real SeisBench-format / STEAD data.
* - Earthquake
- `EQTransformer `_
- Baseline
- ``Implemented``
- :doc:`EQTransformer `
- - Model adapter is implemented, but the benchmark stack remains lighter than the PDF target.
+ - Port of the released Keras models (paper model 371,639 parameters, conservative 376,423) with detection, P and S outputs; both official .h5 files load and match Keras and SeisBench.
* - Earthquake
- `GPD `_
- Baseline
- ``Implemented``
- :doc:`GPD `
- - Model adapter is implemented behind the shared picking interface.
+ - Port of the released Keras P/S/noise window classifier (1,741,003 parameters) and its sliding-window picker; the official weights match Keras and SeisBench and reproduce the shipped Anza picks.
* - Earthquake
- `EQNet `_
- Baseline
- - ``Implemented``
+ - ``Variant only``
- :doc:`EQNet `
- - Model adapter is implemented behind the shared picking interface.
+ - Rebuilt from the paper (Zhu et al. 2022, doi:10.1029/2021JB023283; 1,043,619 parameters): 1-D ResNet-18 feature extractor, P and S picking heads, shift-and-stack over candidate hypocentres and event detection, with a multi-station input (station gathers plus travel times). The official repository (non-commercial licence, no shift-and-stack, no weights) is only a test oracle: the feature extractor and both heads match the author's code; the shift-and-stack module and the end-to-end model are unverified. Its picking heads are scored on the earthquake.picking task.
* - Earthquake
- `SeisBench `_
- Benchmark / Data Ecosystem
- ``Implemented``
- None
- - A synthetic-backed SeisBench-compatible waveform adapter is registered for smoke benchmarking.
+ - seisbench_waveforms reads SeisBench-format datasets (and STEAD's own files) with PyHazards' own reader, checked against SeisBench's writer and reader; SeisBench itself (GPL-3.0) is only a test oracle. Datasets are downloaded by the user.
* - Earthquake
- `pick-benchmark `_
- Benchmark
- - ``Implemented``
+ - ``Missing``
- None
- - A synthetic-backed pick-benchmark-compatible waveform adapter is registered for smoke benchmarking.
+ - Its SeisBench-format datasets can be read with seisbench_waveforms, but its three evaluation tasks (event detection AUC, phase identification MCC, onset regression on sampled windows) are not implemented; PyHazards scores pickers with the PhaseNet / EQTransformer pick metrics instead. The former synthetic pick_benchmark_waveforms adapter was removed.
* - Earthquake
- `pyCSEP `_
- Benchmark / Reports
- - ``Implemented``
+ - ``Missing``
- None
- - The forecasting smoke benchmark exports a pyCSEP-style JSON artifact.
+ - pyCSEP tests earthquake-rate forecasts (Savran et al. 2022, doi:10.1785/0220220033); PyHazards has no rate-forecasting task. The former 'pyCSEP-style' JSON export of the wavefield-forecasting benchmark was only a metrics dump and was removed.
* - Earthquake
- `AEFA `_
- Dataset / Forecast Benchmark
- - ``Implemented``
+ - ``Missing``
- None
- - A synthetic-backed AEFA-style forecasting dataset adapter is registered.
+ - AEFA is a weekly earthquake-occurrence forecasting dataset with electromagnetic / geoacoustic features (Chen et al. 2025, doi:10.1016/j.geoai.2025.100022; README states GPL-3.0). No loader exists; the former aefa_forecast adapter generated synthetic wavefields (now earthquake_wavefield_synthetic, used by WaveCastNet's wavefield-forecasting task) and was removed.
* - Wildfire
- `wildfire_forecasting `_
- Baseline
- ``Implemented``
- :doc:`Wildfire Forecasting `
- -
+ - The paper's LSTM (default) and ConvLSTM are ported and checked against the official code; the Greek datacube is not loaded yet (synthetic smoke data). The paper's random forest (random_forest, checked against the official notebook) and XGBoost (xgboost, hyperparameters pending the paper's Supporting Information) are separate entries.
* - Wildfire
- `WildfireSpreadTS `_
- Baseline / Benchmark
- ``Implemented``
- - :doc:`WildfireSpreadTS `
+ - :doc:`WildfireSpreadTS Baselines `
-
* - Wildfire
- `ASUFM `_
- Baseline
- ``Implemented``
- :doc:`ASUFM `
- -
+ - Next-day fire-mask segmentation on 64x64 NDWS tiles, verified against the official code; the smoke benchmark runs it on synthetic 64x64 spread rasters because no NDWS loader exists yet.
* - Wildfire
- `WRF-SFIRE `_
- - Simulator Adapter
- - ``Implemented``
- - :doc:`WRF-SFIRE Adapter `
- - The current adapter is lightweight and synthetic-backed rather than a full external simulator binding.
+ - Simulator Output Reader
+ - ``External simulator``
+ - :doc:`WRF-SFIRE Outputs `, :doc:`Simulators `
+ - PyHazards does not run WRF-SFIRE (an MPI Fortran model). The ``wrf_sfire_spread`` dataset reads the fire grid (TIGN_G, LFN, FIRE_AREA, FGRNHFX, ROS, ...) of wrfout files written by the official model into spread rasters. Variable names and layout follow the official Registry and were checked on a real output of the official hill ideal case.
* - Wildfire
- `ForeFire `_
- Simulator Adapter
- - ``Implemented``
- - :doc:`ForeFire Adapter `
- - The current adapter is lightweight and synthetic-backed rather than a full external simulator binding.
+ - ``External simulator``
+ - :doc:`Simulators `
+ - ForeFireSimulator runs the official ForeFire engine (GPL-3.0; installed separately with ``pip install forefire``, never vendored) on PyHazards rasters and returns arrival-time and burned-mask rasters. It reproduces ForeFire's own regression reference (tests/runff) and the official idealized-wind example. It is a physics simulator, not a trainable model.
* - Wildfire
- `FireCastNet `_
- Optional Baseline
- ``Implemented``
- :doc:`FireCastNet `
- -
+ - Pure PyTorch port of the official model; the released SeasFire checkpoints load and match the official DGL implementation. SeasFire datacube backing is still missing.
* - Flood
- `NeuralHydrology `_
- Baseline Family
- ``Implemented``
- :doc:`NeuralHydrology LSTM `, :doc:`EA-LSTM `
- - The LSTM and EA-LSTM adapters are implemented, but Caravan / WaterBench benchmark backing is still missing.
+ - Ports of NeuralHydrology's CudaLSTM and EA-LSTM at the Kratzert et al. (2019) configuration, checked against NeuralHydrology and the official 2019 checkpoints; CAMELS-US and Caravan readers and the per-basin NSE / KGE evaluation are checked against NeuralHydrology's datasets and Tester.
* - Flood
- `Caravan `_
- Dataset
- ``Implemented``
- - None
- - A synthetic-backed Caravan adapter is registered for streamflow smoke benchmarking.
+ - :doc:`Caravan `
+ - ``caravan_streamflow`` reads a local copy of the official release (netCDF or CSV) into NeuralHydrology-style samples; checked against NeuralHydrology's reader on real Caravan files.
* - Flood
- `WaterBench `_
- Dataset
- - ``Implemented``
+ - ``Missing``
- None
- - A synthetic-backed WaterBench adapter is registered for streamflow smoke benchmarking.
+ - No reader. The former ``waterbench_streamflow`` adapter generated random numbers and was removed.
* - Flood
- `FloodCast `_
- Baseline
- - ``Implemented``
+ - ``Experimental``
- :doc:`FloodCast `
- - The model adapter is implemented, but FloodCastBench-backed evaluation is not wired yet.
+ - The model under this name is a small CNN, not FloodCast (Xu et al. 2024, doi:10.1016/j.watres.2024.122162). The flood model (sequence-to-sequence GeoPINS, a physics-informed space-time Fourier operator) was never released, and the paper does not report its channel widths, so it cannot be rebuilt faithfully; the repository has no licence.
* - Flood
- `FloodCastBench `_
- Benchmark
- - ``Implemented``
+ - ``Missing``
- None
- - A synthetic-backed FloodCastBench-style inundation adapter is registered.
+ - No reader for the 21.6 GB release (Zenodo 10.5281/zenodo.14017092); the former ``floodcastbench_inundation`` adapter generated random numbers and was removed. Its FNO / FNO+ baselines (4 layers, 12 modes, width 20) are not provided: only the data-generation code was released (no licence), so there is no model code to check a port against. The ``flood.inundation`` metrics (RMSE, NSE, Pearson r, CSI) cover its scores.
* - Flood
- `UrbanFloodCast `_
- Baseline
- ``Implemented``
- :doc:`UrbanFloodCast `
- - The model adapter is implemented on synthetic inundation fixtures today.
+ - The deep neural operator (DNO-3, 4,470,437 parameters, 24 steps at once) written from the paper with U-NO (BSD-2) and FNO (MIT) blocks, since the official code has no licence; parameters, seeded initialisation, outputs, the one-shot input pipeline and the evaluation metrics match the official code. The Berlin GeoTIFFs (Zenodo 10.5281/zenodo.15700880) have no reader yet (urbanfloodcast_synthetic in their layout).
* - Flood
- `HydroBench `_
- Benchmark / Diagnostics
- - ``Implemented``
+ - ``Missing``
- None
- - A synthetic-backed HydroBench adapter is registered for streamflow smoke benchmarking.
+ - No integration. The former ``hydrobench_streamflow`` adapter generated random numbers and was removed; the flood benchmark computes NeuralHydrology's hydrograph metrics instead.
* - Flood
- `google-research/flood-forecasting `_
- Reference Baseline
- ``Implemented``
- :doc:`Google Flood Forecasting `
- -
+ - Port of the released FloodHub model (MeanEmbeddingForecastLSTM, Gauch et al. 2025); the released weights load and match googlehydrology. Caravan MultiMet forecast inputs are not read yet.
* - Hurricane / Tropical Cyclone
- `Hurricast `_
- Baseline
- ``Implemented``
- :doc:`Hurricast `
- - The model adapter is implemented, but the real TCBench / IBTrACS data path is still missing.
+ - Written from the paper (the official code has no licence): the CNN + Transformer encoder-decoder matches the official network for every released preset (seeded weights, outputs, gradients) and XGBoost runs on its embeddings with the official defaults; hurricast_ibtracs_era5 reads IBTrACS and ERA5. The paper's GRU decoder is not in the released code; no weights were released.
* - Hurricane / Tropical Cyclone
- `tropicalcyclone_MLP `_
- Baseline
- ``Implemented``
- :doc:`Tropical Cyclone MLP `
- - The model adapter is implemented as a basin-filtered storm baseline.
+ - The official 24-hour intensity-change MLP (121 SHIPS predictors, BSD-2) is ported and matches the official Keras model; ships_xu2021 reads the authors' predictor table (Zenodo 4784610) with the official leave-one-year-out folds. No trained weights were released.
* - Hurricane / Tropical Cyclone
- `TCIF-fusion `_
- Baseline
- ``Implemented``
- :doc:`TCIF-fusion `
- - The model adapter is implemented behind the shared storm evaluator.
+ - Written from the paper and the notebook (no licence); the notebook graph rebuilt in Keras 3 gives the same outputs with copied weights and the authors' printed layer counts (299.6 M parameters). The ALL input has the paper's 65 channels (notebook: 85). The CMA / ERA5 / GridSat-B1 inputs have no reader yet (synthetic layout only).
* - Hurricane / Tropical Cyclone
- `SAF-Net `_
- Baseline
- ``Implemented``
- :doc:`SAF-Net `
- - The model adapter is implemented behind the shared storm evaluator.
+ - Written from the paper (the official code has no licence); the released checkpoint loads strictly and matches the official notebook network. The CMA / ERA-Interim inputs have no PyHazards reader yet (synthetic layout only).
* - Hurricane / Tropical Cyclone
- `TropiCycloneNet `_
- Baseline
- ``Implemented``
- :doc:`TropiCycloneNet `
- - The model adapter is implemented, but the public benchmark/data track remains synthetic-first.
+ - The six-generator GAN (CC BY 4.0 release) is ported; the released checkpoint loads strictly and matches the official code. The benchmark reports the paper's best-of-6 errors next to sample-mean errors.
* - Hurricane / Tropical Cyclone
- `TropiCycloneNet-Dataset `_
- Dataset
- ``Implemented``
- - None
- - A synthetic-backed TropiCycloneNet-Dataset adapter is registered.
+ - :doc:`TropiCycloneNet Dataset `
+ - tropicyclonenet_dataset reads TCND Data1d, Env-Data and 500 hPa GPH files (Zenodo, CC BY 4.0) exactly like the official TropiCycloneNet loader; tropicyclonenet_dataset_synthetic is a random stand-in for smoke tests.
* - Hurricane / Tropical Cyclone
- `TCBench Alpha `_
- Benchmark
- ``Implemented``
- - None
- - A synthetic-backed TCBench Alpha adapter is registered.
+ - :doc:`TCBench Alpha `, :doc:`Foundation Weather Models `
+ - pyhazards.forecasts reads TCBench's released tracks and raw forecast fields (Hugging Face, pinned revision), re-implements its TempestExtremes tracking (identical tracks) and HuracanPy matching, and scores direct position error and intensity errors exactly as its evaluation does (the DPE values printed in its notebook are reproduced; one only with the IBTrACS position TCBench used, since revised by NCEI). CRPS, along/cross-track errors, rapid-intensification scores and its post-processing models are not implemented.
* - Hurricane / Tropical Cyclone
- `IBTrACS `_
- Dataset
- ``Implemented``
- - None
- - A synthetic-backed IBTrACS adapter is registered.
+ - :doc:`IBTrACS `
+ - ibtracs_tracks reads NOAA NCEI IBTrACS v04 CSV or netCDF files (best-track positions, intensities, agency columns) into forecast windows; the cyclone benchmark scores great-circle track error in km and intensity errors per lead time.
* - Hurricane / Tropical Cyclone
- - `GraphCast / GenCast `_
- - Foundation Adapter
- - ``Experimental``
- - :doc:`GraphCast TC Adapter `
- - The current wrapper is intentionally lightweight and should not be counted as stable core coverage.
+ - `GraphCast `_
+ - Foundation Model Pipeline
+ - ``Foundation model pipeline``
+ - :doc:`Foundation Weather Models `
+ - Not reimplemented: GraphCast (36.3M parameters, JAX) is a global weather model whose cyclone tracks come from a tracker run on its forecasts. PyHazards reads WeatherBench 2's GraphCast forecasts (2018 from the 1979-2017 model, 2020), can run it through earth2studio (user-installed; weights CC BY 4.0 per the README since 2026-08-06), tracks with a re-implementation of the paper's modified ECMWF tracker (the tracker was never released) and scores against IBTrACS. The paper's Fig. 3 numbers are not reproduced. GenCast is a different model and is not covered.
* - Hurricane / Tropical Cyclone
- `Pangu-Weather `_
- - Foundation Adapter
- - ``Experimental``
- - :doc:`Pangu TC Adapter `
- - The current wrapper is intentionally lightweight and should not be counted as stable core coverage.
+ - Foundation Model Pipeline
+ - ``Foundation model pipeline``
+ - :doc:`Foundation Weather Models `
+ - Not reimplemented: PyHazards reads TCBench's released 2023 Pangu-Weather tracks and fields and WeatherBench 2's 2018-2022 forecasts, can run the official ONNX graphs through earth2studio, and tracks with the paper's ECMWF-style rules or TCBench's TempestExtremes rules. TCBench's released tracks are reproduced byte for byte from the raw fields, and its published DPE values exactly. The TC2018 numbers (120.29 / 195.65 km) are not reproduced. Weights CC BY-NC-SA 4.0 (non-commercial); the official repository has no code licence.
* - Hurricane / Tropical Cyclone
- `FourCastNet `_
- - Foundation Adapter
- - ``Experimental``
- - :doc:`FourCastNet TC Adapter `
- - The current wrapper is intentionally lightweight and should not be counted as stable core coverage.
+ - Foundation Model Pipeline
+ - ``Foundation model pipeline``
+ - :doc:`Foundation Weather Models `
+ - Not reimplemented: FourCastNet (74.7M-parameter AFNO) can be run through earth2studio (FCN, a 26-variable retrain) and its fields tracked and scored. The paper has only a qualitative cyclone case. TCBench's 'FourCastNet v2' tracks and fields (SFNO small, a different model) can be read and scored.
Current Public Non-Core Implementations
---------------------------------------
@@ -278,25 +299,21 @@ part of the current core method set.
- ``variant``
- :doc:`CNN-ASPP `
- Implemented outside the current core method set and kept public as an additional model.
- * - Earthquake
+ * - Wildfire
- ``variant``
- - :doc:`WaveCastNet `
+ - :doc:`U-Net `
- Implemented outside the current core method set and kept public as an additional model.
- * - Flood
+ * - Wildfire
- ``variant``
- - :doc:`HydroGraphNet `
+ - :doc:`XGBoost `
- Implemented outside the current core method set and kept public as an additional model.
- * - Tropical Cyclone
- - ``experimental``
- - :doc:`FourCastNet TC Adapter `
- - Wrapper-style experimental adapter pending stronger benchmark and dataset support.
- * - Tropical Cyclone
- - ``experimental``
- - :doc:`GraphCast TC Adapter `
- - Wrapper-style experimental adapter pending stronger benchmark and dataset support.
- * - Tropical Cyclone
+ * - Earthquake
+ - ``variant``
+ - :doc:`EQNet `
+ - Planned method rebuilt from its paper; only the parts covered by a reference implementation are verified against code (see its Reproduction section).
+ * - Flood
- ``experimental``
- - :doc:`Pangu TC Adapter `
+ - :doc:`FloodCast `
- Wrapper-style experimental adapter pending stronger benchmark and dataset support.
Execution Note
diff --git a/docs/source/benchmarks/aefa.rst b/docs/source/benchmarks/aefa.rst
deleted file mode 100644
index 725ed707..00000000
--- a/docs/source/benchmarks/aefa.rst
+++ /dev/null
@@ -1,101 +0,0 @@
-.. This file is generated by scripts/render_benchmark_docs.py. Do not edit by hand.
-
-AEFA
-====
-
-Overview
---------
-
-The AEFA alignment is implemented as a synthetic-backed dense-grid forecasting adapter used by the WaveCastNet benchmark config.
-
-It keeps the forecasting task and metric shape aligned without claiming a full AEFA data pipeline.
-
-At a Glance
------------
-
-.. grid:: 1 2 4 4
- :gutter: 2
- :class-container: catalog-grid
-
- .. grid-item-card:: Kind
- :class-card: catalog-stat-card
-
- .. container:: catalog-stat-value
-
- Ecosystem
-
- .. container:: catalog-stat-note
-
- Family benchmark or external ecosystem view.
-
- .. grid-item-card:: Hazard Family
- :class-card: catalog-stat-card
-
- .. container:: catalog-stat-value
-
- Earthquake
-
- .. container:: catalog-stat-note
-
- Public hazard grouping used on the benchmark index page.
-
- .. grid-item-card:: Support Status
- :class-card: catalog-stat-card
-
- .. container:: catalog-stat-value
-
- :bdg-info:`Synthetic-backed`
-
- .. container:: catalog-stat-note
-
- Current maturity of the adapter or evaluator path.
-
- .. grid-item-card:: Linked Models
- :class-card: catalog-stat-card
-
- .. container:: catalog-stat-value
-
- 1
-
- .. container:: catalog-stat-note
-
- 1 model
-
-
-Benchmark Mapping
------------------
-
-**Shared benchmark key:** ``earthquake``
-
-**Registered class:** ``EarthquakeBenchmark``
-
-Mapped benchmark family
-~~~~~~~~~~~~~~~~~~~~~~~
-
-:doc:`Earthquake Benchmark `
-
-Primary Source
-~~~~~~~~~~~~~~
-
-`AEFA `_.
-
-.. dropdown:: Supported Tasks
- :class-container: catalog-dropdown
-
- - Wavefield Forecasting
-
-.. dropdown:: Key Metrics
- :class-container: catalog-dropdown
-
- - ``mae``
- - ``mse``
-
-.. dropdown:: Smoke Configs
- :class-container: catalog-dropdown
-
- - ``wavecastnet_benchmark_smoke.yaml``
-
-.. dropdown:: Linked Models
- :class-container: catalog-dropdown
-
- :doc:`WaveCastNet `.
diff --git a/docs/source/benchmarks/waterbench.rst b/docs/source/benchmarks/camels_us.rst
similarity index 52%
rename from docs/source/benchmarks/waterbench.rst
rename to docs/source/benchmarks/camels_us.rst
index 73c5ca68..87854871 100644
--- a/docs/source/benchmarks/waterbench.rst
+++ b/docs/source/benchmarks/camels_us.rst
@@ -1,14 +1,14 @@
.. This file is generated by scripts/render_benchmark_docs.py. Do not edit by hand.
-WaterBench
-==========
+CAMELS-US
+=========
Overview
--------
-The current WaterBench alignment uses a metadata-only adapter over the shared synthetic streamflow bundle and preserves the streamflow task contract.
+``camels_us_streamflow`` reads a local CAMELS-US copy with the paper's defaults (forcings, the 27 attributes, 270-day windows, train 1999-10-01 to 2008-09-30, test 1989-10-01 to 1999-09-30). The ``flood.streamflow`` evaluator reports the median and mean NSE over basins and the number of basins with NSE <= 0, as in Table 2 of the paper, plus KGE, alpha-NSE, beta-NSE, FHV, FMS and FLV.
-It is currently exercised by the EA-LSTM smoke benchmark path.
+Applied to the official stored simulations of the 2019 runs, the PyHazards metrics give the paper's Table 2 values (e.g. EA-LSTM NSE* median 0.71 single / 0.74 ensemble; LSTM with static inputs 0.73 / 0.76). The smoke configs exercise the contract on synthetic basins.
At a Glance
-----------
@@ -44,7 +44,7 @@ At a Glance
.. container:: catalog-stat-value
- :bdg-info:`Synthetic-backed`
+ :bdg-success:`Real-backed`
.. container:: catalog-stat-note
@@ -55,11 +55,11 @@ At a Glance
.. container:: catalog-stat-value
- 1
+ 2
.. container:: catalog-stat-note
- 1 model
+ 2 models
Benchmark Mapping
@@ -77,7 +77,7 @@ Mapped benchmark family
Primary Source
~~~~~~~~~~~~~~
-`WaterBench: A Large-scale Benchmark Dataset for Data-driven Streamflow Forecasting `_ (`repo `__).
+`Towards learning universal, regional, and local hydrological behaviors via machine learning applied to large-sample datasets `_ (`repo `__).
.. dropdown:: Supported Tasks
:class-container: catalog-dropdown
@@ -87,17 +87,27 @@ Primary Source
.. dropdown:: Key Metrics
:class-container: catalog-dropdown
- - ``mae``
- - ``rmse``
- ``nse``
- - ``kge``
+ - ``nse_mean``
+ - ``n_basins_nse_le_0``
+ - ``alpha_nse``
+ - ``beta_nse``
+ - ``fhv``
+ - ``fms``
+ - ``flv``
.. dropdown:: Smoke Configs
:class-container: catalog-dropdown
+ - ``neuralhydrology_lstm_smoke.yaml``
- ``neuralhydrology_ealstm_smoke.yaml``
.. dropdown:: Linked Models
:class-container: catalog-dropdown
- :doc:`EA-LSTM `.
+ :doc:`NeuralHydrology LSTM `, :doc:`EA-LSTM `.
+
+.. dropdown:: Notes
+ :class-container: catalog-dropdown
+
+ - Dataset: Addor et al. (HESS 2017), CC BY 4.0; extended Maurer forcings on HydroShare (doi 10.4211/hs.17c896843cf940339c3c3496d0c1c077). PyHazards downloads nothing.
diff --git a/docs/source/benchmarks/caravan.rst b/docs/source/benchmarks/caravan.rst
index 291aecb3..010fa1f2 100644
--- a/docs/source/benchmarks/caravan.rst
+++ b/docs/source/benchmarks/caravan.rst
@@ -6,9 +6,9 @@ Caravan
Overview
--------
-The current Caravan alignment is a metadata-backed streamflow adapter layered on top of the shared synthetic graph-temporal flood dataset.
+``caravan_streamflow`` reads the official Caravan layout (per-basin netCDF or CSV time series and attribute CSVs) into NeuralHydrology-style samples; the ``flood.streamflow`` evaluator then reports per-basin NSE, KGE and the other NeuralHydrology metrics, summarised by the median and mean over basins.
-It currently drives the public smoke runs for NeuralHydrology LSTM and Google Flood Forecasting.
+Caravan has no fixed benchmark split: choose inputs, basins and periods for the experiment. Google's FloodHub model was trained on Caravan with the MultiMet forecast products (not read by PyHazards). The smoke configs exercise the same contract on synthetic basins.
At a Glance
-----------
@@ -44,7 +44,7 @@ At a Glance
.. container:: catalog-stat-value
- :bdg-info:`Synthetic-backed`
+ :bdg-success:`Real-backed`
.. container:: catalog-stat-note
@@ -55,11 +55,11 @@ At a Glance
.. container:: catalog-stat-value
- 2
+ 3
.. container:: catalog-stat-note
- 2 models
+ 3 models
Benchmark Mapping
@@ -77,7 +77,7 @@ Mapped benchmark family
Primary Source
~~~~~~~~~~~~~~
-`Caravan - A global community dataset for large-sample hydrology `_ (`repo `__).
+`Caravan - A global community dataset for large-sample hydrology `_ (`repo `__).
.. dropdown:: Supported Tasks
:class-container: catalog-dropdown
@@ -87,10 +87,9 @@ Primary Source
.. dropdown:: Key Metrics
:class-container: catalog-dropdown
- - ``mae``
- - ``rmse``
- ``nse``
- ``kge``
+ - ``nse_mean``
.. dropdown:: Smoke Configs
:class-container: catalog-dropdown
@@ -101,4 +100,9 @@ Primary Source
.. dropdown:: Linked Models
:class-container: catalog-dropdown
- :doc:`NeuralHydrology LSTM `, :doc:`Google Flood Forecasting `.
+ :doc:`NeuralHydrology LSTM `, :doc:`EA-LSTM `, :doc:`Google Flood Forecasting `.
+
+.. dropdown:: Notes
+ :class-container: catalog-dropdown
+
+ - The reader is checked against NeuralHydrology's Caravan dataset on real Caravan basin files.
diff --git a/docs/source/benchmarks/earthquake_benchmark.rst b/docs/source/benchmarks/earthquake_benchmark.rst
index c1beb12f..58b60226 100644
--- a/docs/source/benchmarks/earthquake_benchmark.rst
+++ b/docs/source/benchmarks/earthquake_benchmark.rst
@@ -6,9 +6,11 @@ Earthquake Benchmark
Overview
--------
-The earthquake benchmark family groups the picking and forecasting paths under one registered evaluator and benchmark runner entrypoint.
+``earthquake.picking`` takes three-component windows ``(n, 3, samples)`` and arrival targets ``(n, 2)`` (P, S samples; NaN = none). Each model's own pipeline turns waveforms into picks (``annotate`` = official normalisation + forward; ``extract_picks`` = official post-processing: PhaseNet peaks above 0.5, EQTransformer's detection-and-picking rule, GPD's sliding-window triggers). Picks are matched to the manual arrivals per phase: precision, recall and F1 within a tolerance window and residual mean, standard deviation and MAE in seconds, with ``protocol=phasenet`` (Zhu & Beroza 2019: TP if |dt| < 0.1 s, residual statistics over |dt| < 0.5 s) or ``protocol=eqtransformer`` (Mousavi et al. 2020: TP if |dt| < 0.5 s). Models with a detection output also get trace-level detection precision, recall and F1.
-Current public coverage is synthetic-backed but already exposes the same task and report shape used across the earthquake smoke configs.
+Real data comes from ``seisbench_waveforms`` (SeisBench-format datasets and STEAD's own files); the smoke configs run on ``earthquake_waveforms_synthetic``. EQNet is scored here through its single-station picking heads (the paper's STEAD evaluation); its multi-station event detection has no benchmark task yet.
+
+``earthquake.forecasting`` takes velocity wavefields ``(n, 3, T_in, H, W)`` and future frames ``(n, 3, T_out, H, W)``. Models with ``rollout`` (WaveCastNet) forecast ``T_out`` frames by repeated calls on their own output, as the official validation does, in evaluation mode with a seeded generator for the decoder noise (param ``seed``). Metrics follow WaveCastNet's ``Validation_pixel.py`` (equations 17-18 of Lyu et al. 2025): ACC, RFNE and RMSE per (sequence, channel) over time and space, averaged over all pairs (``acc``, ``rfne``, ``rmse``) and per channel (``acc_x`` ... ``rfne_z``), plus MAE and MSE. It runs on ``earthquake_wavefield_synthetic`` only (synthetic point sources): the paper's SW4 simulations (tens of GB) have no reader yet. This task is not earthquake-occurrence forecasting (AEFA, pyCSEP are not implemented).
At a Glance
-----------
@@ -44,7 +46,7 @@ At a Glance
.. container:: catalog-stat-value
- :bdg-info:`Synthetic-backed`
+ :bdg-success:`Real-backed`
.. container:: catalog-stat-note
@@ -72,7 +74,7 @@ Benchmark Mapping
Mapped benchmark ecosystems
~~~~~~~~~~~~~~~~~~~~~~~~~~~
-:doc:`AEFA `, :doc:`pick-benchmark `, :doc:`pyCSEP `, :doc:`SeisBench `.
+:doc:`pick-benchmark `, :doc:`SeisBench `.
.. dropdown:: Supported Tasks
:class-container: catalog-dropdown
@@ -83,11 +85,30 @@ Mapped benchmark ecosystems
.. dropdown:: Key Metrics
:class-container: catalog-dropdown
+ - ``p_precision``
+ - ``p_recall``
+ - ``p_f1``
+ - ``p_residual_mean``
+ - ``p_residual_std``
- ``p_pick_mae``
+ - ``s_precision``
+ - ``s_recall``
+ - ``s_f1``
+ - ``s_residual_mean``
+ - ``s_residual_std``
- ``s_pick_mae``
- - ``precision``
- - ``recall``
- - ``f1``
+ - ``detection_precision``
+ - ``detection_recall``
+ - ``detection_f1``
+ - ``acc``
+ - ``rfne``
+ - ``rmse``
+ - ``acc_x``
+ - ``acc_y``
+ - ``acc_z``
+ - ``rfne_x``
+ - ``rfne_y``
+ - ``rfne_z``
- ``mae``
- ``mse``
@@ -108,4 +129,7 @@ Mapped benchmark ecosystems
.. dropdown:: Notes
:class-container: catalog-dropdown
- - Forecasting runs export a pyCSEP-style report artifact through the shared earthquake benchmark.
+ - Before this release the picking evaluator reported one hit rate (both regressed picks within 8 samples) as precision, recall and F1 alike; those numbers are not comparable with the new ones.
+ - EQTransformer's MAPE is not computed: the paper does not define its denominator.
+ - Smoke configs use randomly initialised models on synthetic data; pass ``pretrained`` in the model params and a real dataset for meaningful numbers.
+ - Before this release ``earthquake.forecasting`` reported only MAE / MSE of a single forward pass on moving Gaussian blobs (``earthquake_forecast_synthetic``); the ACC / RFNE numbers are new.
diff --git a/docs/source/benchmarks/flood_benchmark.rst b/docs/source/benchmarks/flood_benchmark.rst
index f21f03a3..3ca051df 100644
--- a/docs/source/benchmarks/flood_benchmark.rst
+++ b/docs/source/benchmarks/flood_benchmark.rst
@@ -6,9 +6,11 @@ Flood Benchmark
Overview
--------
-The flood benchmark family keeps streamflow and inundation scoring under one shared evaluator contract while preserving hazard-task-specific metrics.
+``flood.streamflow`` follows Kratzert et al. (HESS 2019) and NeuralHydrology: each model predicts the discharge of every day of the evaluation period from the preceding window of daily forcings and the basin's static attributes; predictions go back to mm/day with the training scaler, negative values are set to zero, and NeuralHydrology's metrics (NSE, MSE, RMSE, KGE, alpha-NSE, beta-KGE, beta-NSE, Pearson r, FHV, FMS, FLV, peak timing, missed peaks, peak MAPE) are computed per basin over the period. Reported values are the median over basins (``nse``, ``kge``, ...), the mean over basins (``nse_mean``, ...), ``n_basins`` and ``n_basins_nse_le_0``; per-basin values are in the report metadata. Probabilistic models are scored by their mixture mean.
-Current public coverage is synthetic-backed, but the same family already drives the streamflow and inundation smoke configs used across the flood models.
+Real streamflow data come from ``camels_us_streamflow`` and ``caravan_streamflow`` (local copies of the official releases); the smoke configs run the same contract on ``flood_streamflow_synthetic``.
+
+``flood.inundation`` scores water depth. Rasters: the model maps the split inputs to depth ``(batch, 1, H, W)`` or to several variables channels-last (UrbanFloodCast: depth and x / y unit discharge for 24 steps, with a NaN mask). Meshes: each test hydrograph of ``hydrographnet_white_river`` is rolled out with the model's ``rollout`` method as in the HydroGraphNet example, and depths are scored in metres (``rollout_rmse``: depth RMSE per step averaged over steps and hydrographs). Reported: ``pixel_mae`` / ``rmse`` (depth errors over all cells), ``iou`` / ``f1`` (prediction >= 0.5 m against depth > 0), and, averaged over events / hydrographs as the UrbanFloodCast test loop does, depth CSI at 1 / 10 / 50 cm (``csi_1cm``, ``csi_10cm``, ``csi_50cm``) and the relative L2 error, NSE and Pearson r over all predicted variables. Real mesh data: ``hydrographnet_white_river``; the UrbanFloodCast and FloodCastBench rasters have no reader yet.
At a Glance
-----------
@@ -44,7 +46,7 @@ At a Glance
.. container:: catalog-stat-value
- :bdg-info:`Synthetic-backed`
+ :bdg-success:`Real-backed`
.. container:: catalog-stat-note
@@ -72,7 +74,7 @@ Benchmark Mapping
Mapped benchmark ecosystems
~~~~~~~~~~~~~~~~~~~~~~~~~~~
-:doc:`Caravan `, :doc:`FloodCastBench `, :doc:`HydroBench `, :doc:`WaterBench `.
+:doc:`CAMELS-US `, :doc:`Caravan `, :doc:`HydroGraphNet White River `.
.. dropdown:: Supported Tasks
:class-container: catalog-dropdown
@@ -83,25 +85,41 @@ Mapped benchmark ecosystems
.. dropdown:: Key Metrics
:class-container: catalog-dropdown
- - ``mae``
- - ``rmse``
- ``nse``
- ``kge``
+ - ``alpha_nse``
+ - ``beta_nse``
+ - ``fhv``
+ - ``fms``
+ - ``flv``
+ - ``nse_mean``
+ - ``n_basins_nse_le_0``
- ``pixel_mae``
+ - ``rmse``
- ``iou``
- ``f1``
+ - ``csi_10cm``
+ - ``relative_l2``
+ - ``rollout_rmse``
.. dropdown:: Smoke Configs
:class-container: catalog-dropdown
- - ``hydrographnet_smoke.yaml``
- ``neuralhydrology_lstm_smoke.yaml``
- ``neuralhydrology_ealstm_smoke.yaml``
- ``google_flood_forecasting_smoke.yaml``
+ - ``hydrographnet_smoke.yaml``
- ``floodcast_smoke.yaml``
- ``urbanfloodcast_smoke.yaml``
.. dropdown:: Linked Models
:class-container: catalog-dropdown
- :doc:`HydroGraphNet `, :doc:`NeuralHydrology LSTM `, :doc:`EA-LSTM `, :doc:`Google Flood Forecasting `, :doc:`FloodCast `, :doc:`UrbanFloodCast `.
+ :doc:`NeuralHydrology LSTM `, :doc:`EA-LSTM `, :doc:`Google Flood Forecasting `, :doc:`HydroGraphNet `, :doc:`FloodCast `, :doc:`UrbanFloodCast `.
+
+.. dropdown:: Notes
+ :class-container: catalog-dropdown
+
+ - The streamflow evaluation (reader, normalisation, rescaling, clipping and per-basin metrics) is checked against NeuralHydrology's Tester on real CAMELS-US basins, and the metric code reproduces Table 2 of Kratzert et al. (2019) from the official stored simulations.
+ - hydrographnet (PhysicsNeMo's MeshGraphKAN) and urbanfloodcast (the UrbanFloodCast DNO) match their official code; the inundation metrics, the HydroGraphNet rollout and both input pipelines are checked against the official evaluation code (oracle tests). floodcast is still an experimental stand-in: the published flood model was never released and the paper does not give its widths.
+ - WaterBench, HydroBench and FloodCastBench have no PyHazards reader; the former adapters with these names generated random numbers and were removed.
diff --git a/docs/source/benchmarks/floodcastbench.rst b/docs/source/benchmarks/floodcastbench.rst
deleted file mode 100644
index 70297a31..00000000
--- a/docs/source/benchmarks/floodcastbench.rst
+++ /dev/null
@@ -1,103 +0,0 @@
-.. This file is generated by scripts/render_benchmark_docs.py. Do not edit by hand.
-
-FloodCastBench
-==============
-
-Overview
---------
-
-The current FloodCastBench alignment is implemented as a synthetic raster inundation adapter used by the public inundation smoke configs.
-
-It documents the benchmark/data protocol behind the FloodCast and UrbanFloodCast smoke paths.
-
-At a Glance
------------
-
-.. grid:: 1 2 4 4
- :gutter: 2
- :class-container: catalog-grid
-
- .. grid-item-card:: Kind
- :class-card: catalog-stat-card
-
- .. container:: catalog-stat-value
-
- Ecosystem
-
- .. container:: catalog-stat-note
-
- Family benchmark or external ecosystem view.
-
- .. grid-item-card:: Hazard Family
- :class-card: catalog-stat-card
-
- .. container:: catalog-stat-value
-
- Flood
-
- .. container:: catalog-stat-note
-
- Public hazard grouping used on the benchmark index page.
-
- .. grid-item-card:: Support Status
- :class-card: catalog-stat-card
-
- .. container:: catalog-stat-value
-
- :bdg-info:`Synthetic-backed`
-
- .. container:: catalog-stat-note
-
- Current maturity of the adapter or evaluator path.
-
- .. grid-item-card:: Linked Models
- :class-card: catalog-stat-card
-
- .. container:: catalog-stat-value
-
- 2
-
- .. container:: catalog-stat-note
-
- 2 models
-
-
-Benchmark Mapping
------------------
-
-**Shared benchmark key:** ``flood``
-
-**Registered class:** ``FloodBenchmark``
-
-Mapped benchmark family
-~~~~~~~~~~~~~~~~~~~~~~~
-
-:doc:`Flood Benchmark `
-
-Primary Source
-~~~~~~~~~~~~~~
-
-`FloodCastBench `_.
-
-.. dropdown:: Supported Tasks
- :class-container: catalog-dropdown
-
- - Inundation
-
-.. dropdown:: Key Metrics
- :class-container: catalog-dropdown
-
- - ``pixel_mae``
- - ``iou``
- - ``f1``
-
-.. dropdown:: Smoke Configs
- :class-container: catalog-dropdown
-
- - ``floodcast_smoke.yaml``
- - ``urbanfloodcast_smoke.yaml``
-
-.. dropdown:: Linked Models
- :class-container: catalog-dropdown
-
- :doc:`FloodCast `, :doc:`UrbanFloodCast `.
diff --git a/docs/source/benchmarks/hydrobench.rst b/docs/source/benchmarks/hydrographnet_white_river.rst
similarity index 58%
rename from docs/source/benchmarks/hydrobench.rst
rename to docs/source/benchmarks/hydrographnet_white_river.rst
index 7e4213b7..1fb15e89 100644
--- a/docs/source/benchmarks/hydrobench.rst
+++ b/docs/source/benchmarks/hydrographnet_white_river.rst
@@ -1,14 +1,14 @@
.. This file is generated by scripts/render_benchmark_docs.py. Do not edit by hand.
-HydroBench
-==========
+HydroGraphNet White River
+=========================
Overview
--------
-The current HydroBench alignment uses a metadata-backed streamflow adapter over the shared synthetic flood streamflow dataset.
+``hydrographnet_white_river`` reads a local copy of the release exactly like PhysicsNeMo's ``HydroGraphDataset``. The ``flood.inundation`` evaluator rolls every test hydrograph out for 30 steps (10 hours) with the model's ``rollout`` method, as the HydroGraphNet example's inference script does, and reports ``rollout_rmse`` (depth RMSE per step, averaged over steps and hydrographs, in metres; the per-step curve is in the report metadata), depth MAE / RMSE, CSI and NSE.
-It is currently exercised through the HydroGraphNet smoke benchmark path.
+The release has no official test split, and the paper's numbers could not be accessed, so no paper result is reproduced. The smoke config runs the contract on ``flood_mesh_synthetic``.
At a Glance
-----------
@@ -44,7 +44,7 @@ At a Glance
.. container:: catalog-stat-value
- :bdg-info:`Synthetic-backed`
+ :bdg-success:`Real-backed`
.. container:: catalog-stat-note
@@ -77,20 +77,21 @@ Mapped benchmark family
Primary Source
~~~~~~~~~~~~~~
-`HydroBench `_.
+`Interpretable physics-informed graph neural networks for flood forecasting `_ (`repo `__).
.. dropdown:: Supported Tasks
:class-container: catalog-dropdown
- - Streamflow
+ - Inundation
.. dropdown:: Key Metrics
:class-container: catalog-dropdown
- - ``mae``
+ - ``rollout_rmse``
+ - ``pixel_mae``
- ``rmse``
+ - ``csi_10cm``
- ``nse``
- - ``kge``
.. dropdown:: Smoke Configs
:class-container: catalog-dropdown
@@ -101,3 +102,8 @@ Primary Source
:class-container: catalog-dropdown
:doc:`HydroGraphNet `.
+
+.. dropdown:: Notes
+ :class-container: catalog-dropdown
+
+ - Dataset: Zenodo 14969507 (HydroGraphNet.zip, 8.3 GB, CC BY 4.0). PyHazards downloads nothing.
diff --git a/docs/source/benchmarks/ibtracs.rst b/docs/source/benchmarks/ibtracs.rst
index 0279ab5d..18a04191 100644
--- a/docs/source/benchmarks/ibtracs.rst
+++ b/docs/source/benchmarks/ibtracs.rst
@@ -6,9 +6,9 @@ IBTrACS
Overview
--------
-The current IBTrACS alignment uses a metadata-backed storm-history adapter over the shared synthetic tropical-cyclone dataset.
+``ibtracs_tracks`` reads IBTrACS v04 CSV or netCDF files with PyHazards' reader and builds forecasting windows (history of six-hourly observations, targets at the requested lead times) for any agency's winds and pressures.
-It is the benchmark ecosystem currently used by Hurricast and the experimental weather-model adapter smoke configs.
+``hurricast_ibtracs_era5`` builds Hurricast's inputs from IBTrACS (30 statistical features per 3-hour step) and ERA5 maps, with the IBTrACS wind 24 h ahead or position 24 h ahead as targets. The weather-model cyclone pipelines (forecast fields, tracker, scoring against IBTrACS) are pending. IBTrACS is also the reference of the weather-model cyclone pipelines in ``pyhazards.forecasts``: forecast tracks of FourCastNet, GraphCast and Pangu-Weather (tracked in their forecast fields) are matched to IBTrACS storms and scored by great-circle track error and intensity errors per lead time. No ported neural network consumes IBTrACS directly yet (Hurricast, which uses IBTrACS with ERA5, is pending).
At a Glance
-----------
@@ -44,7 +44,7 @@ At a Glance
.. container:: catalog-stat-value
- :bdg-info:`Synthetic-backed`
+ :bdg-success:`Real-backed`
.. container:: catalog-stat-note
@@ -55,11 +55,11 @@ At a Glance
.. container:: catalog-stat-value
- 4
+ 1
.. container:: catalog-stat-note
- 4 models
+ 1 model
Benchmark Mapping
@@ -83,22 +83,20 @@ Primary Source
:class-container: catalog-dropdown
- Track + Intensity
+ - Intensity
.. dropdown:: Key Metrics
:class-container: catalog-dropdown
- - ``track_error``
+ - ``track_error_km``
- ``intensity_mae``
+ - ``pressure_mae``
.. dropdown:: Smoke Configs
:class-container: catalog-dropdown
- - ``hurricast_smoke.yaml``
- - ``graphcast_tc_smoke.yaml``
- - ``pangu_tc_smoke.yaml``
- - ``fourcastnet_tc_smoke.yaml``
.. dropdown:: Linked Models
:class-container: catalog-dropdown
- :doc:`Hurricast `, :doc:`GraphCast TC Adapter `, :doc:`Pangu TC Adapter `, :doc:`FourCastNet TC Adapter `.
+ :doc:`Hurricast `.
diff --git a/docs/source/benchmarks/pick_benchmark.rst b/docs/source/benchmarks/pick_benchmark.rst
index bf9da111..00cd5562 100644
--- a/docs/source/benchmarks/pick_benchmark.rst
+++ b/docs/source/benchmarks/pick_benchmark.rst
@@ -6,9 +6,9 @@ pick-benchmark
Overview
--------
-The current pick-benchmark path reuses the synthetic waveform picking bundle and tags it as a pick-benchmark-style benchmark adapter.
+pick-benchmark compares deep-learning pickers on eight SeisBench datasets with three tasks: event detection (ROC-AUC), phase identification (Matthews correlation) and onset-time regression (residual distributions), on windows cut around the picks. PyHazards scores pickers with the pick metrics of the PhaseNet and EQTransformer papers instead; pick-benchmark's tasks, window sampling and MCC / AUC metrics are not reproduced.
-It supports the earthquake picking smoke path for the transformer and CNN picking baselines.
+Its numbers for PhaseNet were obtained with SeisBench's pre-0.3 PhaseNet (23,305 parameters), not the original architecture that PyHazards ports.
At a Glance
-----------
@@ -44,7 +44,7 @@ At a Glance
.. container:: catalog-stat-value
- :bdg-info:`Synthetic-backed`
+ :bdg-warning:`Experimental`
.. container:: catalog-stat-note
@@ -55,11 +55,11 @@ At a Glance
.. container:: catalog-stat-value
- 2
+ 3
.. container:: catalog-stat-note
- 2 models
+ 3 models
Benchmark Mapping
@@ -77,7 +77,7 @@ Mapped benchmark family
Primary Source
~~~~~~~~~~~~~~
-`pick-benchmark `_.
+`Which Picker Fits My Data? A Quantitative Evaluation of Deep Learning Based Seismic Pickers (Münchmeyer et al., J. Geophys. Res. Solid Earth 127, e2021JB023499, 2022) `_ (`repo `__).
.. dropdown:: Supported Tasks
:class-container: catalog-dropdown
@@ -87,11 +87,8 @@ Primary Source
.. dropdown:: Key Metrics
:class-container: catalog-dropdown
- - ``p_pick_mae``
- - ``s_pick_mae``
- - ``precision``
- - ``recall``
- - ``f1``
+ - ``p_f1``
+ - ``s_f1``
.. dropdown:: Smoke Configs
:class-container: catalog-dropdown
@@ -102,4 +99,9 @@ Primary Source
.. dropdown:: Linked Models
:class-container: catalog-dropdown
- :doc:`EQTransformer `, :doc:`GPD `.
+ :doc:`PhaseNet `, :doc:`EQTransformer `, :doc:`GPD `.
+
+.. dropdown:: Notes
+ :class-container: catalog-dropdown
+
+ - pick-benchmark is GPL-3.0; it is not vendored or imported.
diff --git a/docs/source/benchmarks/seisbench.rst b/docs/source/benchmarks/seisbench.rst
index 9fc1ba8e..53b65bba 100644
--- a/docs/source/benchmarks/seisbench.rst
+++ b/docs/source/benchmarks/seisbench.rst
@@ -6,9 +6,9 @@ SeisBench
Overview
--------
-The current SeisBench path uses a synthetic waveform adapter that preserves the same picking task shape expected by the shared earthquake benchmark.
+SeisBench (Woollam et al. 2022) distributes seismic machine-learning benchmark datasets in a common format (metadata CSV + waveform HDF5). PyHazards reads that format without importing SeisBench, whose GPL-3.0 code is used only as a test oracle (the reader, and the PhaseNet, EQTransformer and GPD ports, are compared with SeisBench in ``tests/oracle``).
-It exists today as a benchmark-compatible smoke path rather than a full external SeisBench ingestion pipeline.
+The datasets are not redistributed; download them with SeisBench or from their providers.
At a Glance
-----------
@@ -44,7 +44,7 @@ At a Glance
.. container:: catalog-stat-value
- :bdg-info:`Synthetic-backed`
+ :bdg-success:`Real-backed`
.. container:: catalog-stat-note
@@ -55,11 +55,11 @@ At a Glance
.. container:: catalog-stat-value
- 2
+ 3
.. container:: catalog-stat-note
- 2 models
+ 3 models
Benchmark Mapping
@@ -77,7 +77,7 @@ Mapped benchmark family
Primary Source
~~~~~~~~~~~~~~
-`SeisBench - A Toolbox for Machine Learning in Seismology `_ (`repo `__).
+`SeisBench - A Toolbox for Machine Learning in Seismology (Woollam et al., Seismological Research Letters 93(3):1695-1709, 2022) `_ (`repo `__).
.. dropdown:: Supported Tasks
:class-container: catalog-dropdown
@@ -87,19 +87,27 @@ Primary Source
.. dropdown:: Key Metrics
:class-container: catalog-dropdown
+ - ``p_precision``
+ - ``p_recall``
+ - ``p_f1``
- ``p_pick_mae``
+ - ``s_precision``
+ - ``s_recall``
+ - ``s_f1``
- ``s_pick_mae``
- - ``precision``
- - ``recall``
- - ``f1``
.. dropdown:: Smoke Configs
:class-container: catalog-dropdown
- ``phasenet_smoke.yaml``
- - ``eqnet_smoke.yaml``
.. dropdown:: Linked Models
:class-container: catalog-dropdown
- :doc:`PhaseNet `, :doc:`EQNet `.
+ :doc:`PhaseNet `, :doc:`EQTransformer `, :doc:`GPD `.
+
+.. dropdown:: Notes
+ :class-container: catalog-dropdown
+
+ - SeisBench is GPL-3.0; PyHazards (MIT) neither vendors nor imports it.
+ - The smoke config runs on synthetic windows; point ``seisbench_waveforms`` at a downloaded dataset for real numbers.
diff --git a/docs/source/benchmarks/pycsep.rst b/docs/source/benchmarks/ships_xu2021.rst
similarity index 59%
rename from docs/source/benchmarks/pycsep.rst
rename to docs/source/benchmarks/ships_xu2021.rst
index 5150e19e..b3c9df8f 100644
--- a/docs/source/benchmarks/pycsep.rst
+++ b/docs/source/benchmarks/ships_xu2021.rst
@@ -1,14 +1,12 @@
.. This file is generated by scripts/render_benchmark_docs.py. Do not edit by hand.
-pyCSEP
-======
+SHIPS Predictors (Xu et al. 2021)
+=================================
Overview
--------
-The current pyCSEP alignment is implemented as a report export contract inside the shared earthquake benchmark rather than as a standalone benchmark family.
-
-It documents the forecasting artifact shape used by the WaveCastNet smoke config.
+``ships_xu2021`` reads the authors' table (Zenodo 4784610, CC BY 4.0): 121 SHIPS predictors per storm and forecast time and the 24-hour change of the maximum wind in knots. Test rows are a year's Atlantic operational cases; the paper averages the folds 2010-2018.
At a Glance
-----------
@@ -33,7 +31,7 @@ At a Glance
.. container:: catalog-stat-value
- Earthquake
+ Tropical Cyclone
.. container:: catalog-stat-note
@@ -44,7 +42,7 @@ At a Glance
.. container:: catalog-stat-value
- :bdg-info:`Synthetic-backed`
+ :bdg-success:`Real-backed`
.. container:: catalog-stat-note
@@ -65,42 +63,43 @@ At a Glance
Benchmark Mapping
-----------------
-**Shared benchmark key:** ``earthquake``
+**Shared benchmark key:** ``tc``
-**Registered class:** ``EarthquakeBenchmark``
+**Registered class:** ``TropicalCycloneBenchmark``
Mapped benchmark family
~~~~~~~~~~~~~~~~~~~~~~~
-:doc:`Earthquake Benchmark `
+:doc:`Tropical Cyclone Benchmark `
Primary Source
~~~~~~~~~~~~~~
-`pyCSEP `_.
+`Deep Learning Experiments for Tropical Cyclone Intensity Forecasts `_ (`repo `__).
.. dropdown:: Supported Tasks
:class-container: catalog-dropdown
- - Wavefield Forecasting
+ - Intensity
.. dropdown:: Key Metrics
:class-container: catalog-dropdown
- - ``mae``
- - ``mse``
+ - ``intensity_mae``
+ - ``intensity_rmse``
+ - ``intensity_mae_group_mean``
.. dropdown:: Smoke Configs
:class-container: catalog-dropdown
- - ``wavecastnet_benchmark_smoke.yaml``
+ - ``tropicalcyclone_mlp_smoke.yaml``
.. dropdown:: Linked Models
:class-container: catalog-dropdown
- :doc:`WaveCastNet `.
+ :doc:`Tropical Cyclone MLP `.
.. dropdown:: Notes
:class-container: catalog-dropdown
- - Current repo support is report-export alignment, not a separate pyCSEP benchmark runner.
+ - The smoke config uses ships_xu2021_synthetic (random data in the same layout).
diff --git a/docs/source/benchmarks/tcbench_alpha.rst b/docs/source/benchmarks/tcbench_alpha.rst
index 4943e4f7..99529fba 100644
--- a/docs/source/benchmarks/tcbench_alpha.rst
+++ b/docs/source/benchmarks/tcbench_alpha.rst
@@ -6,9 +6,11 @@ TCBench Alpha
Overview
--------
-The current TCBench Alpha alignment uses a metadata-backed storm-history adapter over the shared synthetic tropical-cyclone dataset.
+``pyhazards.forecasts`` reads TCBench's released tracks and raw forecast fields from the Hugging Face dataset (pinned revision), re-implements its TempestExtremes tracking and HuracanPy matching, and scores tracks with ``score_forecast_tracks(..., protocol="tcbench")``, which reproduces TCBench's ``evaluate_tracks.py`` exactly (including its float16 reading of IBTrACS positions).
-It currently drives the tropicalcyclone_MLP, SAF-Net, and TCIF-fusion smoke configs.
+Verified: on TCBench's raw Pangu-Weather fields the tracker writes TCBench's released track files byte for byte (and the official TempestExtremes binaries agree), every row of the released Pangu-Weather and FourCastNet v2 matched tracks scores exactly as TCBench's own metric code, and the DPE / AE values printed in TCBench's notebook are reproduced.
+
+Not implemented: CRPS, along/cross-track errors, rapid-intensification scores and TCBench's post-processing models. TCBench's "FourCastNet v2" is SFNO-small, not the FourCastNet of Pathak et al.
At a Glance
-----------
@@ -44,7 +46,7 @@ At a Glance
.. container:: catalog-stat-value
- :bdg-info:`Synthetic-backed`
+ :bdg-success:`Real-backed`
.. container:: catalog-stat-note
@@ -55,11 +57,11 @@ At a Glance
.. container:: catalog-stat-value
- 3
+ 0
.. container:: catalog-stat-note
- 3 models
+ 0 models
Benchmark Mapping
@@ -77,7 +79,7 @@ Mapped benchmark family
Primary Source
~~~~~~~~~~~~~~
-`TCBench Alpha `_.
+`TCBench: A Benchmark for Tropical Cyclone Track and Intensity Forecasting at the Global Scale `_ (`repo `__).
.. dropdown:: Supported Tasks
:class-container: catalog-dropdown
@@ -87,17 +89,21 @@ Primary Source
.. dropdown:: Key Metrics
:class-container: catalog-dropdown
- - ``track_error``
+ - ``track_error_km``
- ``intensity_mae``
+ - ``pressure_mae``
.. dropdown:: Smoke Configs
:class-container: catalog-dropdown
- - ``tropicalcyclone_mlp_smoke.yaml``
- - ``saf_net_smoke.yaml``
- - ``tcif_fusion_smoke.yaml``
.. dropdown:: Linked Models
:class-container: catalog-dropdown
- :doc:`Tropical Cyclone MLP `, :doc:`SAF-Net `, :doc:`TCIF-fusion `.
+ None.
+
+.. dropdown:: Notes
+ :class-container: catalog-dropdown
+
+ - TCBench code and data are MIT-licensed; the Pangu-Weather forecasts derive from CC BY-NC-SA 4.0 weights (non-commercial).
+ - Weather models are pipelines, not PyHazards models, so no model is linked here; see the Foundation Weather Models page.
diff --git a/docs/source/benchmarks/tropical_cyclone_benchmark.rst b/docs/source/benchmarks/tropical_cyclone_benchmark.rst
index a9aa8309..3a55fc9e 100644
--- a/docs/source/benchmarks/tropical_cyclone_benchmark.rst
+++ b/docs/source/benchmarks/tropical_cyclone_benchmark.rst
@@ -6,9 +6,13 @@ Tropical Cyclone Benchmark
Overview
--------
-The tropical cyclone benchmark family is the single storm evaluator used by the hurricane-specific and all-basin tropical-cyclone smoke configs.
+``tc.track_intensity`` scores forecasts of position, maximum wind and central pressure at the dataset's lead times: great-circle track error (km; ``track_distance: tcn_equirectangular`` gives TropiCycloneNet's 111 km-per-degree formula), wind MAE in the dataset's unit (knots for IBTrACS, m/s for TCND) and pressure MAE (hPa), each per lead time and averaged. Models with several samples per storm are scored on the sample mean and with the best-of-k errors of the TropiCycloneNet paper (per lead time and per variable, the smallest error among the samples).
-Current coverage is synthetic-backed, but the same evaluator contract already scores core storm baselines and experimental weather-model adapters.
+``tc.intensity`` scores one intensity (or 24-hour intensity change) per storm and time: MAE and RMSE in the dataset's unit, per test year when the split names years, and their unweighted mean, the way Xu et al. (2021) and SAF-Net report results.
+
+Real data: ``ibtracs_tracks`` (IBTrACS best tracks), ``tropicyclonenet_dataset`` (TCND), ``ships_xu2021`` (SHIPS predictors) and ``hurricast_ibtracs_era5`` (IBTrACS statistics and ERA5 maps; Hurricast's 24-hour intensity with ``tc.intensity`` and track with ``tc.track_intensity`` at lead 24 h). The smoke configs run on synthetic data with the same layouts. Real data: ``ibtracs_tracks`` (IBTrACS best tracks), ``tropicyclonenet_dataset`` (TCND) and ``ships_xu2021`` (SHIPS predictors). The smoke configs run on synthetic data with the same layouts.
+
+Global weather models (FourCastNet, GraphCast, Pangu-Weather) are not models of this benchmark: their cyclone tracks come from a tracker run on their forecast fields. ``pyhazards.forecasts`` builds those tracks (TCBench's TempestExtremes rules or the papers' ECMWF-style tracker) and ``pyhazards.forecasts.score_forecast_tracks`` scores them against IBTrACS with this evaluator's ``track_intensity_metrics`` (same metric names, ``tc`` / ``tc.track_intensity`` results).
At a Glance
-----------
@@ -44,7 +48,7 @@ At a Glance
.. container:: catalog-stat-value
- :bdg-info:`Synthetic-backed`
+ :bdg-success:`Real-backed`
.. container:: catalog-stat-note
@@ -55,11 +59,11 @@ At a Glance
.. container:: catalog-stat-value
- 8
+ 5
.. container:: catalog-stat-note
- 8 models
+ 5 models
Benchmark Mapping
@@ -72,37 +76,45 @@ Benchmark Mapping
Mapped benchmark ecosystems
~~~~~~~~~~~~~~~~~~~~~~~~~~~
-:doc:`IBTrACS `, :doc:`TCBench Alpha `, :doc:`TropiCycloneNet-Dataset `.
+:doc:`IBTrACS `, :doc:`SHIPS Predictors (Xu et al. 2021) `, :doc:`TCBench Alpha `, :doc:`TropiCycloneNet Dataset `.
.. dropdown:: Supported Tasks
:class-container: catalog-dropdown
- Track + Intensity
+ - Intensity
.. dropdown:: Key Metrics
:class-container: catalog-dropdown
- - ``track_error``
+ - ``track_error_km``
- ``intensity_mae``
+ - ``pressure_mae``
+ - ``best_of_k_track_error_km``
+ - ``best_of_k_intensity_mae``
+ - ``best_of_k_pressure_mae``
+ - ``intensity_rmse``
+ - ``intensity_mae_group_mean``
.. dropdown:: Smoke Configs
:class-container: catalog-dropdown
- - ``hurricast_smoke.yaml``
- ``tropicalcyclone_mlp_smoke.yaml``
- - ``tropicyclonenet_smoke.yaml``
- ``saf_net_smoke.yaml``
+ - ``tropicyclonenet_smoke.yaml``
+ - ``hurricast_smoke.yaml``
- ``tcif_fusion_smoke.yaml``
- - ``graphcast_tc_smoke.yaml``
- - ``pangu_tc_smoke.yaml``
- - ``fourcastnet_tc_smoke.yaml``
.. dropdown:: Linked Models
:class-container: catalog-dropdown
- :doc:`Hurricast `, :doc:`Tropical Cyclone MLP `, :doc:`TropiCycloneNet `, :doc:`SAF-Net `, :doc:`TCIF-fusion `, :doc:`GraphCast TC Adapter `, :doc:`Pangu TC Adapter `, :doc:`FourCastNet TC Adapter `.
+ :doc:`Tropical Cyclone MLP `, :doc:`SAF-Net `, :doc:`TropiCycloneNet `, :doc:`Hurricast `, :doc:`TCIF-fusion `.
.. dropdown:: Notes
:class-container: catalog-dropdown
- - IBTrACS, TCBench Alpha, and TropiCycloneNet-Dataset are surfaced as the public storm benchmark ecosystems.
+ - Smoke configs use synthetic datasets (tc_tracks_synthetic, ships_xu2021_synthetic, safnet_cma_era_interim_synthetic, tropicyclonenet_dataset_synthetic, hurricast_synthetic, tcif_fusion_synthetic); their scores mean nothing. Benchmark results carry synthetic=True for them. The hurricast smoke config runs the network head (the XGBoost stage needs fitting) and the tcif_fusion one a reduced copy of the network.
+ - The GraphCast / Pangu-Weather / FourCastNet adapters are experimental generic stand-ins, not the published models.
+ - Smoke configs use synthetic datasets (tc_tracks_synthetic, ships_xu2021_synthetic, safnet_cma_era_interim_synthetic, tropicyclonenet_dataset_synthetic); their scores mean nothing. Benchmark results carry synthetic=True for them.
+ - hurricast and tcif_fusion are experimental generic stand-ins, not the published models.
+ - The former graphcast_tc, pangu_tc and fourcastnet_tc entries (small networks without forecast fields, weights or tracker) were removed; see the Foundation Weather Models page (pyhazards.forecasts).
diff --git a/docs/source/benchmarks/tropicyclonenet_dataset.rst b/docs/source/benchmarks/tropicyclonenet_dataset.rst
index 50b9f92b..a0da7f6c 100644
--- a/docs/source/benchmarks/tropicyclonenet_dataset.rst
+++ b/docs/source/benchmarks/tropicyclonenet_dataset.rst
@@ -1,14 +1,14 @@
.. This file is generated by scripts/render_benchmark_docs.py. Do not edit by hand.
-TropiCycloneNet-Dataset
+TropiCycloneNet Dataset
=======================
Overview
--------
-The current TropiCycloneNet-Dataset alignment uses a metadata-backed storm-history adapter over the shared synthetic tropical-cyclone dataset.
+``tropicyclonenet_dataset`` reads the TCND files (Zenodo, CC BY 4.0) into TropiCycloneNet's input layout; targets are position, central pressure (hPa) and maximum wind (m/s) at 6, 12, 18 and 24 h.
-It exists today to support the public TropiCycloneNet smoke benchmark path.
+The paper reports best-of-6 errors (per lead time and variable, the smallest error among six sampled forecasts); the evaluator reports those and the errors of the sample mean.
At a Glance
-----------
@@ -44,7 +44,7 @@ At a Glance
.. container:: catalog-stat-value
- :bdg-info:`Synthetic-backed`
+ :bdg-success:`Real-backed`
.. container:: catalog-stat-note
@@ -77,7 +77,7 @@ Mapped benchmark family
Primary Source
~~~~~~~~~~~~~~
-`TropiCycloneNet-Dataset `_.
+`Benchmark dataset and deep learning method for global tropical cyclone forecasting `_ (`repo `__).
.. dropdown:: Supported Tasks
:class-container: catalog-dropdown
@@ -87,8 +87,12 @@ Primary Source
.. dropdown:: Key Metrics
:class-container: catalog-dropdown
- - ``track_error``
+ - ``track_error_km``
- ``intensity_mae``
+ - ``pressure_mae``
+ - ``best_of_k_track_error_km``
+ - ``best_of_k_intensity_mae``
+ - ``best_of_k_pressure_mae``
.. dropdown:: Smoke Configs
:class-container: catalog-dropdown
@@ -99,3 +103,8 @@ Primary Source
:class-container: catalog-dropdown
:doc:`TropiCycloneNet `.
+
+.. dropdown:: Notes
+ :class-container: catalog-dropdown
+
+ - The smoke config uses tropicyclonenet_dataset_synthetic (random data in the TCND layout).
diff --git a/docs/source/benchmarks/wildfire_benchmark.rst b/docs/source/benchmarks/wildfire_benchmark.rst
index 24016f64..9e7c68c7 100644
--- a/docs/source/benchmarks/wildfire_benchmark.rst
+++ b/docs/source/benchmarks/wildfire_benchmark.rst
@@ -6,7 +6,7 @@ Wildfire Benchmark
Overview
--------
-The wildfire benchmark family is the single scoring layer for tabular danger tasks, weekly forecasting tasks, and raster spread tasks.
+The wildfire benchmark family is the single scoring layer for tabular, daily-sequence and gridded (per-cell) danger tasks, weekly forecasting tasks, and raster spread tasks.
Current coverage is synthetic-backed, but it already exposes a single hazard-level evaluator contract across wildfire danger and wildfire spread smoke configs.
@@ -55,11 +55,11 @@ At a Glance
.. container:: catalog-stat-value
- 8
+ 29
.. container:: catalog-stat-note
- 8 models
+ 29 models
Benchmark Mapping
@@ -89,6 +89,7 @@ Mapped benchmark ecosystems
- ``pr_auc``
- ``mae``
- ``rmse``
+ - ``average_precision``
- ``iou``
- ``f1``
- ``burned_area_mae``
@@ -101,16 +102,21 @@ Mapped benchmark ecosystems
- ``asufm_smoke.yaml``
- ``wildfire_spread_smoke.yaml``
- ``wildfirespreadts_smoke.yaml``
- - ``forefire_smoke.yaml``
- - ``wrf_sfire_smoke.yaml``
- ``firecastnet_smoke.yaml``
+ - ``track_o_convlstm_smoke.yaml``
.. dropdown:: Linked Models
:class-container: catalog-dropdown
- :doc:`DNN-LSTM-AutoEncoder `, :doc:`Wildfire Forecasting `, :doc:`ASUFM `, :doc:`CNN-ASPP `, :doc:`WildfireSpreadTS `, :doc:`ForeFire Adapter `, :doc:`WRF-SFIRE Adapter `, :doc:`FireCastNet `.
+ :doc:`DNN-LSTM-AutoEncoder `, :doc:`Wildfire Forecasting `, :doc:`Random Forest `, :doc:`XGBoost `, :doc:`Deep Ensemble `, :doc:`ASUFM `, :doc:`CNN-ASPP `, :doc:`WildfireSpreadTS Baselines `, :doc:`Logistic Regression (pixel) `, :doc:`ResNet-18 U-Net `, :doc:`ConvLSTM `, :doc:`ConvGRU `, :doc:`U-TAE `, :doc:`SegFormer `, :doc:`Swin-Unet `, :doc:`SwinLSTM `, :doc:`TrajGRU `, :doc:`Attention U-Net `, :doc:`TS-SatFire Baselines `, :doc:`U-Net-3D (MONAI) `, :doc:`UNETR `, :doc:`SwinUNETR `, :doc:`TCN `, :doc:`Earthformer `, :doc:`U-Net `, :doc:`DeepLabV3 `, :doc:`Earthfarseer `, :doc:`Rainformer `, :doc:`FireCastNet `.
.. dropdown:: Notes
:class-container: catalog-dropdown
- WildfireSpreadTS is the public Appendix-A benchmark ecosystem surfaced on this page.
+ - Track-O (from PR #33 by runyangxu) scores ``wildfire.danger`` as daily fire occurrence on a latitude-longitude grid: whether a cell has a NASA FIRMS detection on a day, from that day's weather (MERRA-2 surface variables or any NetCDF files on a regular grid) and LANDFIRE fuels. Build the cache with ``scripts/build_wildfire_track_o_cache.py``, load it with the ``wildfire_track_o_raster`` / ``_temporal`` / ``_tabular`` datasets, and train and score registry models with ``scripts/run_wildfire_track_o_baselines.py``. Raster and temporal layouts are scored per cell (one logit per cell; accuracy and macro F1 at probability 0.5, ROC AUC, PR AUC). The smoke config ``track_o_convlstm_smoke.yaml`` runs on the synthetic ``micro`` cache; no real-data Track-O results are published with PyHazards.
+ - The Kondylatos et al. (2022) tree baselines ``random_forest`` and ``xgboost`` read the same daily danger tensors as ``wildfire_forecasting`` but must be fitted (``model.fit``) before they are scored, so they have no smoke config; pass the fitted model to ``BenchmarkRunner.run(model=...)``. ``deep_ensemble`` wraps any of the linked models (the ten-LSTM danger ensemble of Kondylatos et al. 2025, or U-TAE members for spread).
+ - FireCastNet forecasts seasonal burned-area presence on the SeasFire datacube (AUPRC in its paper); without a SeasFire adapter its smoke config runs on synthetic rasters and is scored with the spread-mask metrics.
+ - Earthfarseer and Rainformer are frame-sequence forecasters (Sim2Real-Fire baselines); their task="segmentation" adaptation maps the first predicted frame to fire-mask logits, which is a PyHazards convention, not a published Sim2Real-Fire configuration.
+ - Prithvi-EO-2.0 BurnScars and Prithvi-EO-2.0-TL segment burn scars after a fire (post-fire burned-area mapping). They are wildfire models but are not linked here, because this family scores danger and spread prediction, not post-fire mapping.
+ - ForeFire and WRF-SFIRE are physics simulators, not trainable models, so they are not linked models. ``pyhazards.simulators.ForeFireSimulator`` runs the official ForeFire (installed separately) on spread rasters, and the ``wrf_sfire_spread`` dataset turns WRF-SFIRE ``wrfout`` files into spread samples for this family's ``wildfire.spread`` task.
diff --git a/docs/source/benchmarks/wildfirespreadts_ecosystem.rst b/docs/source/benchmarks/wildfirespreadts_ecosystem.rst
index 73f88b7c..e586aa84 100644
--- a/docs/source/benchmarks/wildfirespreadts_ecosystem.rst
+++ b/docs/source/benchmarks/wildfirespreadts_ecosystem.rst
@@ -55,11 +55,11 @@ At a Glance
.. container:: catalog-stat-value
- 5
+ 8
.. container:: catalog-stat-note
- 5 models
+ 8 models
Benchmark Mapping
@@ -87,6 +87,7 @@ Primary Source
.. dropdown:: Key Metrics
:class-container: catalog-dropdown
+ - ``average_precision``
- ``iou``
- ``f1``
- ``burned_area_mae``
@@ -96,11 +97,8 @@ Primary Source
- ``wildfire_spread_smoke.yaml``
- ``wildfirespreadts_smoke.yaml``
- - ``forefire_smoke.yaml``
- - ``wrf_sfire_smoke.yaml``
- - ``firecastnet_smoke.yaml``
.. dropdown:: Linked Models
:class-container: catalog-dropdown
- :doc:`CNN-ASPP `, :doc:`WildfireSpreadTS `, :doc:`ForeFire Adapter `, :doc:`WRF-SFIRE Adapter `, :doc:`FireCastNet `.
+ :doc:`CNN-ASPP `, :doc:`WildfireSpreadTS Baselines `, :doc:`Logistic Regression (pixel) `, :doc:`ResNet-18 U-Net `, :doc:`ConvLSTM `, :doc:`U-TAE `, :doc:`SegFormer `, :doc:`Swin-Unet `.
diff --git a/docs/source/datasets/aefa_forecast.rst b/docs/source/datasets/aefa_forecast.rst
deleted file mode 100644
index e116a389..00000000
--- a/docs/source/datasets/aefa_forecast.rst
+++ /dev/null
@@ -1,113 +0,0 @@
-.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
-
-AEFA Forecast
-=============
-
-Synthetic-backed dense-grid forecasting adapter aligned to the AEFA earthquake forecasting workflow.
-
-Overview
---------
-
-AEFA Forecast is the public forecasting adapter used by the earthquake benchmark when exercising dense-grid wavefield forecasting models.
-
-The current implementation is synthetic-backed, but it preserves the task shape, tensor layout, and reporting surface used by the shared earthquake evaluator.
-
-At a Glance
------------
-
-.. list-table::
- :widths: 28 72
- :stub-columns: 1
-
- * - Provider
- - AEFA forecasting ecosystem surfaced through a PyHazards adapter
- * - Hazard Family
- - Earthquake
- * - Source Role
- - Forecast Benchmark
- * - Coverage
- - Benchmark-aligned earthquake forecasting samples
- * - Geometry
- - Dense-grid wavefield tensors
- * - Spatial Resolution
- - Benchmark-defined dense sensor grid
- * - Temporal Resolution
- - Short history and forecast windows
- * - Update Cadence
- - Generated locally for smoke and benchmark-alignment runs
- * - Period of Record
- - Synthetic-backed benchmark adapter
- * - Formats
- - PyTorch tensors via the dataset registry
- * - Registry Entry
- - ``aefa_forecast``
-
-Data Characteristics
---------------------
-
-- Multichannel dense-grid history tensors paired with future dense-grid targets.
-- Registry-backed benchmark adapter rather than a raw external archive loader.
-- Intended for forecasting-path validation and report generation.
-
-Typical Use Cases
-~~~~~~~~~~~~~~~~~
-
-- Smoke tests for WaveCastNet-style earthquake forecasting.
-- Shared forecasting benchmark runs under the earthquake evaluator.
-- Validation of report exports aligned to the forecasting path.
-
-Access
-------
-
-Use the links below to access the upstream source or its public documentation.
-
-- `AEFA repository `_
-
-PyHazards Usage
----------------
-
-Use this adapter when you want the public earthquake forecasting benchmark surface rather than the private synthetic dataset name.
-
-Registry Workflow
-~~~~~~~~~~~~~~~~~
-
-Primary dataset name: ``aefa_forecast``
-
-.. code-block:: python
-
- from pyhazards.datasets import load_dataset
-
- data = load_dataset(
- "aefa_forecast",
- micro=True,
- temporal_in=5,
- temporal_out=4,
- ).load()
-
- train = data.get_split("train")
- print(train.inputs.shape, train.targets.shape)
-
-- micro=True keeps the synthetic-backed forecasting path lightweight for validation.
-
-Related Coverage
-~~~~~~~~~~~~~~~~
-
-**Benchmarks:** :doc:`Earthquake Benchmark `, :doc:`AEFA `
-
-**Representative Models:** :doc:`WaveCastNet `
-
-Inspection Workflow
--------------------
-
-This dataset is currently surfaced as a registry-backed benchmark adapter,
-so there is no standalone inspection CLI documented for it.
-
-Notes
------
-
-- This is a benchmark adapter, not a full external AEFA ingestion pipeline.
-
-Reference
----------
-
-- `AEFA `_.
diff --git a/docs/source/datasets/camels_us_streamflow.rst b/docs/source/datasets/camels_us_streamflow.rst
new file mode 100644
index 00000000..8f964070
--- /dev/null
+++ b/docs/source/datasets/camels_us_streamflow.rst
@@ -0,0 +1,111 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+CAMELS-US
+=========
+
+Reader for a local copy of CAMELS-US (671 US catchments, daily forcings, USGS streamflow and catchment attributes) in the setup of Kratzert et al. (2019), as NeuralHydrology reads it.
+
+Overview
+--------
+
+CAMELS-US provides basin-averaged daily meteorological forcings (Daymet, Maurer, NLDAS), USGS streamflow and catchment attributes (Newman et al., HESS 2015; Addor et al., HESS 2017; CC BY 4.0, Zenodo 15529996). Kratzert et al. (HESS 2019) used 531 of its basins with the extended Maurer forcings (daily minimum and maximum temperature added; HydroShare, doi 10.4211/hs.17c896843cf940339c3c3496d0c1c077) and 27 attributes, the standard benchmark for the NeuralHydrology models.
+
+``camels_us_streamflow`` reads that layout like NeuralHydrology's ``CamelsUS`` dataset (discharge from cubic feet per second to mm/day with the area of the forcing-file header, negative values to NaN) and builds streamflow samples. Defaults are the paper's: forcings ``maurer_extended``, inputs prcp, srad, tmax, tmin, vp, the 27 attributes, 270-day windows, train 1999-10-01 to 2008-09-30 and test 1989-10-01 to 1999-09-30 (validation 1980-10-01 to 1989-09-30, from NeuralHydrology's example configuration). PyHazards downloads nothing.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - NCAR / USGS CAMELS data set (Newman et al. 2015; Addor et al. 2017), read by PyHazards from a local copy
+ * - Hazard Family
+ - Flood
+ * - Source Role
+ - Streamflow Benchmark
+ * - Coverage
+ - 671 catchments in the contiguous United States (531 in the Kratzert et al. 2019 benchmark)
+ * - Geometry
+ - Daily basin time series with static attributes
+ * - Spatial Resolution
+ - Catchment averages (one series per gauge)
+ * - Temporal Resolution
+ - Daily
+ * - Update Cadence
+ - Static research dataset (extended Maurer forcings released separately in 2019)
+ * - Period of Record
+ - 1980-2014
+ * - Formats
+ - Whitespace-separated forcing and streamflow text files; ';'-separated attribute tables
+ * - Registry Entry
+ - ``camels_us_streamflow``
+
+Data Characteristics
+--------------------
+
+- Layout: ``basin_mean_forcing//[/]_*_forcing_leap.txt``, ``usgs_streamflow/[/]_streamflow_qc.txt``, ``camels_attributes_v2.0/camels_*.txt``.
+- Target ``QObs(mm/d)``; with several forcing products the input columns get a ``_`` suffix.
+- Normalisation and sample selection as for Caravan (training statistics; training samples with missing inputs or targets dropped; every evaluation day kept).
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Reproducing the Kratzert et al. (2019) LSTM and EA-LSTM benchmark.
+- Per-basin NSE / KGE / FHV / FMS / FLV evaluation with the flood benchmark (``flood.streamflow``).
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+- `CAMELS (NCAR RAL) `_
+- `CAMELS time series and attributes (Zenodo) `_
+- `Extended Maurer forcings (HydroShare) `_
+- `NeuralHydrology data prerequisites `_
+
+PyHazards Usage
+---------------
+
+Point ``data_dir`` at the CAMELS-US root (with ``basin_mean_forcing/maurer_extended`` added) and pass the basin list.
+
+Score models with ``BenchmarkRunner`` on the ``flood`` benchmark (task ``flood.streamflow``).
+
+Registry Workflow
+~~~~~~~~~~~~~~~~~
+
+Primary dataset name: ``camels_us_streamflow``
+
+.. code-block:: python
+
+ from pyhazards.datasets import load_dataset
+
+ # The 531 basins of Kratzert et al. (2019), e.g. NeuralHydrology's 531_basin_list.txt.
+ data = load_dataset("camels_us_streamflow", data_dir="/data/CAMELS_US", basins="531_basin_list.txt").load()
+ inputs, y = data.get_split("test").inputs[0]
+ print(inputs["x_d"].shape, inputs["x_s"].shape, y.shape) # (270, 5) (27,) (270, 1)
+
+Related Coverage
+~~~~~~~~~~~~~~~~
+
+**Benchmarks:** :doc:`Flood Benchmark `, :doc:`CAMELS-US `
+
+**Representative Models:** :doc:`NeuralHydrology LSTM `, :doc:`EA-LSTM `
+
+Inspection Workflow
+-------------------
+
+This dataset is currently surfaced as a registry-backed benchmark adapter,
+so there is no standalone inspection CLI documented for it.
+
+Notes
+-----
+
+- The reader, scaler and samples are checked against NeuralHydrology's CamelsUS dataset on the real CAMELS-US test basins shipped with NeuralHydrology (oracle test), and the whole evaluation against NeuralHydrology's Tester.
+
+Reference
+---------
+
+- `Addor, Newman, Mizukami and Clark (2017). The CAMELS data set: catchment attributes and meteorology for large-sample studies. HESS 21:5293-5313. `_.
+- `Kratzert et al. (2019). Towards learning universal, regional, and local hydrological behaviors via machine learning applied to large-sample datasets. HESS 23:5089-5110. `_ (`repo `__).
diff --git a/docs/source/datasets/caravan_streamflow.rst b/docs/source/datasets/caravan_streamflow.rst
index 414bef72..792b1d7a 100644
--- a/docs/source/datasets/caravan_streamflow.rst
+++ b/docs/source/datasets/caravan_streamflow.rst
@@ -3,14 +3,14 @@
Caravan
=======
-Synthetic-backed streamflow benchmark adapter aligned to the Caravan large-sample hydrology ecosystem.
+Reader for a local copy of Caravan, the global large-sample hydrology dataset (daily ERA5-Land forcings, catchment attributes and observed streamflow), in NeuralHydrology's sample layout.
Overview
--------
-Caravan is the public flood streamflow adapter used to align PyHazards with a large-sample hydrology benchmark surface.
+Caravan (Kratzert et al., Scientific Data 10:61, 2023) harmonises the CAMELS-style datasets of several countries: every basin has daily ERA5-Land forcings and states (precipitation, temperature, radiation, pressure, wind, soil water, evaporation, ...) aggregated over the catchment in local time, observed streamflow in mm/day, and HydroATLAS / ERA5-Land climate attributes. The Zenodo records are licensed CC BY 4.0, with per-source licence notes in the dataset's ``licenses/`` folder.
-The current implementation is synthetic-backed, but it preserves the streamflow forecasting contract used by the shared flood benchmark.
+``caravan_streamflow`` reads that layout (as NeuralHydrology's ``Caravan`` dataset does) and builds streamflow samples: ``seq_length``-day windows of the chosen dynamic inputs ``x_d``, the basin's static attributes ``x_s`` and the discharge series ``y``, normalised with training-period statistics, split into the train / val / test periods you pass. PyHazards downloads nothing.
At a Glance
-----------
@@ -20,54 +20,57 @@ At a Glance
:stub-columns: 1
* - Provider
- - Caravan community dataset surfaced through a PyHazards adapter
+ - Caravan community dataset (Kratzert et al. 2023), read by PyHazards from a local copy
* - Hazard Family
- Flood
* - Source Role
- Streamflow Benchmark
* - Coverage
- - Benchmark-aligned streamflow forecasting samples
+ - 6,830 catchments in the original release (Australia, Brazil, Canada, Chile, Great Britain, Central Europe, United States) plus extensions
* - Geometry
- - Graph-temporal basin or node sequences
+ - Daily basin time series with static attributes
* - Spatial Resolution
- - Basin or gauge nodes represented as graph elements
+ - Catchment averages (one series per gauge)
* - Temporal Resolution
- - Rolling history windows for streamflow prediction
+ - Daily
* - Update Cadence
- - Generated locally for smoke and benchmark-alignment runs
+ - Versioned Zenodo releases (netCDF and CSV editions) plus community extensions
* - Period of Record
- - Synthetic-backed benchmark adapter
+ - 1981-2020 in the original release (later versions extend it)
* - Formats
- - PyTorch graph-temporal dataset objects via the dataset registry
+ - Per-basin netCDF or CSV time series; per-source attribute CSV files
* - Registry Entry
- ``caravan_streamflow``
Data Characteristics
--------------------
-- Graph-temporal sequences with node-level targets for next-step streamflow prediction.
-- Registry-backed benchmark adapter instead of a raw Caravan ingestion pipeline.
-- Supports the public streamflow smoke path for NeuralHydrology LSTM and Google Flood Forecasting.
+- Layout: ``attributes//attributes_{caravan,hydroatlas,other}_.csv`` (column ``gauge_id``) and ``timeseries/{netcdf,csv}//_.{nc,csv}``; basin ids are ``_``.
+- Inputs and target are standardised with the mean and population standard deviation over all training basins and days; static attributes with their mean and standard deviation over the training basins, sorted alphabetically (NeuralHydrology's order).
+- Training samples with a missing input in the window or a missing target on the last day are dropped; validation and test keep one sample per basin and day so that metrics cover the whole period.
+- Caravan publishes no single input set or split, so ``dynamic_inputs`` and ``periods`` are required.
Typical Use Cases
~~~~~~~~~~~~~~~~~
-- Streamflow smoke tests for benchmark-linked flood models.
-- Shared flood benchmark runs with streamflow metrics such as NSE and KGE.
-- Regression checks for graph-temporal basin workflows.
+- Regional or global LSTM streamflow models (``neuralhydrology_lstm``, ``neuralhydrology_ealstm``, ``google_flood_forecasting``).
+- Per-basin NSE / KGE evaluation with the flood benchmark (``flood.streamflow``).
Access
------
Use the links below to access the upstream source or its public documentation.
-- `Caravan paper `_
+- `Caravan paper (Scientific Data 2023) `_
- `Caravan repository `_
+- `Caravan netCDF release (Zenodo) `_
PyHazards Usage
---------------
-Use this adapter when you want the public Caravan-aligned streamflow surface exposed by the flood benchmark.
+Point ``data_dir`` at an extracted Caravan release and pass basin ids (or a basin file), dynamic inputs and periods.
+
+Score models with ``BenchmarkRunner`` on the ``flood`` benchmark (task ``flood.streamflow``).
Registry Workflow
~~~~~~~~~~~~~~~~~
@@ -80,20 +83,22 @@ Primary dataset name: ``caravan_streamflow``
data = load_dataset(
"caravan_streamflow",
- micro=True,
- history=4,
- nodes=6,
+ data_dir="/data/Caravan",
+ basins=["camelsgb_28015", "lamah_215"],
+ dynamic_inputs=["total_precipitation_sum", "temperature_2m_mean", "potential_evaporation_sum"],
+ static_attributes=["p_mean", "aridity", "area"],
+ periods={"train": ("1981-10-01", "1990-09-30"), "test": ("2000-10-01", "2010-09-30")}, # your split
+ seq_length=365,
).load()
-
- train = data.get_split("train")
- print(len(train.inputs), train.inputs[0].x.shape)
+ inputs, y = data.get_split("test").inputs[0]
+ print(inputs["x_d"].shape, inputs["x_s"].shape, y.shape)
Related Coverage
~~~~~~~~~~~~~~~~
**Benchmarks:** :doc:`Flood Benchmark `, :doc:`Caravan `
-**Representative Models:** :doc:`NeuralHydrology LSTM `, :doc:`Google Flood Forecasting `
+**Representative Models:** :doc:`NeuralHydrology LSTM `, :doc:`EA-LSTM `, :doc:`Google Flood Forecasting `
Inspection Workflow
-------------------
@@ -104,9 +109,10 @@ so there is no standalone inspection CLI documented for it.
Notes
-----
-- This is a synthetic-backed benchmark adapter rather than a full Caravan downloader.
+- The reader is checked against NeuralHydrology's Caravan dataset on real Caravan basin files (oracle test).
+- Until 2026-10 this registry name generated random numbers; it now reads only real Caravan files (synthetic data is ``flood_streamflow_synthetic``).
Reference
---------
-- `Caravan - A global community dataset for large-sample hydrology `_ (`repo `__).
+- `Kratzert et al. (2023). Caravan - A global community dataset for large-sample hydrology. Scientific Data 10:61. `_ (`repo `__).
diff --git a/docs/source/datasets/earthquake_wavefield_synthetic.rst b/docs/source/datasets/earthquake_wavefield_synthetic.rst
new file mode 100644
index 00000000..dd564b15
--- /dev/null
+++ b/docs/source/datasets/earthquake_wavefield_synthetic.rst
@@ -0,0 +1,99 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+Synthetic Wavefield Sequences
+=============================
+
+Synthetic X / Y / Z ground-velocity wavefields of point sources for wavefield-forecasting smoke runs. Not real data.
+
+Overview
+--------
+
+This dataset is synthetic. Each sequence is a point source at a random grid position and onset radiating a P and an S wavefront (Ricker pulses at two speeds, amplitudes decaying with distance): P moves particles radially and vertically, S transversally, giving X, Y and Z velocity channels. It mimics only the layout of WaveCastNet's data (three velocity components on a regular grid); it is not an elastic simulation and says nothing about forecasting skill on real or SW4-simulated wavefields.
+
+It exercises the ``earthquake.forecasting`` task (ACC / RFNE / RMSE of WaveCastNet) in CI. Formerly ``earthquake_forecast_synthetic`` (moving Gaussian blobs; that name is kept as a deprecated alias) and, before that, ``aefa_forecast``: AEFA is an unrelated earthquake-occurrence forecasting dataset.
+
+WaveCastNet's own data (SW4 simulations of the San Francisco Bay Area, arrays ``(events, 3, 376, 256, 461)``, 16-24 GB per file) are on the authors' Google Drive; PyHazards has no reader for them yet.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - Generated locally by PyHazards (pyhazards/datasets/earthquake/synthetic.py)
+ * - Hazard Family
+ - Earthquake
+ * - Source Role
+ - Synthetic Smoke Data
+ * - Coverage
+ - Not applicable (synthetic)
+ * - Geometry
+ - Regular grid of three-component velocity frames
+ * - Spatial Resolution
+ - Not applicable (synthetic grid, default 32 x 24 cells)
+ * - Temporal Resolution
+ - Frames (default 6 input and 6 target frames)
+ * - Update Cadence
+ - Generated on load
+ * - Period of Record
+ - Not applicable (synthetic)
+ * - Formats
+ - PyTorch tensors via the dataset registry
+ * - Registry Entry
+ - ``earthquake_wavefield_synthetic``
+
+Data Characteristics
+--------------------
+
+- Inputs ``(n, 3, temporal_in, height, width)``, targets ``(n, 3, temporal_out, height, width)``; channels X, Y, Z (``channel_names`` metadata).
+- Seeded generator (``seed``); ``vp`` and ``vs`` are wave speeds in grid cells per frame; height and width default to multiples of 8, as WaveCastNet needs.
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- WaveCastNet smoke tests of the wavefield-forecasting benchmark.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+- `Generator source `_
+
+PyHazards Usage
+---------------
+
+Used by ``wavecastnet_benchmark_smoke.yaml``.
+
+Registry Workflow
+~~~~~~~~~~~~~~~~~
+
+Primary dataset name: ``earthquake_wavefield_synthetic``
+
+.. code-block:: python
+
+ from pyhazards.datasets import load_dataset
+
+ data = load_dataset("earthquake_wavefield_synthetic", micro=True, temporal_in=6, temporal_out=6).load()
+ train = data.get_split("train")
+ print(train.inputs.shape, train.targets.shape) # (4, 3, 6, 32, 24) (4, 3, 6, 32, 24)
+
+Related Coverage
+~~~~~~~~~~~~~~~~
+
+**Benchmarks:** :doc:`Earthquake Benchmark `
+
+**Representative Models:** :doc:`WaveCastNet `
+
+Inspection Workflow
+-------------------
+
+This dataset is currently surfaced as a registry-backed benchmark adapter,
+so there is no standalone inspection CLI documented for it.
+
+Reference
+---------
+
+- `PyHazards synthetic wavefield generator (no external source). `_.
diff --git a/docs/source/datasets/earthquake_waveforms_synthetic.rst b/docs/source/datasets/earthquake_waveforms_synthetic.rst
new file mode 100644
index 00000000..cc3dc0e0
--- /dev/null
+++ b/docs/source/datasets/earthquake_waveforms_synthetic.rst
@@ -0,0 +1,101 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+Synthetic Phase-Picking Waveforms
+=================================
+
+Synthetic three-component windows with P and S wavelets for picking smoke runs. Not real data.
+
+Overview
+--------
+
+This dataset is synthetic. Each event window is Gaussian background noise plus two damped sinusoids that start at the P arrival (about 8 Hz, strongest on Z) and at the S arrival (about 4 Hz, strongest on N and E); about a quarter of the windows are noise only. It exists to exercise the picking models and the ``earthquake.picking`` benchmark in CI; numbers obtained on it say nothing about real seismic data.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - Generated locally by PyHazards (pyhazards/datasets/earthquake/synthetic.py)
+ * - Hazard Family
+ - Earthquake
+ * - Source Role
+ - Synthetic Smoke Data
+ * - Coverage
+ - Not applicable (synthetic)
+ * - Geometry
+ - Three-component waveform windows
+ * - Spatial Resolution
+ - Not applicable (synthetic)
+ * - Temporal Resolution
+ - 100 Hz by default
+ * - Update Cadence
+ - Generated on load from a fixed seed
+ * - Period of Record
+ - Not applicable (synthetic)
+ * - Formats
+ - PyTorch tensors via the dataset registry
+ * - Registry Entry
+ - ``earthquake_waveforms_synthetic``
+
+Data Characteristics
+--------------------
+
+- Inputs ``(n, 3, length)`` in Z, N, E order, 100 Hz, ``length`` 6000 by default (60 s, EQTransformer's window).
+- Targets ``(n, 2)``: P and S arrival samples, NaN for noise windows.
+- Deterministic: the same ``seed`` and sizes give the same data; ``micro=True`` makes 24 windows.
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Smoke tests of PhaseNet, EQTransformer, GPD and the picking evaluator.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+- `Generator source `_
+
+PyHazards Usage
+---------------
+
+Used by the earthquake picking smoke configs; use ``seisbench_waveforms`` for real data.
+
+Registry Workflow
+~~~~~~~~~~~~~~~~~
+
+Primary dataset name: ``earthquake_waveforms_synthetic``
+
+.. code-block:: python
+
+ from pyhazards.datasets import load_dataset
+
+ data = load_dataset("earthquake_waveforms_synthetic", micro=True).load()
+ test = data.get_split("test")
+ print(test.inputs.shape, test.targets.shape) # (4, 3, 6000), (4, 2)
+
+Related Coverage
+~~~~~~~~~~~~~~~~
+
+**Benchmarks:** :doc:`Earthquake Benchmark `
+
+**Representative Models:** :doc:`PhaseNet `, :doc:`EQTransformer `, :doc:`GPD `, :doc:`EQNet `
+
+Inspection Workflow
+-------------------
+
+This dataset is currently surfaced as a registry-backed benchmark adapter,
+so there is no standalone inspection CLI documented for it.
+
+Notes
+-----
+
+- Renamed from ``earthquake_waveforms``; it also replaces the synthetic data that used to be served as ``seisbench_waveforms`` and ``pick_benchmark_waveforms``.
+
+Reference
+---------
+
+- `PyHazards synthetic phase-picking generator (no external source). `_.
diff --git a/docs/source/datasets/era5.rst b/docs/source/datasets/era5.rst
index e816179a..4f921650 100644
--- a/docs/source/datasets/era5.rst
+++ b/docs/source/datasets/era5.rst
@@ -10,7 +10,7 @@ Overview
ERA5 is ECMWF's fifth-generation global reanalysis, combining historical observations with a modern data assimilation system to produce temporally consistent atmospheric fields.
-PyHazards uses ERA5 as a shared meteorological baseline for flood, wildfire, and weather-aware graph workflows, including the HydroGraphNet example path.
+PyHazards uses ERA5 as a shared meteorological baseline for flood, wildfire, and weather-aware graph workflows.
At a Glance
-----------
@@ -68,16 +68,11 @@ Use the links below to access the upstream source or its public documentation.
PyHazards Usage
---------------
-Use the inspection command for direct file validation, then feed local ERA5 files into HydroGraphNet-style helper loaders when you need graph-temporal training inputs.
+Use the inspection command for direct file validation, then feed local ERA5 files into the graph helper ``pyhazards.data.load_hydrograph_data`` (grid cells as nodes) when you need generic graph-temporal inputs.
This dataset is currently documented as an external or inspection-first
source rather than a public ``load_dataset(...)`` entrypoint.
-Related Coverage
-~~~~~~~~~~~~~~~~
-
-**Representative Models:** :doc:`HydroGraphNet `
-
Inspection Workflow
-------------------
@@ -90,7 +85,7 @@ Use the documented inspection path below to validate local files before training
Notes
-----
-- ERA5 is inspection-first in the public catalog; the downstream HydroGraphNet helper is documented here for convenience but is not a ``load_dataset(...)`` registry entry.
+- ERA5 is inspection-first in the public catalog; the graph helper is documented here for convenience but is not a ``load_dataset(...)`` registry entry. It is not HydroGraphNet's data (HydroGraphNet runs on HEC-RAS mesh hydrographs, see ``hydrographnet_white_river``).
Reference
---------
diff --git a/docs/source/datasets/figlib_smokebench.rst b/docs/source/datasets/figlib_smokebench.rst
new file mode 100644
index 00000000..18759103
--- /dev/null
+++ b/docs/source/datasets/figlib_smokebench.rst
@@ -0,0 +1,101 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+FIgLib SmokeBench
+=================
+
+The SmokeBench evaluation images -- HPWREN FIgLib camera frames with the SmokeyNet smoke boxes -- for prompting multimodal LLMs to classify and localize early wildfire smoke.
+
+Overview
+--------
+
+SmokeBench (Qi, Li & Barnes, WACV 2026) evaluates multimodal LLMs on 5,046 smoke images with ground-truth boxes and 1,000 smoke-free images from FIgLib, the HPWREN Fire Ignition images Library of fixed-view camera sequences around wildfire ignitions.
+
+SmokeBench released no data or image lists. The 5,046 boxes are the bbox_labels of SmokeyNet's metadata.pkl (Apache-2.0 repository, pinned and checksummed): one box per frame on 145 sequences, whose area quintiles are exactly the SmokeBench area bins (42, 4356, 11232, 28565, 83157, 2232020 pixels).
+
+The frames are downloaded from the official HPWREN CDN on demand; PyHazards redistributes no images.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - HPWREN (UC San Diego) FIgLib images; SmokeyNet (Dewangan et al. 2022) boxes; SmokeBench (Qi, Li & Barnes, WACV 2026) protocol
+ * - Hazard Family
+ - Wildfire
+ * - Source Role
+ - Smoke Detection Benchmark
+ * - Coverage
+ - Southern California (HPWREN camera network)
+ * - Geometry
+ - Fixed-camera RGB photographs with smoke bounding boxes
+ * - Spatial Resolution
+ - 1600 x 1200 to 3072 x 2048 pixel frames from mountain-top cameras
+ * - Temporal Resolution
+ - Sequences of up to 81 frames, usually one minute apart, from 40 minutes before to 40 minutes after the first visible plume
+ * - Update Cadence
+ - Static evaluation set (FIgLib itself keeps adding sequences)
+ * - Period of Record
+ - Fires of 2016-2020 (the 145 annotated sequences)
+ * - Formats
+ - JPEG frames in per-sequence tgz archives; boxes in a Python pickle (SmokeyNet metadata.pkl)
+ * - Inspection CLI
+ - ``python -m pyhazards.datasets.figlib_smokebench.inspection --root /path/to/figlib --download``
+
+Data Characteristics
+--------------------
+
+- Smoke images are frames at or after the first visible plume (file names _+.jpg) that SmokeyNet's annotators boxed; smoke-free images are frames before it (_-.jpg).
+- Frame sizes: 2,846 at 2048 x 1536, 1,994 at 3072 x 2048, 172 at 1600 x 1200 and 34 at 2560 x 1920 among the smoke images.
+- Boxes are [x1, y1, x2, y2] integer pixel coordinates of the original frame (extremes of the annotated polygon); smoke areas range from 42 to 2,232,020 pixels.
+- SmokeBench's 1,000 smoke-free frames were an unseeded random draw over all FIgLib sequences and were not released; the adapter draws a seeded sample from the pre-ignition frames of the 145 annotated sequences (5,666 candidates).
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Zero-shot evaluation of multimodal LLMs on smoke classification, tile and grid localization and box detection (SmokeBench).
+- Studying how smoke size and contrast limit early wildfire smoke detection.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+- `HPWREN FIgLib `_
+- `FIgLib sequence archives (HPWREN CDN) `_
+- `SmokeyNet repository (boxes in data/metadata.pkl) `_
+
+PyHazards Usage
+---------------
+
+pyhazards.datasets.figlib_smokebench.FIgLibSmokeBench(root) yields SmokeSample(image_id, path, label, boxes) and decodes frames to RGB arrays; download_smokebench(root) fetches the boxes and frames.
+
+pyhazards.prompted.evaluate_smokebench runs the SmokeBench tasks on it with a prompted multimodal-LLM backend (see the Prompted VLM Baselines page).
+
+This dataset is currently documented as an external or inspection-first
+source rather than a public ``load_dataset(...)`` entrypoint.
+
+Inspection Workflow
+-------------------
+
+Use the documented inspection path below to validate local files before training or analysis.
+
+.. code-block:: bash
+
+ python -m pyhazards.datasets.figlib_smokebench.inspection --root /path/to/figlib --download
+
+- --download fetches the pinned SmokeyNet metadata.pkl (sha256-checked) and streams the 145 FIgLib archives (about 11.4 GB), keeping only the JPEG frames.
+
+Notes
+-----
+
+- Licence: HPWREN publishes FIgLib as public data and asks that derivative work credit https://www.hpwren.ucsd.edu/; no licence file accompanies the images. The SmokeyNet repository (boxes) is Apache-2.0.
+- Smoke-free accuracy on the seeded sample is not the same sample as SmokeBench Table 3.
+
+Reference
+---------
+
+- `Qi, T., Li, W., Barnes, N. (2026). SmokeBench: Evaluating Multimodal Large Language Models for Wildfire Smoke Detection. WACV 2026. `_.
+- `Dewangan, A. et al. (2022). FIgLib & SmokeyNet: Dataset and Deep Learning Model for Real-Time Wildland Fire Smoke Detection. Remote Sensing 14(4):1007. `_ (`repo `__).
diff --git a/docs/source/datasets/firms.rst b/docs/source/datasets/firms.rst
index 8199627c..c43622f5 100644
--- a/docs/source/datasets/firms.rst
+++ b/docs/source/datasets/firms.rst
@@ -92,4 +92,4 @@ Use the documented inspection path below to validate local files before training
Reference
---------
-- `Schroeder et al. (2014). The New VIIRS 375 m active fire detection data product. `_.
+- `Schroeder et al. (2014). The New VIIRS 375 m active fire detection data product. `_.
diff --git a/docs/source/datasets/flood_mesh_synthetic.rst b/docs/source/datasets/flood_mesh_synthetic.rst
new file mode 100644
index 00000000..109728b6
--- /dev/null
+++ b/docs/source/datasets/flood_mesh_synthetic.rst
@@ -0,0 +1,97 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+Synthetic Mesh Hydrographs
+==========================
+
+Random mesh fields and toy hydrographs in the HydroGraphNet (White River) layout, for smoke tests of hydrographnet and of mesh inundation rollouts.
+
+Overview
+--------
+
+Synthetic data. Static fields are random and the depth series is a toy function of a random inflow curve and the terrain; scores on it mean nothing. It runs the same pipeline as ``hydrographnet_white_river`` (normalisation, 4-nearest-neighbour graph, 16 node features, training windows with physics data, rollout test split), so models and the flood benchmark can be exercised without the 8.3 GB release. ``write_hydrograph_files`` writes such data in the release's file layout.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - PyHazards (generated in memory; no real flood)
+ * - Hazard Family
+ - Flood
+ * - Source Role
+ - Synthetic Smoke Data
+ * - Coverage
+ - None (synthetic)
+ * - Geometry
+ - Graph-temporal basin or node sequences
+ * - Spatial Resolution
+ - Not applicable (random points)
+ * - Temporal Resolution
+ - Not applicable (synthetic steps)
+ * - Update Cadence
+ - Generated on every load
+ * - Period of Record
+ - None (synthetic)
+ * - Formats
+ - PyTorch tensors via the dataset registry
+ * - Registry Entry
+ - ``flood_mesh_synthetic``
+
+Data Characteristics
+--------------------
+
+- Default: 64 nodes, 4 training and 2 test hydrographs of 48 steps, rollouts of 30 steps; ``micro=True``: 24 nodes, 2 + 1 hydrographs of 16 steps, rollouts of 6 steps.
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Smoke tests and CI runs of hydrographnet and of the ``flood.inundation`` mesh rollouts.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+
+PyHazards Usage
+---------------
+
+Use only for smoke tests; the real data are ``hydrographnet_white_river``.
+
+Registry Workflow
+~~~~~~~~~~~~~~~~~
+
+Primary dataset name: ``flood_mesh_synthetic``
+
+.. code-block:: python
+
+ from pyhazards.datasets import load_dataset
+
+ data = load_dataset("flood_mesh_synthetic", micro=True).load()
+ print(data.metadata["synthetic"]) # True
+
+Related Coverage
+~~~~~~~~~~~~~~~~
+
+**Benchmarks:** :doc:`Flood Benchmark `
+
+**Representative Models:** :doc:`HydroGraphNet `
+
+Inspection Workflow
+-------------------
+
+This dataset is currently surfaced as a registry-backed benchmark adapter,
+so there is no standalone inspection CLI documented for it.
+
+Notes
+-----
+
+- Bundle metadata carries synthetic=True. Until this release the name held random node series on a line graph.
+
+Reference
+---------
+
+- `PyHazards synthetic smoke data (pyhazards/datasets/flood/hydrograph.py) `_.
diff --git a/docs/source/datasets/floodcastbench_inundation.rst b/docs/source/datasets/floodcastbench_inundation.rst
deleted file mode 100644
index 77a95f66..00000000
--- a/docs/source/datasets/floodcastbench_inundation.rst
+++ /dev/null
@@ -1,111 +0,0 @@
-.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
-
-FloodCastBench
-==============
-
-Synthetic-backed inundation benchmark adapter aligned to the FloodCastBench evaluation ecosystem.
-
-Overview
---------
-
-FloodCastBench is the public inundation adapter used by PyHazards for raster flood prediction benchmarks.
-
-The current implementation is synthetic-backed, but it preserves the raster task and metric surface used by the shared flood evaluator.
-
-At a Glance
------------
-
-.. list-table::
- :widths: 28 72
- :stub-columns: 1
-
- * - Provider
- - FloodCastBench ecosystem surfaced through a PyHazards adapter
- * - Hazard Family
- - Flood
- * - Source Role
- - Inundation Benchmark
- * - Coverage
- - Benchmark-aligned flood inundation samples
- * - Geometry
- - Raster inundation sequences
- * - Spatial Resolution
- - Benchmark-defined raster tiles
- * - Temporal Resolution
- - Short history windows with next-horizon inundation targets
- * - Update Cadence
- - Generated locally for smoke and benchmark-alignment runs
- * - Period of Record
- - Synthetic-backed benchmark adapter
- * - Formats
- - PyTorch tensors via the dataset registry
- * - Registry Entry
- - ``floodcastbench_inundation``
-
-Data Characteristics
---------------------
-
-- Multi-step raster inputs paired with next-horizon inundation targets.
-- Registry-backed benchmark adapter rather than a raw external dataset ingestion path.
-- Intended for pixel-level evaluation such as IoU and pixel MAE.
-
-Typical Use Cases
-~~~~~~~~~~~~~~~~~
-
-- Smoke tests for FloodCast and UrbanFloodCast.
-- Shared flood benchmark runs on inundation tasks.
-- Regression checks for raster flood prediction outputs.
-
-Access
-------
-
-Use the links below to access the upstream source or its public documentation.
-
-- `FloodCastBench repository `_
-
-PyHazards Usage
----------------
-
-Use this adapter when you want the public FloodCastBench-aligned inundation surface exposed by the flood benchmark.
-
-Registry Workflow
-~~~~~~~~~~~~~~~~~
-
-Primary dataset name: ``floodcastbench_inundation``
-
-.. code-block:: python
-
- from pyhazards.datasets import load_dataset
-
- data = load_dataset(
- "floodcastbench_inundation",
- micro=True,
- history=4,
- channels=3,
- ).load()
-
- train = data.get_split("train")
- print(train.inputs.shape, train.targets.shape)
-
-Related Coverage
-~~~~~~~~~~~~~~~~
-
-**Benchmarks:** :doc:`Flood Benchmark `, :doc:`FloodCastBench `
-
-**Representative Models:** :doc:`FloodCast `, :doc:`UrbanFloodCast `
-
-Inspection Workflow
--------------------
-
-This dataset is currently surfaced as a registry-backed benchmark adapter,
-so there is no standalone inspection CLI documented for it.
-
-Notes
------
-
-- This is a synthetic-backed benchmark adapter rather than a full FloodCastBench ingestion pipeline.
-
-Reference
----------
-
-- `FloodCastBench `_.
diff --git a/docs/source/datasets/fpa_fod_weekly.rst b/docs/source/datasets/fpa_fod_weekly.rst
index 6dfa3f7f..04f85959 100644
--- a/docs/source/datasets/fpa_fod_weekly.rst
+++ b/docs/source/datasets/fpa_fod_weekly.rst
@@ -98,7 +98,7 @@ Related Coverage
**Benchmarks:** :doc:`Wildfire Benchmark `
-**Representative Models:** :doc:`DNN-LSTM-AutoEncoder `, :doc:`Wildfire Forecasting `, :doc:`ASUFM `
+**Representative Models:** :doc:`DNN-LSTM-AutoEncoder `
Inspection Workflow
-------------------
diff --git a/docs/source/datasets/frap_fire_perimeters.rst b/docs/source/datasets/frap_fire_perimeters.rst
new file mode 100644
index 00000000..29e70186
--- /dev/null
+++ b/docs/source/datasets/frap_fire_perimeters.rst
@@ -0,0 +1,83 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+CAL FIRE FRAP Fire Perimeters
+=============================
+
+California's historical wildfire perimeter archive, maintained by CAL FIRE's Fire and Resource Assessment Program, with fires back to 1878.
+
+Overview
+--------
+
+The FRAP fire perimeter layer is CAL FIRE's statewide archive of mapped wildfire perimeters on public and private land in California, compiled with federal and local agencies and updated each spring with the previous fire season. Prescribed burns are kept in a separate layer.
+
+It is a long, regional perimeter record that complements the national incident feeds (WFIGS) and satellite detections (FIRMS) for California.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - CAL FIRE Fire and Resource Assessment Program (FRAP), with USFS Region 5, BLM, NPS, USFWS, California State Parks and contract counties
+ * - Hazard Family
+ - Wildfire
+ * - Source Role
+ - Historical Perimeters
+ * - Coverage
+ - California
+ * - Geometry
+ - Fire perimeter polygons
+ * - Spatial Resolution
+ - Vector polygons (native coordinate system California Teale Albers, EPSG:3310)
+ * - Temporal Resolution
+ - One record per fire, with alarm and containment dates
+ * - Update Cadence
+ - Annual, each spring, adding the previous fire season (release firep25_1, April 2026)
+ * - Period of Record
+ - 1878 to 2025 in release firep25_1
+ * - Formats
+ - File geodatabase; shapefile, GeoJSON, CSV, KML and GeoPackage exports from the California open-data hub
+
+Data Characteristics
+--------------------
+
+- Minimum mapped size for CAL FIRE and contract counties: at least 10 acres of timber, 50 acres of brush or 300 acres of grass, or at least 3 damaged or destroyed structures, or a fatality; other agencies submit perimeters of at least 10 acres. The criteria changed around 1991 and 2010.
+- The archive is incomplete: some historical records were lost or too small for the cutoffs, some fires are duplicated or over-generalised, and unburned islands inside perimeters are mapped as burned. Perimeters may differ from those published by NIFC.
+- Attributes include YEAR_, AGENCY, UNIT_ID, FIRE_NAME, INC_NUM, IRWINID, ALARM_DATE, CONT_DATE, CAUSE, C_METHOD, OBJECTIVE, GIS_ACRES and COMPLEX_NAME.
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Historical burned-area footprints for California wildfire studies.
+- Validating perimeters from national feeds or satellite products in California.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+- `California Fire Perimeters (all) on data.ca.gov `_
+- `California Natural Resources Agency open-data hub (downloads and services) `_
+
+PyHazards Usage
+---------------
+
+PyHazards does not load this source; it is listed as an external reference for California perimeter data.
+
+Inspection Workflow
+-------------------
+
+PyHazards has no inspection command or loader for this source; it is listed
+as an external reference. Use the provider's access links above.
+
+Notes
+-----
+
+- Terms: data.ca.gov lists the dataset under CC BY; the metadata asks users to cite the California Department of Forestry and Fire Protection as the source, states "There are no restrictions on distribution of the data by users", and gives no warranty.
+
+Reference
+---------
+
+- `CAL FIRE FRAP (2026). Fire Perimeters, release firep25_1 (metadata). `_.
diff --git a/docs/source/datasets/geomac_historical.rst b/docs/source/datasets/geomac_historical.rst
new file mode 100644
index 00000000..fad61ac0
--- /dev/null
+++ b/docs/source/datasets/geomac_historical.rst
@@ -0,0 +1,84 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+GeoMAC Historical Perimeters
+============================
+
+Wildfire perimeters processed by the USGS GeoMAC service from 2000 to 2019, now distributed by the National Interagency Fire Center.
+
+Overview
+--------
+
+GeoMAC was the USGS-operated wildfire mapping website (2000-2020) that published fire perimeters for incident support. After it was shut down on 30 April 2020, its historical perimeters moved to the National Interagency Fire Center (NIFC) open-data site.
+
+It is the main national perimeter archive for 2000-2019. For 2021 onwards the interagency WFIGS perimeters are the successor; the NIFC Interagency Fire Perimeter History layer also covers perimeters through 2019.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - USGS Geospatial Multi-Agency Coordination (GeoMAC; shut down on 30 April 2020), archive distributed by NIFC Open Data
+ * - Hazard Family
+ - Wildfire
+ * - Source Role
+ - Historical Perimeters
+ * - Coverage
+ - United States (the 2019 layer covers the conterminous 48 states and Alaska)
+ * - Geometry
+ - Fire perimeter polygons
+ * - Spatial Resolution
+ - Vector polygons (geographic coordinates, NAD83)
+ * - Temporal Resolution
+ - The latest perimeter processed for each fire, with its perimeter date and time
+ * - Update Cadence
+ - Static archive (GeoMAC was retired on 30 April 2020)
+ * - Period of Record
+ - 2000 to 2019 (a combined 2000-2018 layer and a separate 2019 layer)
+ * - Formats
+ - File geodatabase downloads and ArcGIS feature services
+
+Data Characteristics
+--------------------
+
+- The combined 2000-2018 layer holds 23,776 perimeters; 2019 is a separate layer.
+- Attributes include incidentname, fireyear, perimeterdatetime, gisacres, agency, mapmethod, uniquefireidentifier, irwinid, state and complexname.
+- The perimeters are the last ones processed by the GeoMAC team for each fire; NIFC notes that they are not necessarily the final or official perimeter.
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- National wildfire burned-area footprints for 2000-2019.
+- Extending perimeter records before the WFIGS era.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+- `NIFC Open Data, Historic Perimeters Combined 2000-2018 GeoMAC `_
+- `NIFC Open Data, Historic GeoMAC Perimeters 2019 `_
+
+PyHazards Usage
+---------------
+
+PyHazards does not load this source; it is listed as an external reference for historical U.S. wildfire perimeters.
+
+Inspection Workflow
+-------------------
+
+PyHazards has no inspection command or loader for this source; it is listed
+as an external reference. Use the provider's access links above.
+
+Notes
+-----
+
+- Terms: the NIFC items state no licence and carry no-warranty disclaimers. USGS-produced data are in the U.S. public domain under USGS policy, but the items do not say so explicitly.
+
+Reference
+---------
+
+- `National Interagency Fire Center. Historic Perimeters Combined 2000-2018 GeoMAC (NIFC Open Data). `_.
+- `Walters, Schneider and Guthrie (2011). Geospatial Multi-Agency Coordination (GeoMAC) wildland fire perimeters, 2008. USGS Data Series 612 (documents the 2008 season only). `_.
diff --git a/docs/source/datasets/goesr_fdcf.rst b/docs/source/datasets/goesr_fdcf.rst
new file mode 100644
index 00000000..a310a9dc
--- /dev/null
+++ b/docs/source/datasets/goesr_fdcf.rst
@@ -0,0 +1,87 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+GOES-R ABI Fire/Hot Spot Characterization (FDCF)
+================================================
+
+NOAA's GOES-R ABI Level-2 fire detection and characterization product on the full-disk scan, every 10 minutes since April 2019, openly distributed on AWS.
+
+Overview
+--------
+
+ABI-L2-FDCF is the full-disk version of the GOES-R Fire/Hot Spot Characterization product. The FDCA algorithm (the operational version of WFABBA) flags fire pixels in Advanced Baseline Imager data and estimates their fire radiative power, temperature and area.
+
+It gives geostationary fire activity every 10 minutes, much more often than the polar-orbiting MODIS and VIIRS detections distributed by FIRMS, at a coarser 2 km pixel.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - NOAA NESDIS GOES-R Series; Fire Detection and Characterization Algorithm (FDCA) from UW-Madison CIMSS
+ * - Hazard Family
+ - Wildfire
+ * - Source Role
+ - Active Fire Detections
+ * - Coverage
+ - The full disk of each GOES satellite (GOES-East and GOES-West positions over the Americas)
+ * - Geometry
+ - Raster imagery time series on the ABI fixed grid
+ * - Spatial Resolution
+ - 2 km at nadir (5424 x 5424 full-disk fixed grid)
+ * - Temporal Resolution
+ - A full-disk product every 10 minutes since 2 April 2019 (scan mode 6); every 15 minutes before (mode 3)
+ * - Update Cadence
+ - Continuous operational production
+ * - Period of Record
+ - From 24 May 2017 (GOES-16); see the notes for the per-satellite archives
+ * - Formats
+ - NetCDF-4 (CF-1.7) in the geostationary projection
+
+Data Characteristics
+--------------------
+
+- Variables: Mask (fire category codes, e.g. 10 good-quality fire, 11 saturated, 12 cloud contaminated, 13-15 high / medium / low probability, 30-35 their temporally filtered versions), Power (MW), Temp (K), Area (m2) and DQF, plus viewing angles and summaries.
+- Pixels are on the ABI fixed grid (geostationary projection) and need reprojection for latitude-longitude work.
+- AWS buckets per satellite: noaa-goes16 (2017-05-24 to 2025-04-07), noaa-goes17 (2018-08-27 to January 2023), noaa-goes18 (from 2022-05-11) and noaa-goes19 (from 2024-10-17); GOES-East data after April 2025 are in noaa-goes19. Keys look like ABI-L2-FDCF/YYYY/DDD/HH/OR_ABI-L2-FDCF-M6_G16_s....nc.
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- High-frequency fire activity time series over the Americas.
+- Fire radiative power for growth and intensity analyses.
+- Timing ignitions more precisely than polar-orbiting detections allow.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+- `NOAA NESDIS GOES-R series data products `_
+- `NOAA GOES on the AWS Registry of Open Data `_
+- `NOAA STAR GOES-R fire product page `_
+
+PyHazards Usage
+---------------
+
+PyHazards does not load this product; it is listed as an external reference. The ``goesr`` entry covers ABI imagery in general.
+
+Inspection Workflow
+-------------------
+
+PyHazards has no inspection command or loader for this source; it is listed
+as an external reference. Use the provider's access links above.
+
+Notes
+-----
+
+- Terms: NOAA Open Data Dissemination states that the data "are open to the public and can be used as desired", requests attribution and forbids implying NOAA endorsement. The "license" attribute inside the NetCDF files ("Access is restricted to approved users only") is boilerplate that does not apply to the open distribution.
+
+Reference
+---------
+
+- `Schmidt (2020). Monitoring Fires with the GOES-R Series. In The GOES-R Series, Elsevier, 145-163. `_.
+- `GOES-R Algorithm Working Group (2018). NOAA GOES-R Series ABI Level 2 Fire/Hot Spot Characterization (FDC). NOAA NCEI. `_.
+- `Schmidt, Hoffman, Prins and Lindstrom (2020). GOES-R ABI Algorithm Theoretical Basis Document for Fire / Hot Spot Characterization, version 2.7. NOAA NESDIS STAR. `_.
diff --git a/docs/source/datasets/hms_smoke.rst b/docs/source/datasets/hms_smoke.rst
new file mode 100644
index 00000000..d49683d0
--- /dev/null
+++ b/docs/source/datasets/hms_smoke.rst
@@ -0,0 +1,84 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+NOAA HMS Smoke Polygons
+=======================
+
+Analyst-drawn smoke plume outlines from NOAA's Hazard Mapping System, produced daily since August 2005.
+
+Overview
+--------
+
+The Hazard Mapping System (HMS), first implemented in 2002, is NOAA's analyst-driven fire and smoke product: satellite analysts outline the smoke plumes visible in satellite imagery and record the satellite and the time window of each outline.
+
+The smoke polygons describe where smoke was visible, which fire detections and perimeters do not; they are commonly used to flag smoke-affected days and to link plumes to fires.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - NOAA NESDIS Office of Satellite and Product Operations (OSPO), Satellite Analysis Branch
+ * - Hazard Family
+ - Wildfire
+ * - Source Role
+ - Smoke Plumes
+ * - Coverage
+ - North America, Hawaii and the Caribbean
+ * - Geometry
+ - Analyst-drawn smoke polygons
+ * - Spatial Resolution
+ - Vector polygons (WGS84); annual smoke-day rasters at 0.05 deg
+ * - Temporal Resolution
+ - Daily analyses, the first around 11:00-12:00 US Eastern time and usually a second around 19:00-20:00; each polygon has start and end times
+ * - Update Cadence
+ - Daily
+ * - Period of Record
+ - 5 August 2005 to the present
+ * - Formats
+ - Zipped shapefiles (daily files and annual bundles), KML, annual GeoTIFF smoke-day rasters
+
+Data Characteristics
+--------------------
+
+- Attributes are Satellite, Start, End and Density (Light, Medium, Heavy or NA).
+- The density attribute is consistently filled only from 1 June 2010; most earlier files have "NA" (apart from April-December 2008), so density-based analyses should start in mid-2010.
+- File names and columns changed on 19 July 2022, when NOAA regenerated the historical archive; daily shapefiles are named hms_smokeYYYYMMDD.zip.
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Flagging smoke-affected days and regions in air-quality or wildfire impact studies.
+- Linking smoke plumes to fire detections and perimeters.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+- `NOAA OSPO Hazard Mapping System `_
+- `HMS smoke polygon archive (shapefile, KML, GeoTIFF) `_
+
+PyHazards Usage
+---------------
+
+PyHazards does not load this source; it is listed as an external reference for wildfire smoke extent.
+
+Inspection Workflow
+-------------------
+
+PyHazards has no inspection command or loader for this source; it is listed
+as an external reference. Use the provider's access links above.
+
+Notes
+-----
+
+- Terms: the OSPO pages state no licence; the data.gov catalogue record lists CC0.
+
+Reference
+---------
+
+- `Ruminski and Kondragunta (2006). Monitoring fire and smoke emissions with the hazard mapping system. Proc. SPIE 6412. `_.
+- `Brey et al. (2018). Connecting smoke plumes to sources using Hazard Mapping System (HMS) smoke and fire location data over North America. Atmospheric Chemistry and Physics 18, 1745-1761. `_.
diff --git a/docs/source/datasets/hrrr.rst b/docs/source/datasets/hrrr.rst
new file mode 100644
index 00000000..ff766b5b
--- /dev/null
+++ b/docs/source/datasets/hrrr.rst
@@ -0,0 +1,83 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+HRRR
+====
+
+NOAA's 3 km, hourly updated, convection-allowing forecast model for the United States, archived on AWS since July 2014.
+
+Overview
+--------
+
+The High-Resolution Rapid Refresh is NOAA's operational convection-allowing model. It is run every hour and produces short-range forecasts of near-surface and upper-air weather at 3 km.
+
+Its near-surface temperature, humidity, wind and precipitation forecasts are a common source of short-range fire-weather inputs; since HRRRv4 it also predicts wildfire smoke inline.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - NOAA (run operationally by NCEP; developed by the NOAA Global Systems Laboratory)
+ * - Hazard Family
+ - Shared Forcing
+ * - Source Role
+ - Weather Forecast
+ * - Coverage
+ - Conterminous United States; an Alaska domain from July 2018
+ * - Geometry
+ - Gridded forecast fields
+ * - Spatial Resolution
+ - 3 km
+ * - Temporal Resolution
+ - Hourly forecast output; with HRRRv4 (since 2 December 2020) 18-hour forecasts every hour and 48-hour forecasts at 00, 06, 12 and 18 UTC
+ * - Update Cadence
+ - Every hour for CONUS; every 3 hours for Alaska
+ * - Period of Record
+ - AWS archive from 30 July 2014; operational since 30 September 2014
+ * - Formats
+ - GRIB2 with .idx index files
+
+Data Characteristics
+--------------------
+
+- Forecast length changed with the model version: 15 hours until 2016, 18 hours from about September 2016, 36 hours at the synoptic cycles from mid-2018 and 48 hours from December 2020.
+- Files are grouped into surface (wrfsfc), pressure-level (wrfprs), native-level (wrfnat) and sub-hourly (wrfsubh) products; AWS keys look like hrrr.YYYYMMDD/conus/hrrr.tHHz.wrfsfcfFF.grib2.
+- The first two months on AWS predate operations and some early surface files are missing.
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Short-range fire-weather covariates (wind, humidity, temperature) for wildfire models.
+- Smoke forecast fields from HRRRv4 onwards.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+- `NOAA HRRR on the AWS Registry of Open Data `_
+- `NOAA Rapid Refresh / HRRR information page `_
+
+PyHazards Usage
+---------------
+
+PyHazards does not load this source; it is listed as an external reference for short-range weather forecasts.
+
+Inspection Workflow
+-------------------
+
+PyHazards has no inspection command or loader for this source; it is listed
+as an external reference. Use the provider's access links above.
+
+Notes
+-----
+
+- Terms: NOAA Open Data Dissemination states that the data "are open to the public and can be used as desired", requests attribution and forbids implying NOAA endorsement.
+
+Reference
+---------
+
+- `Dowell et al. (2022). The High-Resolution Rapid Refresh (HRRR): An Hourly Updating Convection-Allowing Forecast Model. Part I: Motivation and System Description. Weather and Forecasting 37(8), 1371-1395. `_.
diff --git a/docs/source/datasets/hurricast_ibtracs_era5.rst b/docs/source/datasets/hurricast_ibtracs_era5.rst
new file mode 100644
index 00000000..ae00d95b
--- /dev/null
+++ b/docs/source/datasets/hurricast_ibtracs_era5.rst
@@ -0,0 +1,120 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+Hurricast IBTrACS + ERA5 Inputs
+===============================
+
+The inputs of Hurricast (Boussioux et al. 2022): 30 IBTrACS statistical features and nine storm-centred ERA5 maps per 3-hour step, 8 steps per sample, with the 24-hour intensity or position as target.
+
+Overview
+--------
+
+``hurricast_ibtracs_era5`` builds Hurricast's samples. From IBTrACS (``read_ibtracs``) it keeps the rows on the 3-hour grid, interpolates the WMO wind and pressure linearly within each storm, and computes per step the 30 features of the official feature tables: latitude, longitude, WMO wind and pressure, distance to land, translation speed, cosine / sine of the day of year, direction, latitude and longitude, the Saffir-Simpson category value, one-hot basin and storm nature, and the latitude / longitude change since the previous step.
+
+Storms are selected like the official ``sort_storm``: kept when more than ``min_steps`` (20, i.e. 60 h) of their steps reach ``min_wind`` (34 kt), cut to start at the first such step and to at most ``max_steps`` (120) steps. Each window of 8 steps followed by 8 more gives a sample (windows whose target period has a step without any movement are dropped, as the official ``remove_zeros``). Winds of samples outside the North Atlantic and Eastern Pacific are converted from 10-minute to 1-minute values (/ 0.93).
+
+With ``era5=`` (a netCDF / zarr path or an ``xarray.Dataset`` with u, v and z, e.g. a Copernicus Climate Data Store download or the NCAR RDA copy) each step gets the nine maps u, v, z at 225, 500 and 700 hPa on the 25 x 25 one-degree grid centred on the grid point nearest to the storm (a 0.25-degree source is sampled at whole degrees). Maps are read only for samples of a split.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - NOAA NCEI (IBTrACS v04) and ECMWF / Copernicus Climate Change Service (ERA5), read from files the user provides
+ * - Hazard Family
+ - Tropical Cyclone
+ * - Source Role
+ - Model Inputs (best track + reanalysis)
+ * - Coverage
+ - All IBTrACS basins (the paper reports test scores for the North Atlantic and Eastern Pacific)
+ * - Geometry
+ - Storm-centred sequences of feature vectors and 25 x 25 one-degree maps
+ * - Spatial Resolution
+ - Storm-centre positions; maps 25 x 25 at 1 degree around the storm
+ * - Temporal Resolution
+ - Three-hourly steps (t-21 h ... t), 24-hour lead time
+ * - Update Cadence
+ - Follows the user's IBTrACS and ERA5 files
+ * - Period of Record
+ - Paper: 1980-2019 (train 1980-2011, validation 2012-2015, test 2016-2019)
+ * - Formats
+ - IBTrACS v04 CSV or netCDF; ERA5 pressure-level netCDF / zarr (or an xarray Dataset) with u, v, z at 225, 500, 700 hPa
+ * - Registry Entry
+ - ``hurricast_ibtracs_era5``
+
+Data Characteristics
+--------------------
+
+- Inputs per split: ``x_stat`` ``(N, 8, 30)``, ``x_viz`` ``(N, 8, 9, 25, 25)`` (channels u225, u500, u700, v..., z...; rows north to south) and ``position`` ``(N, 2)`` (latitude, longitude at the forecast time). Targets: ``target="intensity"`` the WMO wind 24 h ahead (1-minute kt, ``tc.intensity``); ``target="displacement"`` the position 24 h ahead ``(N, 1, 2)`` (``tc.track_intensity``).
+- ``standardize=True`` standardises latitude, longitude, wind, pressure, distance to land, speed and the displacements (paper Table 2) and every map channel with the training split's statistics (recorded in the metadata); cyclic encodings and categories are left as they are.
+- Splits by season (paper defaults: 1980-2011 / 2012-2015 / 2016-2019); the test split keeps only ``test_basins`` (NA, EP). The paper further restricts its test cases to those with ATCF operational forecasts (837 EP / 899 NA track cases), which needs the ATCF data and is not done here.
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Training and evaluating Hurricast (encoder-decoder embeddings and XGBoost) on real storms.
+- Multimodal (tabular + reanalysis map) 24-hour track and intensity forecasting experiments.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+- `IBTrACS v04r01 files (NOAA NCEI) `_
+- `ERA5 hourly data on pressure levels (Copernicus Climate Data Store) `_
+- `ERA5 on NCAR RDA (ds633.0) `_
+
+PyHazards Usage
+---------------
+
+Fit ``hurricast`` with ``model.fit(train.inputs, train.targets, val.inputs, val.targets)`` and score it with the ``tc`` benchmark: ``tc.intensity`` (MAE in kt) or ``tc.track_intensity`` with lead 24 h (great-circle error in km, the paper's haversine metric).
+
+Registry Workflow
+~~~~~~~~~~~~~~~~~
+
+Primary dataset name: ``hurricast_ibtracs_era5``
+
+.. code-block:: python
+
+ from pyhazards.datasets import load_dataset
+
+ data = load_dataset(
+ "hurricast_ibtracs_era5",
+ path="ibtracs.since1980.list.v04r01.csv",
+ era5="era5_u_v_z_225_500_700.nc", # covering the storms' 25 x 25 degree neighbourhoods
+ target="intensity",
+ ).load()
+ train = data.get_split("train")
+ print(train.inputs["x_stat"].shape, train.inputs["x_viz"].shape, train.targets.shape)
+
+- path= is an IBTrACS v04 CSV or netCDF file; era5= is optional (without it only the statistical inputs are built, enough for HUML-(stat, xgb)).
+- min_wind, min_steps, max_steps, window_size, predict_at, the split seasons, test_basins and basins can be changed; the defaults are the paper's.
+- The official per-step CDS requests (area latitude +-12.008, longitude +-12, 1-degree grid) are not reproduced; the maps are cut from the data the user provides.
+
+Related Coverage
+~~~~~~~~~~~~~~~~
+
+**Benchmarks:** :doc:`Tropical Cyclone Benchmark `, :doc:`IBTrACS `
+
+**Representative Models:** :doc:`Hurricast `
+
+Inspection Workflow
+-------------------
+
+This dataset is currently surfaced as a registry-backed benchmark adapter,
+so there is no standalone inspection CLI documented for it.
+
+Notes
+-----
+
+- The official repository (no licence) did not release the code that built the paper's 30-feature tables, only their column names; the features are computed from the paper (Table 2, footnote 2) and those names, and the storm selection, interpolation, category and displacement columns are checked against the released src/utils/data_processing.py. Differences from that code: rows off the 3-hour grid (e.g. landfall records at 10:15) are dropped, WMO values are interpolated within each storm (the official numeric_data interpolates across the whole table, so a storm's first gaps take values from the previous storm), and spur tracks are skipped.
+- Neither file is redistributed: IBTrACS follows the WDC-Meteorology open-access policy, ERA5 is CC BY 4.0 (Copernicus). The tests use the 4-storm IBTrACS cut of tests/fixtures/ibtracs and a 9-time ERA5 cut around Hurricane Ophelia (tests/fixtures/era5).
+
+Reference
+---------
+
+- `Boussioux, L., C. Zeng, T. Guenais and D. Bertsimas (2022). Hurricane Forecasting: A Novel Multimodal Machine Learning Framework. Weather and Forecasting 37(6), 817-831. `_.
+- `Knapp, K. R. et al. (2010). The International Best Track Archive for Climate Stewardship (IBTrACS). BAMS 91, 363-376; Gahtan, J. et al. (2024), IBTrACS v04r01, NOAA NCEI. `_.
+- `Hersbach, H. et al. (2023). ERA5 hourly data on pressure levels from 1940 to present. Copernicus Climate Change Service (C3S) Climate Data Store. `_.
diff --git a/docs/source/datasets/hurricast_synthetic.rst b/docs/source/datasets/hurricast_synthetic.rst
new file mode 100644
index 00000000..d408fe7e
--- /dev/null
+++ b/docs/source/datasets/hurricast_synthetic.rst
@@ -0,0 +1,97 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+Synthetic Hurricast Inputs
+==========================
+
+Random inputs in the hurricast_ibtracs_era5 layout (8 steps of 30 statistical features and 9 maps of 25 x 25) for smoke tests of hurricast.
+
+Overview
+--------
+
+Synthetic data. Every value is a random number; nothing in it describes real tropical cyclones and scores on it mean nothing. It exists so that smoke tests and CI can run hurricast and the cyclone benchmark without IBTrACS or ERA5 files.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - PyHazards (generated in memory; no real storms)
+ * - Hazard Family
+ - Tropical Cyclone
+ * - Source Role
+ - Synthetic Smoke Data
+ * - Coverage
+ - None (synthetic)
+ * - Geometry
+ - Feature sequences and image sequences
+ * - Spatial Resolution
+ - Not applicable (random numbers)
+ * - Temporal Resolution
+ - Not applicable (random numbers)
+ * - Update Cadence
+ - Generated on every load
+ * - Period of Record
+ - None (synthetic)
+ * - Formats
+ - PyTorch tensors via the dataset registry
+ * - Registry Entry
+ - ``hurricast_synthetic``
+
+Data Characteristics
+--------------------
+
+- x_stat (N, 8, 30) with standard-normal numerical features, cyclic encodings in [-1, 1] and valid one-hot basin / nature columns; x_viz (N, 8, 9, 25, 25) standard normal; position (N, 2); targets random winds (kt) or positions (target='displacement').
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Smoke tests and CI runs of hurricast and of the cyclone benchmark.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+
+PyHazards Usage
+---------------
+
+Use only for smoke tests; real data come from hurricast_ibtracs_era5.
+
+Registry Workflow
+~~~~~~~~~~~~~~~~~
+
+Primary dataset name: ``hurricast_synthetic``
+
+.. code-block:: python
+
+ from pyhazards.datasets import load_dataset
+
+ data = load_dataset("hurricast_synthetic", micro=True).load()
+ print(data.metadata["synthetic"]) # True
+
+Related Coverage
+~~~~~~~~~~~~~~~~
+
+**Benchmarks:** :doc:`Tropical Cyclone Benchmark `
+
+**Representative Models:** :doc:`Hurricast `
+
+Inspection Workflow
+-------------------
+
+This dataset is currently surfaced as a registry-backed benchmark adapter,
+so there is no standalone inspection CLI documented for it.
+
+Notes
+-----
+
+- Bundle metadata carries synthetic=True, and benchmark results report it.
+
+Reference
+---------
+
+- `PyHazards synthetic smoke data (pyhazards/datasets/tc/synthetic.py) `_.
diff --git a/docs/source/datasets/hydrobench_streamflow.rst b/docs/source/datasets/hydrobench_streamflow.rst
deleted file mode 100644
index 7bcc3e1b..00000000
--- a/docs/source/datasets/hydrobench_streamflow.rst
+++ /dev/null
@@ -1,111 +0,0 @@
-.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
-
-HydroBench
-==========
-
-Synthetic-backed streamflow diagnostics adapter aligned to the HydroBench ecosystem.
-
-Overview
---------
-
-HydroBench is the public flood adapter used for streamflow diagnostics and HydroGraphNet-aligned benchmark runs.
-
-The current implementation is synthetic-backed, but it preserves the streamflow task and metric contract exposed by the shared flood benchmark.
-
-At a Glance
------------
-
-.. list-table::
- :widths: 28 72
- :stub-columns: 1
-
- * - Provider
- - HydroBench ecosystem surfaced through a PyHazards adapter
- * - Hazard Family
- - Flood
- * - Source Role
- - Streamflow Benchmark
- * - Coverage
- - Benchmark-aligned streamflow forecasting samples
- * - Geometry
- - Graph-temporal basin or node sequences
- * - Spatial Resolution
- - Basin or gauge nodes represented as graph elements
- * - Temporal Resolution
- - Rolling history windows for streamflow prediction
- * - Update Cadence
- - Generated locally for smoke and benchmark-alignment runs
- * - Period of Record
- - Synthetic-backed benchmark adapter
- * - Formats
- - PyTorch graph-temporal dataset objects via the dataset registry
- * - Registry Entry
- - ``hydrobench_streamflow``
-
-Data Characteristics
---------------------
-
-- Graph-temporal sequences with node-level targets for next-step streamflow prediction.
-- Registry-backed benchmark adapter rather than a raw HydroBench dataset ingestion path.
-- Intended for HydroGraphNet smoke runs and flood benchmark diagnostics.
-
-Typical Use Cases
-~~~~~~~~~~~~~~~~~
-
-- HydroGraphNet smoke tests.
-- Shared flood benchmark runs with HydroBench-aligned metrics.
-- Diagnostics for graph-based flood forecasting experiments.
-
-Access
-------
-
-Use the links below to access the upstream source or its public documentation.
-
-- `HydroBench repository `_
-
-PyHazards Usage
----------------
-
-Use this adapter when you want the public HydroBench-aligned streamflow surface exposed by the flood benchmark.
-
-Registry Workflow
-~~~~~~~~~~~~~~~~~
-
-Primary dataset name: ``hydrobench_streamflow``
-
-.. code-block:: python
-
- from pyhazards.datasets import load_dataset
-
- data = load_dataset(
- "hydrobench_streamflow",
- micro=True,
- history=4,
- nodes=6,
- ).load()
-
- train = data.get_split("train")
- print(len(train.inputs), train.inputs[0].x.shape)
-
-Related Coverage
-~~~~~~~~~~~~~~~~
-
-**Benchmarks:** :doc:`Flood Benchmark `, :doc:`HydroBench `
-
-**Representative Models:** :doc:`HydroGraphNet `
-
-Inspection Workflow
--------------------
-
-This dataset is currently surfaced as a registry-backed benchmark adapter,
-so there is no standalone inspection CLI documented for it.
-
-Notes
------
-
-- This is a synthetic-backed benchmark adapter rather than a full HydroBench downloader.
-
-Reference
----------
-
-- `HydroBench `_.
diff --git a/docs/source/datasets/hydrographnet_white_river.rst b/docs/source/datasets/hydrographnet_white_river.rst
new file mode 100644
index 00000000..3af157bd
--- /dev/null
+++ b/docs/source/datasets/hydrographnet_white_river.rst
@@ -0,0 +1,115 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+HydroGraphNet White River
+=========================
+
+Reader for a local copy of the HydroGraphNet dataset (HEC-RAS flood simulations on a 4,787-cell mesh of the White River near Muncie, Indiana), read as PhysicsNeMo's HydroGraphDataset reads it.
+
+Overview
+--------
+
+The dataset of HydroGraphNet (Taghizadeh et al., Computer-Aided Civil and Infrastructure Engineering 2025): HEC-RAS 2-D simulations of 500 boundary-inflow hydrographs with rainfall on the White River mesh, with per-cell terrain attributes (area, elevation, slope, aspect, curvature, Manning's n, flow accumulation, infiltration) and per-step water depth and volume. CC BY 4.0, Zenodo 14969507.
+
+``hydrographnet_white_river`` reproduces PhysicsNeMo's ``HydroGraphDataset``: it drops the first 72 steps of every hydrograph and cuts it 25 steps after the inflow peak, converts precipitation, builds the 4-nearest-neighbour graph with standardised (dx, dy, distance) edge features, standardises static features per column and the dynamic series with statistics of the training hydrographs, and yields the 16 node features, the next depth / volume change and the physics data of the continuity loss for every two-step window; test hydrographs are whole rollouts. PyHazards downloads nothing.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - Taghizadeh et al. (University of Virginia), Zenodo record 14969507; read by PyHazards from a local copy
+ * - Hazard Family
+ - Flood
+ * - Source Role
+ - Inundation Benchmark
+ * - Coverage
+ - White River near Muncie, Indiana, USA
+ * - Geometry
+ - Unstructured 2-D mesh cells with a k-nearest-neighbour graph
+ * - Spatial Resolution
+ - Mesh cells of about 80 m (4,787 cells)
+ * - Temporal Resolution
+ - 20-minute steps
+ * - Update Cadence
+ - Static research dataset (released 2025-03-05)
+ * - Period of Record
+ - 500 simulated inflow / rainfall events (hydrographs)
+ * - Formats
+ - Tab-separated text files (HydroGraphNet.zip, 8.3 GB)
+ * - Registry Entry
+ - ``hydrographnet_white_river``
+
+Data Characteristics
+--------------------
+
+- Layout: ``M80_XY.txt``, ``M80_{CA,CE,CS,A,CU,N,FA,IP}.txt`` (static), ``M80_{WD,V,US_InF,Pr}_.txt`` per hydrograph ``H1`` ... ``H500``, ``train.txt``, ``static_norm_stats.json``, ``dynamic_norm_stats.json``.
+- Training split: sliding windows (``n_time_steps=2``) with ``(node_features (N, 16), edge_features (E, 3), edge_index (2, E), physics)`` and the target (N, 2); batch them with ``hydrograph_collate``.
+- Test split: one item per hydrograph with the first window, the normalised inflow / precipitation and the true depth / volume of the next ``rollout_length`` (30) steps.
+- The release ships no test list: ``train.txt`` names all 500 hydrographs and the example's ``Test/test.txt`` is not published, so ``test_ids`` must be given (they are removed from the training list).
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Training and evaluating HydroGraphNet as in the PhysicsNeMo example.
+- Mesh inundation rollouts scored in metres with the flood benchmark (``flood.inundation``).
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+- `HydroGraphNet dataset (Zenodo 14969507) `_
+- `PhysicsNeMo HydroGraphNet example `_
+
+PyHazards Usage
+---------------
+
+Point ``data_dir`` at the unzipped release and pass the test hydrographs as ``test_ids``.
+
+Score models that provide ``rollout(...)`` (HydroGraphNet) with ``BenchmarkRunner`` on the ``flood`` benchmark (task ``flood.inundation``).
+
+Registry Workflow
+~~~~~~~~~~~~~~~~~
+
+Primary dataset name: ``hydrographnet_white_river``
+
+.. code-block:: python
+
+ from pyhazards.datasets import load_dataset
+
+ # Unzipped HydroGraphNet.zip; hold out e.g. the last 50 hydrographs for rollouts.
+ data = load_dataset(
+ "hydrographnet_white_river",
+ data_dir="/data/HydroGraphNet",
+ test_ids=[f"H{i}" for i in range(451, 501)],
+ ).load()
+ inputs, target = data.get_split("train").inputs[0]
+ print(inputs["node_features"].shape, target.shape) # (4787, 16) (4787, 2)
+
+- ``norm_stats='files'`` uses the released normalisation statistics instead of recomputing them.
+
+Related Coverage
+~~~~~~~~~~~~~~~~
+
+**Benchmarks:** :doc:`Flood Benchmark `, :doc:`HydroGraphNet White River `
+
+**Representative Models:** :doc:`HydroGraphNet `
+
+Inspection Workflow
+-------------------
+
+This dataset is currently surfaced as a registry-backed benchmark adapter,
+so there is no standalone inspection CLI documented for it.
+
+Notes
+-----
+
+- Every training window, physics value and rollout target equals PhysicsNeMo's HydroGraphDataset on fixtures in the release layout (oracle test); a local check on real hydrographs of the release (H1, H2) matched as well.
+
+Reference
+---------
+
+- `Taghizadeh, Zandsalimi, Nabian, Shafiee-Jood and Alemazkoor (2025). Interpretable physics-informed graph neural networks for flood forecasting. Computer-Aided Civil and Infrastructure Engineering 40(18):2629-2649. `_ (`repo `__).
diff --git a/docs/source/datasets/ibtracs_tracks.rst b/docs/source/datasets/ibtracs_tracks.rst
index a3dbf0e3..e8c9a3e1 100644
--- a/docs/source/datasets/ibtracs_tracks.rst
+++ b/docs/source/datasets/ibtracs_tracks.rst
@@ -3,14 +3,14 @@
IBTrACS
=======
-Synthetic-backed storm-track adapter aligned to the IBTrACS tropical cyclone archive.
+NOAA NCEI's International Best Track Archive for Climate Stewardship (v04r01), read from its CSV or netCDF files into best-track forecasting windows.
Overview
--------
-IBTrACS is the public storm-track adapter used by PyHazards for shared tropical cyclone benchmark runs.
+IBTrACS merges the best tracks of the WMO Regional Specialized Meteorological Centres and other agencies into one archive with a merged position (``LAT`` / ``LON``) and each agency's own positions, maximum sustained winds and central pressures (``USA_WIND``, ``TOKYO_WIND``, ``CMA_PRES``, ...).
-The current implementation is synthetic-backed, but it preserves the track-intensity forecasting surface used by the shared tropical cyclone evaluator.
+``ibtracs_tracks`` reads an IBTrACS v04 CSV or netCDF file with PyHazards' own reader (``pyhazards.datasets.tc.read_ibtracs``) and turns each storm into forecasting windows: ``history`` six-hourly observations of the chosen variables before a forecast time and the same variables at ``lead_hours`` after it.
At a Glance
-----------
@@ -20,53 +20,55 @@ At a Glance
:stub-columns: 1
* - Provider
- - NOAA NCEI International Best Track Archive for Climate Stewardship surfaced through a PyHazards adapter
+ - NOAA National Centers for Environmental Information (NCEI), merging the WMO Regional Specialized Meteorological Centres and other agencies
* - Hazard Family
- Tropical Cyclone
* - Source Role
- Track Archive
* - Coverage
- - Benchmark-aligned tropical cyclone track and intensity samples
+ - All tropical cyclone basins (NA, SA, EP, WP, NI, SI, SP)
* - Geometry
- Storm-track history sequences
* - Spatial Resolution
- - Storm-centered best-track sequences
+ - Storm-centre positions (0.1 degree precision)
* - Temporal Resolution
- - Historical track windows with forecast horizons
+ - Three-hourly track points (six-hourly synoptic times are used for samples)
* - Update Cadence
- - Generated locally for smoke and benchmark-alignment runs
+ - Updated by NCEI several times a week; PyHazards reads the file the user downloads
* - Period of Record
- - Synthetic-backed benchmark adapter
+ - 1842 to present (agency coverage varies by basin and era)
* - Formats
- - PyTorch tensors via the dataset registry
+ - CSV (ibtracs..list.v04r01.csv) or netCDF (IBTrACS..v04r01.nc)
* - Registry Entry
- ``ibtracs_tracks``
Data Characteristics
--------------------
-- Storm-history sequences with future latitude, longitude, and intensity targets.
-- Registry-backed benchmark adapter rather than a raw IBTrACS archive loader.
-- Supports both basin-specific hurricane models and broader tropical cyclone adapters.
+- Inputs ``(samples, history, V)`` and targets ``(samples, len(lead_hours), V)`` hold the ``variables`` in physical units (default latitude, longitude, maximum sustained wind in knots, central pressure in hPa) from one ``agency`` (default ``usa``; ``wmo`` gives the WMO_WIND / WMO_PRES columns of the responsible RSMC). Windows need every value present; spur tracks are skipped unless ``include_spur``.
+- Winds are as reported by each agency, which use different averaging periods (1-minute for the US agencies, 2-minute for CMA, 10-minute for most RSMCs); IBTrACS does not convert them.
+- The merged ``LON`` stays continuous across the dateline (values above 180 occur); agency longitudes are wrapped to [-180, 180) and are unwrapped inside each window. The track error of the benchmark is a great-circle distance, which does not depend on the convention.
+- CSV details handled by the reader: the second line holds units, missing values are a single space, and ``NA`` (North Atlantic) is a basin code, not a missing value. The netCDF file (storm x date_time arrays) gives the same table.
Typical Use Cases
~~~~~~~~~~~~~~~~~
-- Hurricast smoke tests.
-- Shared tropical cyclone benchmark runs for track and intensity prediction.
-- Benchmark-aligned validation for weather-model storm adapters.
+- Ground truth for track and intensity forecasts scored by the PyHazards cyclone benchmark.
+- Training and evaluating best-track (persistence, CLIPER-style or learned) track and intensity models.
Access
------
Use the links below to access the upstream source or its public documentation.
-- `IBTrACS product page `_
+- `IBTrACS product page (NOAA NCEI) `_
+- `v04r01 CSV files `_
+- `v04r01 netCDF files `_
PyHazards Usage
---------------
-Use this adapter when you want the public IBTrACS-aligned storm-track surface exposed by the tropical cyclone benchmark.
+Score forecasts of any model that returns latitude, longitude and intensity at the dataset's lead times with the ``tc`` benchmark (``tc.track_intensity``): great-circle track error in km and wind / pressure MAE in knots / hPa, per lead time.
Registry Workflow
~~~~~~~~~~~~~~~~~
@@ -76,24 +78,29 @@ Primary dataset name: ``ibtracs_tracks``
.. code-block:: python
from pyhazards.datasets import load_dataset
+ from pyhazards.datasets.tc import download_ibtracs
+ path = download_ibtracs("data/ibtracs", subset="NA") # 58 MB; ALL is 333 MB
data = load_dataset(
"ibtracs_tracks",
- micro=True,
- history=6,
- horizon=5,
+ path=str(path),
+ variables=["lat", "lon", "wind", "pres"],
+ history=4,
+ lead_hours=[24, 48, 72],
+ test_seasons=[2023, 2024],
).load()
+ test = data.get_split("test")
+ print(test.inputs.shape, test.targets.shape, data.metadata["units"])
- train = data.get_split("train")
- print(train.inputs.shape, train.targets.shape)
+- path= is an IBTrACS v04 CSV or netCDF file; alternatively cache_dir= with download=True fetches ibtracs..list.v04r01.csv from NCEI.
+- Splits are by season: test_seasons / val_seasons (other seasons train); by default the last season is the test split and the one before validation.
+- Split metadata lists each sample's SID, name, basin, season and forecast time (iso_time).
Related Coverage
~~~~~~~~~~~~~~~~
**Benchmarks:** :doc:`Tropical Cyclone Benchmark `, :doc:`IBTrACS `
-**Representative Models:** :doc:`Hurricast `, :doc:`GraphCast TC Adapter `, :doc:`Pangu TC Adapter `, :doc:`FourCastNet TC Adapter `
-
Inspection Workflow
-------------------
@@ -103,9 +110,11 @@ so there is no standalone inspection CLI documented for it.
Notes
-----
-- This is a synthetic-backed benchmark adapter rather than a full IBTrACS ingestion pipeline.
+- Terms of use (NCEI): IBTrACS follows the World Data Center for Meteorology policy of full and open access, with WMO Resolution 40 as the guide for commercial use; it is not stated to be public domain. PyHazards downloads it from NCEI on request and never redistributes it; tests use a 4-storm cut of the official files (tests/fixtures/ibtracs).
+- The files change several times a week, so they cannot be pinned by checksum; the dataset records the sha256 of the file it read (metadata source_sha256).
Reference
---------
-- `IBTrACS `_.
+- `Knapp, K. R., M. C. Kruk, D. H. Levinson, H. J. Diamond and C. J. Neumann (2010). The International Best Track Archive for Climate Stewardship (IBTrACS): Unifying tropical cyclone best track data. Bulletin of the American Meteorological Society 91, 363-376. `_.
+- `Gahtan, J., K. R. Knapp, C. J. Schreck, H. J. Diamond, J. P. Kossin and M. C. Kruk (2024). International Best Track Archive for Climate Stewardship (IBTrACS) Project, Version 4r01. NOAA National Centers for Environmental Information. `_.
diff --git a/docs/source/datasets/landscan_population.rst b/docs/source/datasets/landscan_population.rst
new file mode 100644
index 00000000..40438141
--- /dev/null
+++ b/docs/source/datasets/landscan_population.rst
@@ -0,0 +1,84 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+LandScan Global
+===============
+
+ORNL's annual 30 arc-second global grid of ambient (24-hour average) population, an exposure layer for hazard impact studies.
+
+Overview
+--------
+
+LandScan Global estimates the ambient (24-hour average) population of every 30 arc-second cell of the world, as one grid per year from 2000.
+
+For hazards it is a population-exposure layer: how many people live or spend time where a fire, flood or storm occurs.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - Oak Ridge National Laboratory (ORNL)
+ * - Hazard Family
+ - Shared Forcing
+ * - Source Role
+ - Population Exposure
+ * - Coverage
+ - Global
+ * - Geometry
+ - Gridded population rasters (WGS84 geographic)
+ * - Spatial Resolution
+ - 30 arc-seconds (about 1 km at the equator); 21,600 x 43,200 cells
+ * - Temporal Resolution
+ - Annual
+ * - Update Cadence
+ - Annual releases (LandScan Global 2024 was published in August 2025)
+ * - Period of Record
+ - 2000 to 2024
+ * - Formats
+ - GeoTIFF
+
+Data Characteristics
+--------------------
+
+- One band of population counts per cell, one file per year.
+- Ambient (24-hour average) population rather than night-time residence counts.
+- Downloads from the ORNL portal require a short registration form; the 2000-2022 releases are also mirrored on figshare.
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Population exposure to wildfire, flood or tropical-cyclone footprints.
+- Weighting hazard maps by the people affected.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+- `LandScan portal (ORNL) `_
+- `LandScan Global 2024 record (OSTI) `_
+
+PyHazards Usage
+---------------
+
+PyHazards does not load this source; it is listed as an external reference for population exposure.
+
+Inspection Workflow
+-------------------
+
+PyHazards has no inspection command or loader for this source; it is listed
+as an external reference. Use the provider's access links above.
+
+Notes
+-----
+
+- Terms: since May 2022 LandScan Global is released under the Creative Commons Attribution 4.0 International licence ("free to use, copy, distribute, transmit, and adapt the data for commercial and non-commercial purposes ... as long as clear attribution of the source is provided"). The figshare mirror is labelled CC0; the ORNL licence is the authoritative one.
+
+Reference
+---------
+
+- `Lebakula et al. (2025). LandScan Global 2024. Oak Ridge National Laboratory. `_.
+- `Lebakula et al. (2025). LandScan Global 30 Arcsecond Annual Global Gridded Population Datasets from 2000 to 2022. Scientific Data 12, 495. `_.
diff --git a/docs/source/datasets/ndfd.rst b/docs/source/datasets/ndfd.rst
new file mode 100644
index 00000000..21ce0661
--- /dev/null
+++ b/docs/source/datasets/ndfd.rst
@@ -0,0 +1,85 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+NDFD
+====
+
+The National Weather Service's gridded official forecasts, including relative humidity, wind, Red Flag Warnings and SPC fire-weather outlook grids, archived since 2004.
+
+Overview
+--------
+
+The National Digital Forecast Database holds the official National Weather Service forecasts as grids: temperature, humidity, wind, precipitation, sky cover, weather type and hazard (watch / warning / advisory) elements, written by the forecast offices and national centres.
+
+For wildfire work it carries the fire-weather ingredients forecasters use (minimum relative humidity, wind and gusts) and the SPC fire-weather outlook grids.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - NOAA National Weather Service (forecast offices and NCEP; the Storm Prediction Center supplies the fire-weather outlooks)
+ * - Hazard Family
+ - Shared Forcing
+ * - Source Role
+ - Weather Forecast
+ * - Coverage
+ - United States and territories
+ * - Geometry
+ - Gridded forecast fields
+ * - Spatial Resolution
+ - 2.5 km for CONUS (2145 x 1377 Lambert conformal grid); separate Alaska, Hawaii, Puerto Rico, Guam and oceanic grids
+ * - Temporal Resolution
+ - Element-dependent forecast steps over days 1-7
+ * - Update Cadence
+ - As often as every 30 minutes, depending on the element
+ * - Period of Record
+ - 6 June 2004 to the present at NCEI; AWS archive from 16 April 2020
+ * - Formats
+ - GRIB2
+
+Data Characteristics
+--------------------
+
+- Fire-relevant elements: SPC fire-weather outlooks (critfireo, critical and extremely critical areas, days 1-7; dryfireo, dry thunderstorm areas), minrh / maxrh / rhm, wspd / wdir / wgust, and the wwa hazard grid, whose codes include Red Flag Warning (FW.W) and Fire Weather Watch (FW.A). The SPC outlook grids became operational on 14 July 2011 and cover CONUS only.
+- Archive access depends on the period: NCEI holds data from 6 June 2004 (older years in bulk archives, recent years online) and AWS from 16 April 2020.
+- Some GRIB2 decoders misread the grid scanning order; NOAA recommends degrib, wgrib2 or grib2io.
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Operational fire-weather forecast covariates and Red Flag Warning history.
+- Comparing machine-learning forecasts with the official forecast.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+- `NDFD at NOAA NCEI (archive) `_
+- `NOAA NDFD on the AWS Registry of Open Data `_
+- `Current NDFD GRIB2 files (NWS) `_
+- `NDFD documentation (NOAA MDL) `_
+
+PyHazards Usage
+---------------
+
+PyHazards does not load this source; it is listed as an external reference for official fire-weather forecasts.
+
+Inspection Workflow
+-------------------
+
+PyHazards has no inspection command or loader for this source; it is listed
+as an external reference. Use the provider's access links above.
+
+Notes
+-----
+
+- Terms: NWS information is in the public domain unless noted otherwise and may be used for any lawful purpose as long as users do not claim it as their own, imply NWS endorsement, or present modified content as official (https://www.weather.gov/disclaimer).
+
+Reference
+---------
+
+- `Glahn and Ruth (2003). The New Digital Forecast Database of the National Weather Service. Bulletin of the American Meteorological Society 84(2), 195-202. `_.
diff --git a/docs/source/datasets/nohrsc_snodas.rst b/docs/source/datasets/nohrsc_snodas.rst
new file mode 100644
index 00000000..fd9977c9
--- /dev/null
+++ b/docs/source/datasets/nohrsc_snodas.rst
@@ -0,0 +1,84 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+SNODAS
+======
+
+NOAA NOHRSC's daily 1 km snow analysis (snow water equivalent, depth, melt, sublimation) for the conterminous United States, distributed by NSIDC since 2003.
+
+Overview
+--------
+
+SNODAS is a modelling and data-assimilation system developed by NOHRSC to provide the best possible daily estimates of snow cover and related variables on a 1 km grid, in support of hydrologic modelling and analysis.
+
+For hazard work it describes snowpack and melt timing, which shape spring flood risk and the length of the fire season in snow-dominated mountains.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - NOAA NWS National Operational Hydrologic Remote Sensing Center (NOHRSC); distributed by NOAA@NSIDC as data set G02158
+ * - Hazard Family
+ - Shared Forcing
+ * - Source Role
+ - Snow Analysis
+ * - Coverage
+ - Masked version, conterminous United States and some Canadian basins (24.95-52.875 N, 124.733-66.942 W); unmasked version extends into Canada and Mexico
+ * - Geometry
+ - Regular latitude-longitude grid
+ * - Spatial Resolution
+ - 30 arc-seconds (nominally 1 km)
+ * - Temporal Resolution
+ - Daily; states are snapshots at 06 UTC, fluxes are 24-hour totals from 06 to 06 UTC
+ * - Update Cadence
+ - Daily
+ * - Period of Record
+ - Masked files from 30 September 2003, unmasked files from 9 December 2009; NSIDC discourages use before October 2004
+ * - Formats
+ - Daily .tar files of gzipped flat binary 16-bit big-endian grids with text headers (NoData -9999)
+
+Data Characteristics
+--------------------
+
+- Eight variables: snow water equivalent, snow depth, snowmelt runoff, snowpack sublimation, blowing-snow sublimation, solid and liquid precipitation, and snowpack average temperature.
+- Known defects documented by NSIDC: snow water equivalent and depth wrongly zero in 126,950 cells from 9 October 2014 to 10 October 2019 (a repair mask is provided), values saturating at 32.767 m, snowpack temperature missing before 21 February 2004 and a 5% cell shift on 1 October 2013.
+- The unmasked version's coverage is not consistent until 2013.
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Snowmelt inputs for spring flood and streamflow models.
+- Snow-cover duration and melt timing as covariates of mountain fire seasons.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+- `NSIDC data set G02158 `_
+- `NSIDC SNODAS file archive `_
+
+PyHazards Usage
+---------------
+
+PyHazards does not load this source; it is listed as an external reference for snow state.
+
+Inspection Workflow
+-------------------
+
+PyHazards has no inspection command or loader for this source; it is listed
+as an external reference. Use the provider's access links above.
+
+Notes
+-----
+
+- Terms: NSIDC states "As a condition of using these data, you must cite the use of this data set" with the citation above.
+
+Reference
+---------
+
+- `National Operational Hydrologic Remote Sensing Center (2004). Snow Data Assimilation System (SNODAS) Data Products at NSIDC, Version 1. NSIDC. `_.
+- `Barrett (2003). National Operational Hydrologic Remote Sensing Center Snow Data Assimilation System (SNODAS) Products at NSIDC. NSIDC Special Report 11. `_.
diff --git a/docs/source/datasets/pick_benchmark_waveforms.rst b/docs/source/datasets/pick_benchmark_waveforms.rst
deleted file mode 100644
index 008adadf..00000000
--- a/docs/source/datasets/pick_benchmark_waveforms.rst
+++ /dev/null
@@ -1,111 +0,0 @@
-.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
-
-pick-benchmark
-==============
-
-Synthetic-backed waveform picking adapter aligned to the pick-benchmark evaluation ecosystem.
-
-Overview
---------
-
-pick-benchmark is the public waveform adapter used by the earthquake benchmark for transformer and CNN picking baselines.
-
-The current implementation is synthetic-backed, but it preserves the phase-picking task shape, labels, and metrics expected by the shared earthquake evaluator.
-
-At a Glance
------------
-
-.. list-table::
- :widths: 28 72
- :stub-columns: 1
-
- * - Provider
- - pick-benchmark ecosystem surfaced through a PyHazards adapter
- * - Hazard Family
- - Earthquake
- * - Source Role
- - Waveform Benchmark
- * - Coverage
- - Benchmark-aligned earthquake phase-picking samples
- * - Geometry
- - Multichannel waveform windows
- * - Spatial Resolution
- - Benchmark-defined waveform channels and sample windows
- * - Temporal Resolution
- - Short waveform windows with phase-pick targets
- * - Update Cadence
- - Generated locally for smoke and benchmark-alignment runs
- * - Period of Record
- - Synthetic-backed benchmark adapter
- * - Formats
- - PyTorch tensors via the dataset registry
- * - Registry Entry
- - ``pick_benchmark_waveforms``
-
-Data Characteristics
---------------------
-
-- Multichannel waveform windows paired with P- and S-arrival sample targets.
-- Registry-backed benchmark adapter rather than a raw external waveform ingestion path.
-- Intended for phase-picking validation and smoke tests.
-
-Typical Use Cases
-~~~~~~~~~~~~~~~~~
-
-- EQTransformer and GPD smoke tests.
-- Shared earthquake picking benchmark runs.
-- Regression checks for waveform-based picking models.
-
-Access
-------
-
-Use the links below to access the upstream source or its public documentation.
-
-- `pick-benchmark repository `_
-
-PyHazards Usage
----------------
-
-Use this adapter when you want the public pick-benchmark-aligned waveform surface exposed by the earthquake benchmark.
-
-Registry Workflow
-~~~~~~~~~~~~~~~~~
-
-Primary dataset name: ``pick_benchmark_waveforms``
-
-.. code-block:: python
-
- from pyhazards.datasets import load_dataset
-
- data = load_dataset(
- "pick_benchmark_waveforms",
- micro=True,
- channels=3,
- length=256,
- ).load()
-
- train = data.get_split("train")
- print(train.inputs.shape, train.targets.shape)
-
-Related Coverage
-~~~~~~~~~~~~~~~~
-
-**Benchmarks:** :doc:`Earthquake Benchmark `, :doc:`pick-benchmark `
-
-**Representative Models:** :doc:`EQTransformer `, :doc:`GPD `
-
-Inspection Workflow
--------------------
-
-This dataset is currently surfaced as a registry-backed benchmark adapter,
-so there is no standalone inspection CLI documented for it.
-
-Notes
------
-
-- This is a synthetic-backed benchmark adapter rather than a full pick-benchmark downloader.
-
-Reference
----------
-
-- `pick-benchmark `_.
diff --git a/docs/source/datasets/safnet_cma_era_interim_synthetic.rst b/docs/source/datasets/safnet_cma_era_interim_synthetic.rst
new file mode 100644
index 00000000..c55275c8
--- /dev/null
+++ b/docs/source/datasets/safnet_cma_era_interim_synthetic.rst
@@ -0,0 +1,97 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+Synthetic SAF-Net Inputs
+========================
+
+Random inputs in the SAF-Net layout (96 wide predictors and (2, 4, 31, 31, 4) u/v wind cubes) for smoke tests of saf_net.
+
+Overview
+--------
+
+Synthetic data. Every value is a random number; nothing in it describes real tropical cyclones and scores on it mean nothing. It exists so that smoke tests and CI can run the models and the cyclone benchmark without downloading data.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - PyHazards (generated in memory; no real storms)
+ * - Hazard Family
+ - Tropical Cyclone
+ * - Source Role
+ - Synthetic Smoke Data
+ * - Coverage
+ - None (synthetic)
+ * - Geometry
+ - Tabular feature vectors
+ * - Spatial Resolution
+ - Not applicable (random numbers)
+ * - Temporal Resolution
+ - Not applicable (random numbers)
+ * - Update Cadence
+ - Generated on every load
+ * - Period of Record
+ - None (synthetic)
+ * - Formats
+ - PyTorch tensors via the dataset registry
+ * - Registry Entry
+ - ``safnet_cma_era_interim_synthetic``
+
+Data Characteristics
+--------------------
+
+- Inputs uniform in [0, 1] like the MinMax-scaled official inputs; targets uniform in 10-70 m/s with a prediction_transform that maps the model's scaled output to m/s.
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Smoke tests and CI runs of the linked models and of the cyclone benchmark.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+
+PyHazards Usage
+---------------
+
+Use only for smoke tests; real data are ibtracs_tracks, ships_xu2021 and tropicyclonenet_dataset.
+
+Registry Workflow
+~~~~~~~~~~~~~~~~~
+
+Primary dataset name: ``safnet_cma_era_interim_synthetic``
+
+.. code-block:: python
+
+ from pyhazards.datasets import load_dataset
+
+ data = load_dataset("safnet_cma_era_interim_synthetic", micro=True).load()
+ print(data.metadata["synthetic"]) # True
+
+Related Coverage
+~~~~~~~~~~~~~~~~
+
+**Benchmarks:** :doc:`Tropical Cyclone Benchmark `
+
+**Representative Models:** :doc:`SAF-Net `
+
+Inspection Workflow
+-------------------
+
+This dataset is currently surfaced as a registry-backed benchmark adapter,
+so there is no standalone inspection CLI documented for it.
+
+Notes
+-----
+
+- Bundle metadata carries synthetic=True, and benchmark results report it.
+
+Reference
+---------
+
+- `PyHazards synthetic smoke data (pyhazards/datasets/tc/synthetic.py) `_.
diff --git a/docs/source/datasets/seisbench_waveforms.rst b/docs/source/datasets/seisbench_waveforms.rst
index 5fb54c8f..3921d28e 100644
--- a/docs/source/datasets/seisbench_waveforms.rst
+++ b/docs/source/datasets/seisbench_waveforms.rst
@@ -1,16 +1,16 @@
.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
-SeisBench
-=========
+SeisBench-format Waveforms
+==========================
-Synthetic-backed waveform picking adapter aligned to the SeisBench ecosystem.
+Reader for labelled three-component waveform datasets in the SeisBench format (STEAD, INSTANCE, ETHZ, ... as distributed for SeisBench) and in STEAD's own CSV + HDF5 layout.
Overview
--------
-SeisBench is the public waveform adapter used by PyHazards for the earthquake picking path.
+``seisbench_waveforms`` reads real phase-picking datasets from disk: the SeisBench format (``metadata.csv`` + ``waveforms.hdf5``, optionally in chunks, with trace blocks ``$``) and the layout in which the STEAD authors distribute STEAD (``.csv`` + ``.hdf5``, one ``(6000, 3)`` E/N/Z array per trace). PyHazards implements the reader itself with ``h5py`` and ``csv``; SeisBench (GPL-3.0) is not imported. Its output equals SeisBench's ``WaveformDataset`` on a dataset written by SeisBench's ``WaveformDataWriter`` (``tests/oracle/test_seisbench_reader_oracle.py``).
-The current implementation is synthetic-backed, but it preserves the picking task shape, labels, and metrics expected by the shared earthquake evaluator.
+Nothing is downloaded or redistributed: STEAD is about 85 GB and INSTANCE's event waveforms about 160 GB. Download them from their providers (or with SeisBench, which converts them to its format) and pass the directory as ``path``.
At a Glance
-----------
@@ -20,54 +20,56 @@ At a Glance
:stub-columns: 1
* - Provider
- - SeisBench ecosystem surfaced through a PyHazards adapter
+ - Dataset authors (STEAD - Stanford; INSTANCE - INGV; others via SeisBench); read by PyHazards
* - Hazard Family
- Earthquake
* - Source Role
- Waveform Benchmark
* - Coverage
- - Benchmark-aligned earthquake phase-picking samples
+ - Dataset dependent (STEAD global; INSTANCE Italy)
* - Geometry
- - Multichannel waveform windows
+ - Three-component station waveform windows
* - Spatial Resolution
- - Benchmark-defined waveform channels and sample windows
+ - Single seismic stations
* - Temporal Resolution
- - Short waveform windows with phase-pick targets
+ - Dataset sampling rate (100 Hz for STEAD and INSTANCE)
* - Update Cadence
- - Generated locally for smoke and benchmark-alignment runs
+ - Static benchmark releases downloaded by the user
* - Period of Record
- - Synthetic-backed benchmark adapter
+ - Dataset dependent (see the dataset papers)
* - Formats
- - PyTorch tensors via the dataset registry
+ - metadata CSV + waveform HDF5
* - Registry Entry
- ``seisbench_waveforms``
Data Characteristics
--------------------
-- Multichannel waveform windows paired with P- and S-arrival sample targets.
-- Registry-backed benchmark adapter rather than a raw external waveform ingestion path.
-- Intended for phase-picking validation and smoke tests.
+- Inputs ``(n, 3, window)`` float32 in the dataset's component order (``metadata["component_order"]``, e.g. ``ZNE`` for SeisBench files, ``ENZ`` for STEAD's own files); the earthquake benchmark reorders channels to each model's order. Targets ``(n, 2)``: P and S arrival samples relative to the window start, NaN when a trace has no such arrival (noise traces) or it falls outside the window.
+- Splits follow the dataset's ``split`` column (``train`` / ``dev`` -> ``val`` / ``test``). STEAD's own files have no split: ``test_trace_names`` (e.g. EQTransformer's ``ModelsAndSampleData/test.npy``) selects the test traces and the rest are ``train``; without it all traces are ``test``.
+- Arrival columns are read in order of preference (``trace_p_arrival_sample``, ``trace_P_arrival_sample``, ``trace_P1_arrival_sample``, ``trace_Pg_arrival_sample``, ... and the S equivalents; ``p_arrival_sample`` / ``s_arrival_sample`` for STEAD files); ``phase_columns`` overrides the list.
+- Licences: STEAD and INSTANCE are CC BY 4.0 (STEAD repository LICENSE; INGV INSTANCE page and repository). Cite the dataset papers below when publishing results.
Typical Use Cases
~~~~~~~~~~~~~~~~~
-- PhaseNet and EQNet smoke tests.
-- Shared earthquake benchmark runs on picking tasks.
-- Regression checks for waveform-based seismic models.
+- Scoring PhaseNet, EQTransformer and GPD (official weights) with the ``earthquake.picking`` benchmark.
+- Training phase pickers on real labelled waveforms.
Access
------
Use the links below to access the upstream source or its public documentation.
-- `SeisBench paper `_
-- `SeisBench repository `_
+- `STEAD (download links and licence) `_
+- `INSTANCE (INGV) `_
+- `SeisBench data format `_
+- `SeisBench repository (GPL-3.0) `_
PyHazards Usage
---------------
-Use this adapter when you want the public SeisBench-aligned waveform surface exposed by the earthquake benchmark.
+Pair it with ``phasenet``, ``eqtransformer`` (60-s windows, ``window_samples=6000``) or ``gpd`` and the ``earthquake`` benchmark (``hazard_task=earthquake.picking``).
Registry Workflow
~~~~~~~~~~~~~~~~~
@@ -78,22 +80,29 @@ Primary dataset name: ``seisbench_waveforms``
from pyhazards.datasets import load_dataset
- data = load_dataset(
+ # A SeisBench-format directory (metadata.csv + waveforms.hdf5), e.g. SeisBench's copy of STEAD.
+ data = load_dataset("seisbench_waveforms", path="~/.seisbench/datasets/stead", max_traces=1000).load()
+
+ # STEAD as distributed by its authors (merged.csv + merged.hdf5) with EQTransformer's test split.
+ stead = load_dataset(
"seisbench_waveforms",
- micro=True,
- channels=3,
- length=256,
+ path="/data/STEAD",
+ preset="stead",
+ test_trace_names="/data/STEAD/test.npy",
).load()
+ test = stead.get_split("test")
+ print(test.inputs.shape, test.targets.shape) # (n, 3, 6000), (n, 2)
- train = data.get_split("train")
- print(train.inputs.shape, train.targets.shape)
+- ``window_samples`` / ``window_start`` cut a fixed window (zero-padded when a trace is shorter); traces of different lengths need it.
+- ``max_traces`` keeps the first rows of each split (``micro=True`` keeps 8); ``trace_category`` filters STEAD's ``earthquake_local`` / ``noise`` rows.
+- ``preset='instance'`` supplies INSTANCE's component order (E, N, Z) and 100 Hz when the files lack a ``data_format`` group.
Related Coverage
~~~~~~~~~~~~~~~~
-**Benchmarks:** :doc:`Earthquake Benchmark `, :doc:`SeisBench `
+**Benchmarks:** :doc:`Earthquake Benchmark `, :doc:`SeisBench `, :doc:`pick-benchmark `
-**Representative Models:** :doc:`PhaseNet `, :doc:`EQNet `
+**Representative Models:** :doc:`PhaseNet `, :doc:`EQTransformer `, :doc:`GPD `
Inspection Workflow
-------------------
@@ -104,9 +113,11 @@ so there is no standalone inspection CLI documented for it.
Notes
-----
-- This is a synthetic-backed benchmark adapter rather than a full SeisBench ingestion pipeline.
+- Until this release ``seisbench_waveforms`` and ``pick_benchmark_waveforms`` generated synthetic Gaussian pulses; the synthetic data is now ``earthquake_waveforms_synthetic``.
Reference
---------
-- `SeisBench - A Toolbox for Machine Learning in Seismology `_ (`repo `__).
+- `Woollam, J., Münchmeyer, J., Tilmann, F., et al. (2022). SeisBench - A Toolbox for Machine Learning in Seismology. Seismological Research Letters 93(3):1695-1709. `_ (`repo `__).
+- `Mousavi, S. M., Sheng, Y., Zhu, W., Beroza, G. C. (2019). STanford EArthquake Dataset (STEAD): A Global Data Set of Seismic Signals for AI. IEEE Access 7:179464-179476. `_ (`repo `__).
+- `Michelini, A., Cianetti, S., Gaviano, S., Giunchi, C., Jozinović, D., Lauciani, V. (2021). INSTANCE - the Italian seismic dataset for machine learning. Earth System Science Data 13:5509-5544. `_ (`repo `__).
diff --git a/docs/source/datasets/ships_xu2021.rst b/docs/source/datasets/ships_xu2021.rst
new file mode 100644
index 00000000..7a4102c9
--- /dev/null
+++ b/docs/source/datasets/ships_xu2021.rst
@@ -0,0 +1,108 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+SHIPS Predictors (Xu et al. 2021)
+=================================
+
+The standardised SHIPS predictor table of Xu et al. (2021) with 24-hour intensity-change targets, read into the official leave-one-year-out folds.
+
+Overview
+--------
+
+Each row holds the SHIPS predictors of one storm at one forecast time, standardised by the reanalysis standard deviation, with ``name``, ``year``, ``basin``, ``type`` (``rea`` reanalysis predictors or ``opr`` operational predictors) and the target ``dvs24``, the 24-hour change of the maximum sustained wind in knots.
+
+``ships_xu2021`` selects the 121 predictors of the paper's 24-hour model (``SHIPS_PREDICTORS``) and builds the fold of ``leave_out_year`` as the official ``load_loyo_data`` does for the MLP: training rows are reanalysis rows except Atlantic rows of that year, test rows are that year's operational rows, and a random 10 % of the training rows (seeded) is the validation split.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - Xu et al. (PNNL), "Supporting data for Xu et al. 2021 - Weather and Forecasting" (Zenodo 4784610, CC BY 4.0), built from the SHIPS developmental data (NHC / CIRA)
+ * - Hazard Family
+ - Tropical Cyclone
+ * - Source Role
+ - Intensity Benchmark
+ * - Coverage
+ - Atlantic test basin; global training basins (AL, EP, WP, SH, ...)
+ * - Geometry
+ - Tabular feature vectors
+ * - Spatial Resolution
+ - One row per storm and forecast time
+ * - Temporal Resolution
+ - Six-hourly forecast times
+ * - Update Cadence
+ - Static release (2021)
+ * - Period of Record
+ - Reanalysis predictors 1982-2017 (global basins); operational predictors 2010-2018 (Atlantic)
+ * - Formats
+ - CSV (train_global_fill_REA_na_wo_img_scaled.csv, 392 MB)
+ * - Registry Entry
+ - ``ships_xu2021``
+
+Data Characteristics
+--------------------
+
+- Inputs (samples, 121) float32 standardised predictors in the official order; targets (samples,) dvs24 in knots.
+- Split metadata gives each row's year (``groups``), storm name and basin; the benchmark reports MAE per test year.
+- Rows with a missing predictor or target are dropped (``drop_missing``).
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Training and evaluating the ``tropicalcyclone_mlp`` 24-hour intensity-change model (``tc.intensity`` task).
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+- `Zenodo record 4784610 (CC BY 4.0) `_
+- `tropicalcyclone_MLP repository `_
+
+PyHazards Usage
+---------------
+
+Score with the ``tc`` benchmark and ``hazard_task: tc.intensity`` (MAE / RMSE in knots, per test year).
+
+Registry Workflow
+~~~~~~~~~~~~~~~~~
+
+Primary dataset name: ``ships_xu2021``
+
+.. code-block:: python
+
+ from pyhazards.datasets import load_dataset
+
+ fold = load_dataset("ships_xu2021", path="train_global_fill_REA_na_wo_img_scaled.csv", leave_out_year=2018).load()
+ test = fold.get_split("test")
+ print(test.inputs.shape, test.targets.shape) # (cases, 121), (cases,)
+
+- The paper's leave-one-year-out test averages the folds 2010-2018 (2,464 Atlantic cases).
+
+Related Coverage
+~~~~~~~~~~~~~~~~
+
+**Benchmarks:** :doc:`Tropical Cyclone Benchmark `
+
+**Representative Models:** :doc:`Tropical Cyclone MLP `
+
+Inspection Workflow
+-------------------
+
+This dataset is currently surfaced as a registry-backed benchmark adapter,
+so there is no standalone inspection CLI documented for it.
+
+Notes
+-----
+
+- The official loyo_testing.py reads a ``..._w2020.csv`` variant that is not in the Zenodo record. The independent 2019 / 2020 operational files of the record are not standardised and are not read.
+- PyHazards never redistributes the table; tests use ten real rows cut from it (tests/fixtures/ships_xu2021).
+
+Reference
+---------
+
+- `Xu, W., K. Balaguru, A. August, N. Lalo, N. Hodas, M. DeMaria and D. Judi (2021). Deep Learning Experiments for Tropical Cyclone Intensity Forecasts. Weather and Forecasting 36(4), 1453-1470. `_.
+- `Xu, W., et al. (2021). Supporting data for Xu et al. 2021 - Weather and Forecasting (Version 1). Zenodo. `_.
diff --git a/docs/source/datasets/ships_xu2021_synthetic.rst b/docs/source/datasets/ships_xu2021_synthetic.rst
new file mode 100644
index 00000000..dee904d7
--- /dev/null
+++ b/docs/source/datasets/ships_xu2021_synthetic.rst
@@ -0,0 +1,97 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+Synthetic SHIPS Predictors
+==========================
+
+Random inputs in the layout of ships_xu2021 (121 predictors, 24-hour intensity change in knots) for smoke tests of tropicalcyclone_mlp.
+
+Overview
+--------
+
+Synthetic data. Every value is a random number; nothing in it describes real tropical cyclones and scores on it mean nothing. It exists so that smoke tests and CI can run the models and the cyclone benchmark without downloading data.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - PyHazards (generated in memory; no real storms)
+ * - Hazard Family
+ - Tropical Cyclone
+ * - Source Role
+ - Synthetic Smoke Data
+ * - Coverage
+ - None (synthetic)
+ * - Geometry
+ - Tabular feature vectors
+ * - Spatial Resolution
+ - Not applicable (random numbers)
+ * - Temporal Resolution
+ - Not applicable (random numbers)
+ * - Update Cadence
+ - Generated on every load
+ * - Period of Record
+ - None (synthetic)
+ * - Formats
+ - PyTorch tensors via the dataset registry
+ * - Registry Entry
+ - ``ships_xu2021_synthetic``
+
+Data Characteristics
+--------------------
+
+- (samples, 121) standard-normal inputs; targets are a fixed random linear function of two inputs plus noise, rounded, labelled knots; test years 2017 / 2018 alternate.
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Smoke tests and CI runs of the linked models and of the cyclone benchmark.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+
+PyHazards Usage
+---------------
+
+Use only for smoke tests; real data are ibtracs_tracks, ships_xu2021 and tropicyclonenet_dataset.
+
+Registry Workflow
+~~~~~~~~~~~~~~~~~
+
+Primary dataset name: ``ships_xu2021_synthetic``
+
+.. code-block:: python
+
+ from pyhazards.datasets import load_dataset
+
+ data = load_dataset("ships_xu2021_synthetic", micro=True).load()
+ print(data.metadata["synthetic"]) # True
+
+Related Coverage
+~~~~~~~~~~~~~~~~
+
+**Benchmarks:** :doc:`Tropical Cyclone Benchmark `
+
+**Representative Models:** :doc:`Tropical Cyclone MLP `
+
+Inspection Workflow
+-------------------
+
+This dataset is currently surfaced as a registry-backed benchmark adapter,
+so there is no standalone inspection CLI documented for it.
+
+Notes
+-----
+
+- Bundle metadata carries synthetic=True, and benchmark results report it.
+
+Reference
+---------
+
+- `PyHazards synthetic smoke data (pyhazards/datasets/tc/synthetic.py) `_.
diff --git a/docs/source/datasets/tc_tracks_synthetic.rst b/docs/source/datasets/tc_tracks_synthetic.rst
new file mode 100644
index 00000000..b2f018b7
--- /dev/null
+++ b/docs/source/datasets/tc_tracks_synthetic.rst
@@ -0,0 +1,97 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+Synthetic Storm Histories
+=========================
+
+Random storm-history features and lat / lon / intensity targets for smoke tests of the generic experimental storm adapters (hurricast, tcif_fusion).
+
+Overview
+--------
+
+Synthetic data. Every value is a random number; nothing in it describes real tropical cyclones and scores on it mean nothing. It exists so that smoke tests and CI can run the models and the cyclone benchmark without downloading data.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - PyHazards (generated in memory; no real storms)
+ * - Hazard Family
+ - Tropical Cyclone
+ * - Source Role
+ - Synthetic Smoke Data
+ * - Coverage
+ - None (synthetic)
+ * - Geometry
+ - Storm-track history sequences
+ * - Spatial Resolution
+ - Not applicable (random numbers)
+ * - Temporal Resolution
+ - Not applicable (random numbers)
+ * - Update Cadence
+ - Generated on every load
+ * - Period of Record
+ - None (synthetic)
+ * - Formats
+ - PyTorch tensors via the dataset registry
+ * - Registry Entry
+ - ``tc_tracks_synthetic``
+
+Data Characteristics
+--------------------
+
+- (samples, history=6, features=8) standard-normal inputs; targets (samples, horizon=5, 3) are the last step's first three features plus a fixed drift, labelled lat, lon and wind with lead times 6-30 h.
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Smoke tests and CI runs of the linked models and of the cyclone benchmark.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+
+PyHazards Usage
+---------------
+
+Use only for smoke tests; real data are ibtracs_tracks, ships_xu2021 and tropicyclonenet_dataset.
+
+Registry Workflow
+~~~~~~~~~~~~~~~~~
+
+Primary dataset name: ``tc_tracks_synthetic``
+
+.. code-block:: python
+
+ from pyhazards.datasets import load_dataset
+
+ data = load_dataset("tc_tracks_synthetic", micro=True).load()
+ print(data.metadata["synthetic"]) # True
+
+Related Coverage
+~~~~~~~~~~~~~~~~
+
+**Benchmarks:** :doc:`Tropical Cyclone Benchmark `
+
+**Representative Models:** :doc:`Hurricast `, :doc:`TCIF-fusion `
+
+Inspection Workflow
+-------------------
+
+This dataset is currently surfaced as a registry-backed benchmark adapter,
+so there is no standalone inspection CLI documented for it.
+
+Notes
+-----
+
+- Bundle metadata carries synthetic=True, and benchmark results report it.
+
+Reference
+---------
+
+- `PyHazards synthetic smoke data (pyhazards/datasets/tc/synthetic.py) `_.
diff --git a/docs/source/datasets/tcbench_alpha.rst b/docs/source/datasets/tcbench_alpha.rst
index a0989b29..cb54ec8b 100644
--- a/docs/source/datasets/tcbench_alpha.rst
+++ b/docs/source/datasets/tcbench_alpha.rst
@@ -3,14 +3,14 @@
TCBench Alpha
=============
-Synthetic-backed storm-track benchmark adapter aligned to the TCBench Alpha ecosystem.
+Weather-model cyclone tracks (Pangu-Weather, FourCastNet v2, AIFS; 2023) matched to IBTrACS, with the raw forecast fields they were tracked in; read by pyhazards.forecasts at a pinned revision.
Overview
--------
-TCBench Alpha is the public storm adapter used by several tropical cyclone baselines on the shared track-intensity evaluator.
+TCBench provides data-processing tools, evaluation protocols and baselines to compare tropical cyclone forecasts: tracks extracted from numerical and data-driven weather models with TempestExtremes are matched with IBTrACS best tracks and scored by lead time.
-The current implementation is synthetic-backed, but it preserves the task, metric, and reporting surface used by the shared tropical cyclone benchmark.
+``pyhazards.forecasts.tcbench`` reads the released ``matched_tracks`` and ``unmatched_tracks`` files and, with HTTP range requests, only the variables a tracker needs from the raw forecast files. ``pyhazards.forecasts.tempest`` reproduces TCBench's TempestExtremes tracks from those fields byte for byte, and ``score_forecast_tracks(..., protocol="tcbench")`` its evaluation.
At a Glance
-----------
@@ -20,41 +20,39 @@ At a Glance
:stub-columns: 1
* - Provider
- - TCBench Alpha ecosystem surfaced through a PyHazards adapter
+ - TCBench project (Gomez et al.), MIT-licensed code and data on the Hugging Face Hub (TCBench/TCBench)
* - Hazard Family
- Tropical Cyclone
* - Source Role
- Track Benchmark
* - Coverage
- - Benchmark-aligned tropical cyclone track and intensity samples
+ - Global tropical cyclones present in IBTrACS
* - Geometry
- - Storm-track history sequences
+ - Storm-track tables and global gridded forecast fields
* - Spatial Resolution
- - Storm-centered best-track sequences
+ - 0.25-degree global fields; track points on that grid
* - Temporal Resolution
- - Historical track windows with forecast horizons
+ - Six-hourly forecast steps to 120 h, initialised at 00 and 12 UTC
* - Update Cadence
- - Generated locally for smoke and benchmark-alignment runs
+ - Static release (PyHazards pins revision 0124d14d)
* - Period of Record
- - Synthetic-backed benchmark adapter
+ - 2023 forecasts (TCBench's test year)
* - Formats
- - PyTorch tensors via the dataset registry
- * - Registry Entry
- - ``tcbench_alpha``
+ - CSV track tables (matched_tracks, unmatched_tracks) and netCDF4 forecast fields (about 3 GB per forecast)
Data Characteristics
--------------------
-- Storm-history sequences with future latitude, longitude, and intensity targets.
-- Registry-backed benchmark adapter rather than a raw external benchmark ingestion path.
-- Intended for benchmark-linked track-intensity forecasting runs.
+- matched_tracks/2023_.csv: SID, Initial Time, Valid Time, wind max (m/s in the released files), pressure min (Pa), lat, lon.
+- unmatched_tracks: TempestExtremes StitchNodes CSV per forecast (track_id, time, grid indices, lon, lat, slp, wind10).
+- neural_weather_models: int16-packed netCDF4 fields (msl, u10, v10, t2m and u, v, z, t, q on 13 levels for Pangu-Weather) for lead times 6-120 h.
+- TCBench's evaluation reads IBTrACS LAT / LON as float16, which shifts its position errors by up to several km; the tcbench protocol reproduces this.
Typical Use Cases
~~~~~~~~~~~~~~~~~
-- Tropical Cyclone MLP, SAF-Net, and TCIF-fusion smoke tests.
-- Shared tropical cyclone benchmark runs.
-- Regression checks for storm-track baselines.
+- Scoring weather-model cyclone tracks against IBTrACS with TCBench's protocol.
+- Re-tracking published weather-model forecasts with other trackers (e.g. the ECMWF-style tracker of the Pangu-Weather and GraphCast papers).
Access
------
@@ -62,50 +60,33 @@ Access
Use the links below to access the upstream source or its public documentation.
- `TCBench Alpha repository `_
+- `TCBench data on the Hugging Face Hub `_
PyHazards Usage
---------------
-Use this adapter when you want the public TCBench Alpha-aligned storm surface exposed by the tropical cyclone benchmark.
-
-Registry Workflow
-~~~~~~~~~~~~~~~~~
-
-Primary dataset name: ``tcbench_alpha``
-
-.. code-block:: python
-
- from pyhazards.datasets import load_dataset
-
- data = load_dataset(
- "tcbench_alpha",
- micro=True,
- history=6,
- horizon=5,
- ).load()
-
- train = data.get_split("train")
- print(train.inputs.shape, train.targets.shape)
+Not a registered dataset: the tracks are forecasts, not training data. Use ``pyhazards.forecasts.read_tcbench_matched_tracks`` / ``read_tcbench_fields`` and score with ``pyhazards.forecasts.score_forecast_tracks`` against IBTrACS (see the Foundation Weather Models page).
Related Coverage
~~~~~~~~~~~~~~~~
**Benchmarks:** :doc:`Tropical Cyclone Benchmark `, :doc:`TCBench Alpha `
-**Representative Models:** :doc:`Tropical Cyclone MLP `, :doc:`SAF-Net `, :doc:`TCIF-fusion `
-
Inspection Workflow
-------------------
-This dataset is currently surfaced as a registry-backed benchmark adapter,
-so there is no standalone inspection CLI documented for it.
+PyHazards has no inspection command or loader for this source; it is listed
+as an external reference. Use the provider's access links above.
Notes
-----
-- This is a synthetic-backed benchmark adapter rather than a full TCBench Alpha ingestion pipeline.
+- The repository and the Hugging Face dataset are MIT-licensed (Copyright (c) 2023 Milton Gomez).
+- The Pangu-Weather forecasts derive from weights licensed CC BY-NC-SA 4.0 (non-commercial use only).
+- TCBench's "FourCastNet v2" is NVIDIA's SFNO-small, not the FourCastNet (AFNO) of Pathak et al. 2022.
Reference
---------
-- `TCBench Alpha `_.
+- `Gomez, M. et al. (2026). TCBench: A Benchmark for Tropical Cyclone Track and Intensity Forecasting at the Global Scale. arXiv:2601.23268. `_.
+- `TCBench Alpha (repository and documentation) `_.
diff --git a/docs/source/datasets/tcif_fusion_synthetic.rst b/docs/source/datasets/tcif_fusion_synthetic.rst
new file mode 100644
index 00000000..b6dec7a0
--- /dev/null
+++ b/docs/source/datasets/tcif_fusion_synthetic.rst
@@ -0,0 +1,97 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+Synthetic TCIF-fusion Inputs
+============================
+
+Random inputs in the TCIF-fusion layout (ERA5 U, V, W, SST, ALL, 30 history features, infrared images; channels last) for smoke tests of tcif_fusion.
+
+Overview
+--------
+
+Synthetic data. Every value is a random number; nothing in it describes real tropical cyclones and scores on it mean nothing. It exists so that smoke tests and CI can run tcif_fusion and the cyclone benchmark; the paper's inputs (CMA best track, ERA5, GridSat-B1) have no PyHazards reader yet.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - PyHazards (generated in memory; no real storms)
+ * - Hazard Family
+ - Tropical Cyclone
+ * - Source Role
+ - Synthetic Smoke Data
+ * - Coverage
+ - None (synthetic)
+ * - Geometry
+ - Gridded fields, images and feature vectors
+ * - Spatial Resolution
+ - Not applicable (random numbers)
+ * - Temporal Resolution
+ - Not applicable (random numbers)
+ * - Update Cadence
+ - Generated on every load
+ * - Period of Record
+ - None (synthetic)
+ * - Formats
+ - PyTorch tensors via the dataset registry
+ * - Registry Entry
+ - ``tcif_fusion_synthetic``
+
+Data Characteristics
+--------------------
+
+- u, v, w (N, grid, grid, 5, 4), sst (N, grid, grid, 5, 1), all (their concatenation, 65 channels), his (N, 30), ir (N, ir_size, ir_size, 5); targets uniform 10-70 m/s. The defaults are the paper's sizes (grid 25, IR 224); the smoke config uses grid 9 and IR 32 with a small model.
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Smoke tests and CI runs of tcif_fusion and of the cyclone benchmark.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+
+PyHazards Usage
+---------------
+
+Use only for smoke tests.
+
+Registry Workflow
+~~~~~~~~~~~~~~~~~
+
+Primary dataset name: ``tcif_fusion_synthetic``
+
+.. code-block:: python
+
+ from pyhazards.datasets import load_dataset
+
+ data = load_dataset("tcif_fusion_synthetic", micro=True, grid_size=9, ir_size=32).load()
+ print(data.metadata["synthetic"]) # True
+
+Related Coverage
+~~~~~~~~~~~~~~~~
+
+**Benchmarks:** :doc:`Tropical Cyclone Benchmark `
+
+**Representative Models:** :doc:`TCIF-fusion `
+
+Inspection Workflow
+-------------------
+
+This dataset is currently surfaced as a registry-backed benchmark adapter,
+so there is no standalone inspection CLI documented for it.
+
+Notes
+-----
+
+- Bundle metadata carries synthetic=True, and benchmark results report it.
+
+Reference
+---------
+
+- `PyHazards synthetic smoke data (pyhazards/datasets/tc/synthetic.py) `_.
diff --git a/docs/source/datasets/tropicyclonenet_dataset.rst b/docs/source/datasets/tropicyclonenet_dataset.rst
index 41508b57..2ec92192 100644
--- a/docs/source/datasets/tropicyclonenet_dataset.rst
+++ b/docs/source/datasets/tropicyclonenet_dataset.rst
@@ -1,16 +1,16 @@
.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
-TropiCycloneNet-Dataset
+TropiCycloneNet Dataset
=======================
-Synthetic-backed storm-track benchmark adapter aligned to the TropiCycloneNet-Dataset ecosystem.
+The TropiCycloneNet Dataset (TCND) of Huang et al. (2025) - best tracks, environmental features and ERA5 500 hPa geopotential for 3,630 storms in six basins - read in the layout of the official TropiCycloneNet loader.
Overview
--------
-TropiCycloneNet-Dataset is the public storm adapter used by the TropiCycloneNet model path on the shared track-intensity evaluator.
+TCND combines Data1d (best-track position, central pressure and 2-minute maximum wind, normalised), Data3d (ERA5 geopotential, wind and SST around the storm) and Env-Data (intensity class, motion, month, location bins, 12/24-hour motion direction, 24-hour intensity change). It is the training and test data of the TropiCycloneNet model.
-The current implementation is synthetic-backed, but it preserves the task, metric, and reporting surface used by the shared tropical cyclone benchmark.
+``tropicyclonenet_dataset`` builds samples exactly like the official ``TrajectoryDataset`` and ``seq_collate`` (checked by an oracle test): windows of 8 observed and 4 future six-hourly steps, the observed track and its steps, Env-Data per observed step and 64 x 64 scaled 500 hPa geopotential frames; targets are the future latitude, longitude, pressure (hPa) and wind (m/s).
At a Glance
-----------
@@ -20,53 +20,55 @@ At a Glance
:stub-columns: 1
* - Provider
- - TropiCycloneNet-Dataset ecosystem surfaced through a PyHazards adapter
+ - Huang et al. (authors of the TropiCycloneNet paper), Zenodo releases under CC BY 4.0
* - Hazard Family
- Tropical Cyclone
* - Source Role
- Track Benchmark
* - Coverage
- - Benchmark-aligned tropical cyclone track and intensity samples
+ - Six basins (EP, NA, NI, SI, SP, WP)
* - Geometry
- Storm-track history sequences
* - Spatial Resolution
- - Storm-centered best-track sequences
+ - Storm-centre positions (0.1 degree); 20 x 20 degree ERA5 crops at 0.25 degree
* - Temporal Resolution
- - Historical track windows with forecast horizons
+ - Six-hourly
* - Update Cadence
- - Generated locally for smoke and benchmark-alignment runs
+ - Static releases (Zenodo 15009527 dataset, 17104690 training data)
* - Period of Record
- - Synthetic-backed benchmark adapter
+ - 1950-2023 (paper experiments 1950-2016 train / validation, 2017-2021 test)
* - Formats
- - PyTorch tensors via the dataset registry
+ - Tab-separated Data1d text files, pickled Env-Data .npy dicts, GPH .npy crops (and Data3d netCDF)
* - Registry Entry
- ``tropicyclonenet_dataset``
Data Characteristics
--------------------
-- Storm-history sequences with future latitude, longitude, and intensity targets.
-- Registry-backed benchmark adapter rather than a raw external dataset ingestion path.
-- Intended for benchmark-linked storm forecasting smoke runs.
+- Expected layout (the official loader's names under ``root``): ``BST_data///BST.txt``, ``Env_data////.npy`` and ``ERA5_gph500////.npy``; the Zenodo training-data archives extract to ``bst_divi10_train_val_test_inlcude15_2023``, ``all_area_correct_location_includeunder15_2023`` and ``all_ocean_gph500_2023`` (pass them as ``data1d_dir``, ``env_dir`` and ``gph_dir``).
+- Normalisation of Data1d: longitude = 5 x + 180 degrees east, latitude = 5 y, pressure = 50 p + 960 hPa, wind = 25 w + 40 m/s. GPH crops (100 x 100) are resized to 64 x 64 bilinearly and scaled with the range (44490.578125, 58768.4486860389), clipped to [0, 1].
+- Env-Data features that are not yet defined (value -1, e.g. the 24-hour history at a track's start) are replaced by the first defined value in the window, as the official loader does. The Env-Data files also contain future-looking keys (future_direction24, future_inte_change24), which are not read.
+- The whole requested split is loaded into memory (about 0.13 MB per sample); restrict ``areas``, ``splits`` or ``max_samples`` for large runs. Env-Data files are pickled numpy objects (loaded with allow_pickle); only read files from the official release.
Typical Use Cases
~~~~~~~~~~~~~~~~~
-- TropiCycloneNet smoke tests.
-- Shared tropical cyclone benchmark runs.
-- Regression checks for track-intensity prediction models.
+- Training and evaluating TropiCycloneNet (``tropicyclonenet``) with its official inputs.
+- Multi-basin track and intensity forecasting at 6-24 h scored with the cyclone benchmark.
Access
------
Use the links below to access the upstream source or its public documentation.
+- `TCND on Zenodo (10.5281/zenodo.15009527) `_
+- `TCN_M training data on Zenodo (record 17104690) `_
- `TropiCycloneNet-Dataset repository `_
PyHazards Usage
---------------
-Use this adapter when you want the public TropiCycloneNet-Dataset-aligned storm surface exposed by the tropical cyclone benchmark.
+Score ``tropicyclonenet`` (or any model with a ``forecast`` method returning lat / lon / pres / wind) with the ``tc`` benchmark; sampled forecasts get the paper's best-of-k errors and sample-mean errors.
Registry Workflow
~~~~~~~~~~~~~~~~~
@@ -79,18 +81,22 @@ Primary dataset name: ``tropicyclonenet_dataset``
data = load_dataset(
"tropicyclonenet_dataset",
- micro=True,
- history=6,
- horizon=5,
+ data1d_dir="TCND/bst_divi10_train_val_test_inlcude15_2023",
+ env_dir="TCND/all_area_correct_location_includeunder15_2023",
+ gph_dir="TCND/all_ocean_gph500_2023",
+ areas=["WP"],
+ splits=["test"],
).load()
+ test = data.get_split("test")
+ print(test.inputs["obs_traj"].shape, test.inputs["image_obs"].shape, test.targets.shape)
- train = data.get_split("train")
- print(train.inputs.shape, train.targets.shape)
+- Inputs are a dict: obs_traj / obs_traj_rel (8, N, 4), image_obs (N, 1, 8, 64, 64), env_data (nine arrays (N, 8, width)); targets (N, 4, 4) = lat, lon, pres, wind at 6-24 h.
+- root= is accepted when the three folders are named BST_data, Env_data and ERA5_gph500.
Related Coverage
~~~~~~~~~~~~~~~~
-**Benchmarks:** :doc:`Tropical Cyclone Benchmark `, :doc:`TropiCycloneNet-Dataset `
+**Benchmarks:** :doc:`Tropical Cyclone Benchmark `, :doc:`TropiCycloneNet Dataset `
**Representative Models:** :doc:`TropiCycloneNet `
@@ -103,9 +109,9 @@ so there is no standalone inspection CLI documented for it.
Notes
-----
-- This is a synthetic-backed benchmark adapter rather than a full TropiCycloneNet-Dataset downloader.
+- Licence: the Zenodo releases are CC BY 4.0 (the GitHub dataset repository has no LICENSE file although its README mentions MIT). PyHazards never redistributes the data; tests use one storm's real Data1d and Env-Data files (EP 2018 Carlotta, tests/fixtures/tcnd) and generated geopotential crops of the real shape.
Reference
---------
-- `TropiCycloneNet-Dataset `_.
+- `Huang, C., P. Mu, J. Zhang, S. Chan, S. Zhang, H. Yan, S. Chen and C. Bai (2025). Benchmark dataset and deep learning method for global tropical cyclone forecasting. Nature Communications 16, 5923. `_.
diff --git a/docs/source/datasets/tropicyclonenet_dataset_synthetic.rst b/docs/source/datasets/tropicyclonenet_dataset_synthetic.rst
new file mode 100644
index 00000000..9661b8b8
--- /dev/null
+++ b/docs/source/datasets/tropicyclonenet_dataset_synthetic.rst
@@ -0,0 +1,97 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+Synthetic TCND Samples
+======================
+
+Random inputs in the TropiCycloneNet (TCND) layout with random-walk targets for smoke tests of tropicyclonenet.
+
+Overview
+--------
+
+Synthetic data. Every value is a random number; nothing in it describes real tropical cyclones and scores on it mean nothing. It exists so that smoke tests and CI can run the models and the cyclone benchmark without downloading data.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - PyHazards (generated in memory; no real storms)
+ * - Hazard Family
+ - Tropical Cyclone
+ * - Source Role
+ - Synthetic Smoke Data
+ * - Coverage
+ - None (synthetic)
+ * - Geometry
+ - Storm-track history sequences
+ * - Spatial Resolution
+ - Not applicable (random numbers)
+ * - Temporal Resolution
+ - Not applicable (random numbers)
+ * - Update Cadence
+ - Generated on every load
+ * - Period of Record
+ - None (synthetic)
+ * - Formats
+ - PyTorch tensors via the dataset registry
+ * - Registry Entry
+ - ``tropicyclonenet_dataset_synthetic``
+
+Data Characteristics
+--------------------
+
+- obs_traj / obs_traj_rel (8, N, 4) normalised random walks, image_obs (N, 1, 8, 64, 64) uniform, env_data random one-hot features; targets (N, 4, 4) lat, lon, pressure (hPa) and wind (m/s) continuing the walk.
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Smoke tests and CI runs of the linked models and of the cyclone benchmark.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+
+PyHazards Usage
+---------------
+
+Use only for smoke tests; real data are ibtracs_tracks, ships_xu2021 and tropicyclonenet_dataset.
+
+Registry Workflow
+~~~~~~~~~~~~~~~~~
+
+Primary dataset name: ``tropicyclonenet_dataset_synthetic``
+
+.. code-block:: python
+
+ from pyhazards.datasets import load_dataset
+
+ data = load_dataset("tropicyclonenet_dataset_synthetic", micro=True).load()
+ print(data.metadata["synthetic"]) # True
+
+Related Coverage
+~~~~~~~~~~~~~~~~
+
+**Benchmarks:** :doc:`Tropical Cyclone Benchmark `
+
+**Representative Models:** :doc:`TropiCycloneNet `
+
+Inspection Workflow
+-------------------
+
+This dataset is currently surfaced as a registry-backed benchmark adapter,
+so there is no standalone inspection CLI documented for it.
+
+Notes
+-----
+
+- Bundle metadata carries synthetic=True, and benchmark results report it.
+
+Reference
+---------
+
+- `PyHazards synthetic smoke data (pyhazards/datasets/tc/synthetic.py) `_.
diff --git a/docs/source/datasets/urbanfloodcast_synthetic.rst b/docs/source/datasets/urbanfloodcast_synthetic.rst
new file mode 100644
index 00000000..092e744c
--- /dev/null
+++ b/docs/source/datasets/urbanfloodcast_synthetic.rst
@@ -0,0 +1,98 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+Synthetic Urban Flood Events
+============================
+
+Random urban flood events in the UrbanFloodCast one-shot layout (current state, rainfall and terrain in; depth and discharges of 24 steps out), for smoke tests of urbanfloodcast.
+
+Overview
+--------
+
+Synthetic data. Each event is a random rain pulse on a tilted random terrain with NaN "buildings"; scores on it mean nothing. The events go through ``prepare_urbanfloodcast_event``, the official UrbanFloodCast one-shot preparation (checked against the official ``flood_data``), so the inputs ``(n, Sy, Sx, 24, 1, 5)``, targets ``(n, Sy, Sx, 24, 3)`` and NaN mask have the layout of the real benchmark. PyHazards has no reader for the Berlin GeoTIFFs yet (Zenodo 10.5281/zenodo.15700880).
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - PyHazards (generated in memory; no real flood)
+ * - Hazard Family
+ - Flood
+ * - Source Role
+ - Synthetic Smoke Data
+ * - Coverage
+ - None (synthetic)
+ * - Geometry
+ - Raster inundation sequences
+ * - Spatial Resolution
+ - Not applicable (32 x 32 synthetic cells)
+ * - Temporal Resolution
+ - Not applicable (24 synthetic output steps)
+ * - Update Cadence
+ - Generated on every load
+ * - Period of Record
+ - None (synthetic)
+ * - Formats
+ - PyTorch tensors via the dataset registry
+ * - Registry Entry
+ - ``urbanfloodcast_synthetic``
+
+Data Characteristics
+--------------------
+
+- Inputs per cell and step: depth, x / y unit discharge at the start (repeated), log(1 + rain / 0.01) / 10, terrain L2-normalised along x; targets: depth, x / y unit discharge; the mask is in ``split.metadata['mask']``.
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Smoke tests and CI runs of urbanfloodcast and of the ``flood.inundation`` raster evaluation.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+- `UrbanFloodCast benchmark dataset (Zenodo, real data, not read by PyHazards) `_
+
+PyHazards Usage
+---------------
+
+Use only for smoke tests.
+
+Registry Workflow
+~~~~~~~~~~~~~~~~~
+
+Primary dataset name: ``urbanfloodcast_synthetic``
+
+.. code-block:: python
+
+ from pyhazards.datasets import load_dataset
+
+ data = load_dataset("urbanfloodcast_synthetic", micro=True).load()
+ print(data.get_split("train").inputs.shape) # (2, 32, 32, 24, 1, 5)
+
+Related Coverage
+~~~~~~~~~~~~~~~~
+
+**Benchmarks:** :doc:`Flood Benchmark `
+
+**Representative Models:** :doc:`UrbanFloodCast `
+
+Inspection Workflow
+-------------------
+
+This dataset is currently surfaced as a registry-backed benchmark adapter,
+so there is no standalone inspection CLI documented for it.
+
+Notes
+-----
+
+- Bundle metadata carries synthetic=True.
+
+Reference
+---------
+
+- `PyHazards synthetic smoke data (pyhazards/datasets/flood/urbanfloodcast.py) `_.
diff --git a/docs/source/datasets/waterbench_streamflow.rst b/docs/source/datasets/waterbench_streamflow.rst
deleted file mode 100644
index e9530966..00000000
--- a/docs/source/datasets/waterbench_streamflow.rst
+++ /dev/null
@@ -1,112 +0,0 @@
-.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
-
-WaterBench
-==========
-
-Synthetic-backed streamflow benchmark adapter aligned to the WaterBench ecosystem.
-
-Overview
---------
-
-WaterBench is the public flood streamflow adapter used by the EA-LSTM path on the shared flood benchmark.
-
-The current implementation is synthetic-backed, but it preserves the streamflow forecasting contract expected by the shared evaluator.
-
-At a Glance
------------
-
-.. list-table::
- :widths: 28 72
- :stub-columns: 1
-
- * - Provider
- - WaterBench ecosystem surfaced through a PyHazards adapter
- * - Hazard Family
- - Flood
- * - Source Role
- - Streamflow Benchmark
- * - Coverage
- - Benchmark-aligned streamflow forecasting samples
- * - Geometry
- - Graph-temporal basin or node sequences
- * - Spatial Resolution
- - Basin or gauge nodes represented as graph elements
- * - Temporal Resolution
- - Rolling history windows for streamflow prediction
- * - Update Cadence
- - Generated locally for smoke and benchmark-alignment runs
- * - Period of Record
- - Synthetic-backed benchmark adapter
- * - Formats
- - PyTorch graph-temporal dataset objects via the dataset registry
- * - Registry Entry
- - ``waterbench_streamflow``
-
-Data Characteristics
---------------------
-
-- Graph-temporal sequences with node-level targets for next-step streamflow prediction.
-- Registry-backed benchmark adapter rather than a raw WaterBench ingestion pipeline.
-- Intended for benchmark-linked streamflow smoke runs.
-
-Typical Use Cases
-~~~~~~~~~~~~~~~~~
-
-- EA-LSTM smoke tests.
-- Shared flood benchmark runs with streamflow metrics.
-- Regression checks for basin-scale forecasting experiments.
-
-Access
-------
-
-Use the links below to access the upstream source or its public documentation.
-
-- `WaterBench abstract `_
-- `WaterBench repository `_
-
-PyHazards Usage
----------------
-
-Use this adapter when you want the public WaterBench-aligned streamflow surface exposed by the flood benchmark.
-
-Registry Workflow
-~~~~~~~~~~~~~~~~~
-
-Primary dataset name: ``waterbench_streamflow``
-
-.. code-block:: python
-
- from pyhazards.datasets import load_dataset
-
- data = load_dataset(
- "waterbench_streamflow",
- micro=True,
- history=4,
- nodes=6,
- ).load()
-
- train = data.get_split("train")
- print(len(train.inputs), train.inputs[0].x.shape)
-
-Related Coverage
-~~~~~~~~~~~~~~~~
-
-**Benchmarks:** :doc:`Flood Benchmark `, :doc:`WaterBench `
-
-**Representative Models:** :doc:`EA-LSTM `
-
-Inspection Workflow
--------------------
-
-This dataset is currently surfaced as a registry-backed benchmark adapter,
-so there is no standalone inspection CLI documented for it.
-
-Notes
------
-
-- This is a synthetic-backed benchmark adapter rather than a full WaterBench downloader.
-
-Reference
----------
-
-- `WaterBench: A Large-scale Benchmark Dataset for Data-driven Streamflow Forecasting `_ (`repo `__).
diff --git a/docs/source/datasets/wildfire_track_o.rst b/docs/source/datasets/wildfire_track_o.rst
new file mode 100644
index 00000000..fa06f8c2
--- /dev/null
+++ b/docs/source/datasets/wildfire_track_o.rst
@@ -0,0 +1,120 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+Track-O Wildfire Occurrence
+===========================
+
+Daily fire / no-fire grids from NASA FIRMS detections with gridded weather and LANDFIRE fuel covariates, built locally for gridded wildfire-danger experiments.
+
+Overview
+--------
+
+Track-O ("occurrence") is the real-data wildfire setting contributed in PyHazards PR #33: on a daily latitude-longitude grid, predict whether a cell has at least one satellite fire detection on a day from that day's weather (and, in the temporal layout, the preceding days) and a static fuel layer.
+
+``scripts/build_wildfire_track_o_cache.py`` turns NASA FIRMS active-fire CSVs, daily weather NetCDF files and an optional LANDFIRE fuel-model GeoTIFF into a cache of per-day NumPy arrays; the three registered datasets read that cache as raster, temporal or tabular samples.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - PyHazards cache builder (PR #33, runyangxu) over NASA FIRMS, MERRA-2 or other gridded weather, and LANDFIRE
+ * - Hazard Family
+ - Wildfire
+ * - Source Role
+ - Occurrence Benchmark
+ * - Coverage
+ - The weather grid's extent (global for MERRA-2); the LANDFIRE fuel layer covers the conterminous United States only
+ * - Geometry
+ - Daily latitude-longitude grids
+ * - Spatial Resolution
+ - That of the weather grid (0.5 deg x 0.625 deg for MERRA-2), optionally subsampled
+ * - Temporal Resolution
+ - Daily (UTC days)
+ * - Update Cadence
+ - Built by the user from downloaded source files; PyHazards downloads nothing for it
+ * - Period of Record
+ - Any period covered by the user's weather and FIRMS files; the default split is calendar year 2024
+ * - Formats
+ - NetCDF weather, FIRMS CSV and LANDFIRE GeoTIFF inputs; NumPy .npy cache
+ * - Registry Entry
+ - ``wildfire_track_o_raster``
+
+Data Characteristics
+--------------------
+
+- Label: 1 where at least one FIRMS detection falls nearest to the cell centre on that UTC day (``acq_date``). By default only FIRMS ``type`` 0 (presumed vegetation fire) is kept, which drops volcanoes, other static land sources and offshore detections. ``type`` exists only in the standard-quality (archive) files, so near-real-time files are used unfiltered; detections outside the grid are ignored.
+- Weather: daily means of the requested variables, by default the 14 MERRA-2 surface variables T2M, QV2M, TQV, U10M, V10M, GWETROOT, TS, LAI, EFLUX, HFLUX, SWGNT, SWTNT, LWGAB and LWGEM, standardised with training-split statistics; missing values (MERRA-2 land variables over the ocean) become 0 after standardisation.
+- Fuel: the most frequent LANDFIRE fuel-model code (FBFM13 or FBFM40) within each cell divided by 100, plus a validity mask; both are 0 outside the raster. LANDFIRE's -9999 fill is excluded and the non-burnable codes (91, 92, 93, 98 and 99) are kept as codes. The code is categorical, so the scaled value is only a crude numeric encoding (kept from PR #33).
+- Same-day setting: the label of day t is paired with the weather of day t. With reanalysis weather such as MERRA-2 this is not a forecast, because that weather is only known afterwards.
+- Default split (PR #33): train 2024-01-01 to 2024-09-30, validation October 2024, test November-December 2024. The test months have a different fire regime from the training months.
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Gridded wildfire danger baselines scored by the PyHazards wildfire benchmark (``wildfire.danger``).
+- Comparing tabular (tree), raster and temporal models on the same daily fire labels.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+- `NASA FIRMS archive download `_
+- `MERRA-2 at NASA GES DISC `_
+- `LANDFIRE `_
+- `PyHazards PR #33 (original Track-O pipeline) `_
+
+PyHazards Usage
+---------------
+
+Build a cache with ``python scripts/build_wildfire_track_o_cache.py --cache-dir DIR --weather-dir WEATHER --firms-dir FIRMS [--fuel-raster LANDFIRE.tif]``. The default variables are in the MERRA-2 hourly collections M2T1NXSLV (T2M, QV2M, TQV, U10M, V10M, TS), M2T1NXLND (GWETROOT, LAI), M2T1NXFLX (EFLUX, HFLUX) and M2T1NXRAD (SWGNT, SWTNT, LWGAB, LWGEM), which can be passed as they are (an Earthdata login is needed to download them); the ``MERRA2_sfc_YYYYMMDD.nc`` files written by ``python -m pyhazards.datasets.merra2.inspection YYYYMMDD`` also hold them. Any NetCDF files with the variables on a regular latitude-longitude grid and the date in the file name work. Aligning the fuel raster needs ``pip install 'pyhazards[geo]'``.
+
+Train and score registry models with ``python scripts/run_wildfire_track_o_baselines.py --cache-dir DIR --output-dir RUNS``; it writes per-seed histories, metrics and settings.
+
+Registry Workflow
+~~~~~~~~~~~~~~~~~
+
+Primary dataset name: ``wildfire_track_o_raster``
+
+.. code-block:: python
+
+ from pyhazards.datasets import load_dataset
+
+ # micro=True is a small synthetic cache for smoke tests; pass cache_dir="..." for real data.
+ data = load_dataset("wildfire_track_o_raster", micro=True).load()
+ train = data.get_split("train")
+ print(train.inputs.shape, train.targets.shape) # (days, channels, height, width), (days, 1, height, width)
+
+- ``wildfire_track_o_temporal`` gives windows of ``history`` consecutive days (default 6) ``(samples, history, channels, height, width)``; windows that would cross a missing day are skipped. ``wildfire_track_o_tabular`` gives one row per cell and day with the weather, normalised latitude / longitude, day-of-year sine and cosine and the fuel columns, and int64 labels.
+- ``downsample_factor`` keeps every f-th grid row and column (defaults: 4 raster, 8 temporal and tabular) and ``spatial_multiple`` crops the grid to a multiple of it (4 by default; 16 for the U-Net).
+- ``micro=True`` replaces the cache with random fields on a 64 x 96 grid; its numbers mean nothing.
+
+Related Coverage
+~~~~~~~~~~~~~~~~
+
+**Benchmarks:** :doc:`Wildfire Benchmark `
+
+**Representative Models:** :doc:`Logistic Regression (pixel) `, :doc:`U-Net `, :doc:`ConvLSTM `, :doc:`Random Forest `, :doc:`XGBoost `
+
+Inspection Workflow
+-------------------
+
+This dataset is currently surfaced as a registry-backed benchmark adapter,
+so there is no standalone inspection CLI documented for it.
+
+Notes
+-----
+
+- PR #33 took its weather from its own Prithvi-WxC forecast files, which were not published; the builder reads MERRA-2 (or any gridded NetCDF) instead. PR #33's fuel alignment wrote the LANDFIRE layer north-up onto a grid whose latitude runs south to north (as MERRA-2's and Prithvi-WxC's files do), which puts CONUS fuels at 22-52 degrees south, and shifted it by half a cell; the builder here aligns it to the cell edges and the cache's row order.
+- PyHazards publishes no real-data Track-O results. ``scripts/run_wildfire_track_o_baselines.py`` has only been run on the synthetic micro cache and on small synthetic fixtures.
+
+Reference
+---------
+
+- `Schroeder et al. (2014). The New VIIRS 375 m active fire detection data product: Algorithm description and initial assessment. `_.
+- `Giglio, Schroeder and Justice (2016). The collection 6 MODIS active fire detection algorithm and fire products. `_.
+- `Gelaro et al. (2017). The Modern-Era Retrospective Analysis for Research and Applications, Version 2 (MERRA-2). `_.
+- `Rollins (2009). LANDFIRE: A nationally consistent vegetation, wildland fire, and fuel assessment. `_.
diff --git a/docs/source/datasets/wrc_housing_density.rst b/docs/source/datasets/wrc_housing_density.rst
new file mode 100644
index 00000000..45629de6
--- /dev/null
+++ b/docs/source/datasets/wrc_housing_density.rst
@@ -0,0 +1,82 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+Wildfire Risk to Communities: Housing Density
+=============================================
+
+USDA Forest Service 30 m rasters of housing-unit density, exposure and wildfire risk for populated areas of the United States (2nd edition, 2024).
+
+Overview
+--------
+
+The Wildfire Risk to Communities populated-areas data set (RDS-2020-0060-2) maps where people and homes are and how exposed they are to wildfire, combining census housing and population estimates with building footprints and the Forest Service wildfire hazard layers.
+
+Its housing-unit density layer (HUDen) gives housing units per square kilometre at 30 m, an exposure covariate for wildfire-risk and wildland-urban-interface studies.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - USDA Forest Service, Rocky Mountain Research Station (Forest Service Research Data Archive)
+ * - Hazard Family
+ - Wildfire
+ * - Source Role
+ - Exposure and Risk
+ * - Coverage
+ - Conterminous United States, Alaska and Hawaii (per-state files and CONUS mosaics)
+ * - Geometry
+ - Gridded raster layers
+ * - Spatial Resolution
+ - 30 m
+ * - Temporal Resolution
+ - Static snapshot
+ * - Update Cadence
+ - Edition-based (2nd edition published June 2024, metadata corrected September 2024)
+ * - Period of Record
+ - Housing from 2020 Census estimates, building footprints reflecting 2022, wildfire hazard from LANDFIRE 2020 (v2.2.0)
+ * - Formats
+ - LZW-compressed GeoTIFF
+
+Data Characteristics
+--------------------
+
+- Ten layers: BuildingCount, BuildingDensity, BuildingCover, PopCount, PopDen, HUCount, HUDen (housing units per square kilometre), HUExposure, HUImpact and HURisk.
+- HUExposure, HUImpact and HURisk are NoData outside populated areas.
+- The 1st edition (RDS-2020-0060) used 2018 Census estimates; the 2nd edition uses 2020 housing estimates.
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Housing exposure and wildland-urban-interface covariates for wildfire models.
+- Weighting wildfire hazard maps by the homes at risk.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+- `Forest Service Research Data Archive, RDS-2020-0060-2 `_
+
+PyHazards Usage
+---------------
+
+PyHazards does not load this source; it is listed as an external reference for wildfire exposure.
+
+Inspection Workflow
+-------------------
+
+PyHazards has no inspection command or loader for this source; it is listed
+as an external reference. Use the provider's access links above.
+
+Notes
+-----
+
+- Terms: the data "can be used without additional permissions or fees"; the archive asks that publications cite the data set as above, and gives no warranty.
+
+Reference
+---------
+
+- `Jaffe, Scott, Callahan, Dillon, Karau and Lazarz (2024). Wildfire Risk to Communities: Spatial datasets of wildfire risk for populated areas in the United States. 2nd Edition. Forest Service Research Data Archive. `_.
diff --git a/docs/source/datasets/wrf_sfire.rst b/docs/source/datasets/wrf_sfire.rst
new file mode 100644
index 00000000..412703c5
--- /dev/null
+++ b/docs/source/datasets/wrf_sfire.rst
@@ -0,0 +1,127 @@
+.. This file is generated by scripts/render_dataset_docs.py. Do not edit by hand.
+
+WRF-SFIRE Outputs
+=================
+
+Fire-grid outputs of the coupled WRF-SFIRE atmosphere-fire model, read from wrfout files into spread rasters.
+
+Overview
+--------
+
+WRF-SFIRE couples the WRF atmosphere model with SFIRE, a level-set fire-spread model with Rothermel rate of spread and two-way heat and moisture flux coupling (Mandel, Beezley and Kochanski, GMD 2011).
+
+PyHazards does not run WRF-SFIRE, which is an MPI Fortran model built per machine, and reimplements none of it. It reads the fire-grid fields that a WRF-SFIRE run writes to its wrfout history files and turns them into wildfire.spread rasters and samples.
+
+At a Glance
+-----------
+
+.. list-table::
+ :widths: 28 72
+ :stub-columns: 1
+
+ * - Provider
+ - OpenWFM WRF-SFIRE (University of Colorado Denver and collaborators); runs made by the user
+ * - Hazard Family
+ - Wildfire
+ * - Source Role
+ - Simulator Outputs
+ * - Coverage
+ - Any WRF domain the user configures
+ * - Geometry
+ - Fire-grid raster time series
+ * - Spatial Resolution
+ - Fire mesh of DX/sr_x by DY/sr_y (typically a few to tens of metres)
+ * - Temporal Resolution
+ - WRF history interval of the run
+ * - Update Cadence
+ - Generated by the user's own WRF-SFIRE runs
+ * - Period of Record
+ - Whatever the user simulates
+ * - Formats
+ - NetCDF WRF history files (wrfout)
+ * - Inspection CLI
+ - ``python -m pyhazards.datasets.wrf_sfire.inspection --path /path/to/wrfout_d01_*``
+ * - Registry Entry
+ - ``wrf_sfire_spread``
+
+Data Characteristics
+--------------------
+
+- Fire-grid variables have dimensions (Time, south_north_subgrid, west_east_subgrid); the fire mesh is sr_x by sr_y times finer than the atmospheric grid, and the last sr_y rows and sr_x columns are padding, which the reader removes.
+- TIGN_G is the fire arrival time in seconds since the simulation start where a cell has burned; unburned cells hold a time one fire step in the future.
+- LFN is the level-set function; the fire region is LFN < 0, which the reader uses as the burned mask.
+- FIRE_AREA (fraction of the cell on fire), FUEL_FRAC, FGRNHFX (ground heat flux, W/m^2), ROS and F_ROS (rate of spread, m/s), FLINEINT, NFUEL_CAT, ZSF, UF/VF and FXLONG/FXLAT can be read as extra fields. Names, units and descriptions follow Registry/registry.fire of release W4.4-S0.1.
+- XTIME gives the output times in minutes since the simulation start; arrays are returned north-up by default (origin='upper') or in WRF's south-up order.
+
+Typical Use Cases
+~~~~~~~~~~~~~~~~~
+
+- Training or evaluating spread models on physics-based simulations of chosen scenarios.
+- Comparing learned spread models with a coupled atmosphere-fire model on the same domain.
+- Extracting arrival-time maps and burned-area time series from WRF-SFIRE runs.
+
+Access
+------
+
+Use the links below to access the upstream source or its public documentation.
+
+- `WRF-SFIRE repository (official code) `_
+- `Running WRF-SFIRE with real data in the WRFx system `_
+- `wrfxpy (official Python workflow for real-data runs) `_
+
+PyHazards Usage
+---------------
+
+Use load_dataset('wrf_sfire_spread', paths=...) for wildfire.spread samples, or read_wrf_sfire_fire_grid for the raw fire grid.
+
+PyHazards only reads WRF-SFIRE outputs; producing them needs the official WRF-SFIRE build and its inputs (meteorology, fuels, topography), for example through wrfxpy.
+
+Registry Workflow
+~~~~~~~~~~~~~~~~~
+
+Primary dataset name: ``wrf_sfire_spread``
+
+.. code-block:: python
+
+ from pyhazards.datasets import load_dataset
+ from pyhazards.datasets.wrf_sfire import read_wrf_sfire_fire_grid
+
+ # Next-frame spread samples: burned mask (LFN < 0) plus chosen fields -> next burned mask.
+ data = load_dataset("wrf_sfire_spread", paths="run/wrfout_d01_*", horizon=1, features=("NFUEL_CAT", "ZSF")).load()
+ train = data.get_split("train")
+ print(train.inputs.shape, train.targets.shape) # (N, 3, rows, cols), (N, 1, rows, cols)
+
+ # Or the raw fire grid: arrival time (s since simulation start) and burned masks.
+ grid = read_wrf_sfire_fire_grid("run/wrfout_d01_*", variables=("TIGN_G", "LFN", "FIRE_AREA"))
+ print(grid.arrival_time().shape, grid.burned_masks().shape, grid.fire_dx)
+
+- There is no synthetic fallback; paths must point at wrfout files from a real WRF-SFIRE run.
+- Splits are chronological over the output frames of the run.
+
+Related Coverage
+~~~~~~~~~~~~~~~~
+
+**Benchmarks:** :doc:`Wildfire Benchmark `
+
+Inspection Workflow
+-------------------
+
+Use the documented inspection path below to validate local files before training or analysis.
+
+.. code-block:: bash
+
+ python -m pyhazards.datasets.wrf_sfire.inspection --path /path/to/wrfout_d01_*
+
+- Prints the fire-grid size and spacing, the burned area of each output frame and the range of fire arrival times.
+
+Notes
+-----
+
+- The reader was checked on a real history file of the official ideal case test/em_fire/hill (WRF-SFIRE W4.4-S0.1 built locally); the header of that file is kept in tests/fixtures/wrf_sfire_hill_wrfout_header.json and the unit tests write synthetic files with the same layout.
+- The former wrf_sfire model entry was a fixed diffusion kernel unrelated to WRF-SFIRE and was removed; this reader replaces it.
+
+Reference
+---------
+
+- `Mandel, Beezley and Kochanski (2011). Coupled atmosphere-wildland fire modeling with WRF 3.3 and SFIRE 2011. Geoscientific Model Development 4:591-610. `_ (`repo `__).
+- `Mandel et al. (2014). Recent advances and applications of WRF-SFIRE. Natural Hazards and Earth System Sciences 14:2829-2845. `_.
diff --git a/docs/source/index.rst b/docs/source/index.rst
index 7804de80..e08d4255 100644
--- a/docs/source/index.rst
+++ b/docs/source/index.rst
@@ -287,6 +287,9 @@ for project discussion and coordination.
pyhazards_datasets
pyhazards_models
+ pyhazards_prompted
+ pyhazards_simulators
+ pyhazards_forecasts
pyhazards_benchmarks
pyhazards_configs
pyhazards_reports
diff --git a/docs/source/modules/models_asufm.rst b/docs/source/modules/models_asufm.rst
index 388e3e7f..f5639a3f 100644
--- a/docs/source/modules/models_asufm.rst
+++ b/docs/source/modules/models_asufm.rst
@@ -6,7 +6,7 @@ ASUFM
Overview
--------
-``asufm`` is a compact temporal convolution baseline for next-window wildfire activity prediction.
+``asufm`` is a Swin U-Net (patch 4, embedding 96, depths (2, 2, 2, 2), heads (3, 6, 12, 24), window 8) whose encoder blocks apply focal modulation before window attention, with patch-expanding decoder stages and skip connections. It maps one day of Next Day Wildfire Spread (NDWS) features, 64x64 at 1 km, to logits for the next day's fire mask (Li & Rad, IEEE CAI 2024).
At a Glance
-----------
@@ -46,7 +46,7 @@ At a Glance
.. container:: catalog-stat-note
- Forecasting
+ Segmentation
.. grid-item-card:: Benchmark Family
:class-card: catalog-stat-card
@@ -63,9 +63,9 @@ At a Glance
Description
-----------
-``asufm`` is a compact temporal convolution baseline for next-window wildfire activity prediction.
+``asufm`` is a Swin U-Net (patch 4, embedding 96, depths (2, 2, 2, 2), heads (3, 6, 12, 24), window 8) whose encoder blocks apply focal modulation before window attention, with patch-expanding decoder stages and skip connections. It maps one day of Next Day Wildfire Spread (NDWS) features, 64x64 at 1 km, to logits for the next day's fire mask (Li & Rad, IEEE CAI 2024).
-PyHazards exposes it through the shared wildfire benchmark and config workflow.
+The implementation reproduces the official fire-asufm code (``get_asfum_6_configs`` with six features by default, ``get_asufm_12_configs`` with all twelve) with the same parameter names and initialisation, so official checkpoints load with ``strict=True``. It is assembled from MIT-licensed Swin Transformer and FocalNet blocks rather than copied, because the official model package derives from the unlicensed Attention Swin U-Net code.
Benchmark Compatibility
-----------------------
@@ -75,7 +75,25 @@ Benchmark Compatibility
External References
-------------------
-**Paper:** `Wildfire Spread Prediction in North America Using Satellite Imagery and Vision Transformer `_ | **Repo:** `Repository `__
+**Paper:** `Wildfire Spread Prediction in North America Using Satellite Imagery and Vision Transformer `_ | **Repo:** `Repository `__
+
+Used In
+-------
+
+- `Next Day Wildfire Spread: A Machine Learning Dataset to Predict Wildfire Spreading From Remote-Sensing Data `_ (`repo `__): Dataset used by ASUFM (64x64 tiles, 12 input features). The official training script uses six features (elevation, th, sph, pr, NDVI, PrevFireMask), BCE with pos_weight 3, AdamW (amsgrad) lr 1e-4 with cosine annealing and linear warm-up, batch 16 and mixed precision; the authors also release a 2012-2023 North America extension on Kaggle. The paper reports, on NDWS (Table I), PR-AUC 0.3728, precision 0.4301, recall 0.4050 and Dice 0.4109, and on the extended dataset (Table IV, 35M parameters) PR-AUC 0.3974 and Dice 0.4066, trained with weighted BCE (positive weight 3.0), Adam with weight decay 0.05, cosine annealing with warm-up and batch 16.
+- `Focal Modulation Networks `_ (`repo `__): Focal modulation in the encoder blocks (focal level 1, window 3).
+- `Swin Transformer: Hierarchical Vision Transformer using Shifted Windows `_ (`repo `__): Window-attention blocks, patch merging and patch embedding.
+
+Reproduction
+------------
+
+- **Reference implementation:** `https://github.com/bronteee/fire-asufm `__ at ``688dda9`` (Apache-2.0)
+- **Checked configuration:** ASUFM(get_asfum_6_configs(), num_classes=1) and ASUFM(get_asufm_12_configs(), num_classes=1) from configs/asufm.py (35,047,840 and 35,057,056 parameters), plus the focal=False variant get_swin_unet_attention_configs, on (batch, 6 or 12, 64, 64) inputs.
+- **Parameter count:** 35,047,840
+- **Verified:** parameter count, seeded initialisation, parameter names and shapes, forward outputs
+- **Oracle test:** ``tests/oracle/test_swin_oracle.py``
+- **Deviation:** The official blocks return their window-attention maps and the decoder adds the encoder's maps to them ("spatial attention"), but the sums are discarded and never reach the output. They are not computed here; outputs are identical.
+- **Deviation:** The configuration's cross-contextual-attention mode (CrossViT skips) is not part of ASUFM and is not implemented.
Registry Name
-------------
@@ -85,7 +103,7 @@ Primary entrypoint: ``asufm``
Supported Tasks
---------------
-- Forecasting
+- Segmentation
Programmatic Use
----------------
@@ -95,17 +113,17 @@ Programmatic Use
import torch
from pyhazards.models import build_model
- model = build_model(
- name="asufm",
- task="forecasting",
- input_dim=7,
- output_dim=5,
- lookback=12,
- )
- preds = model(torch.randn(2, 12, 7))
- print(preds.shape)
+ # Six NDWS features: elevation, th, sph, pr, NDVI, PrevFireMask.
+ model = build_model(name="asufm", task="segmentation", in_channels=6)
+ logits = model(torch.randn(2, 6, 64, 64))
+ print(logits.shape) # (2, 1, 64, 64)
Notes
-----
-- The smoke path uses weekly wildfire count windows with seasonal time features.
+- Inputs must be 64x64 (img_size); the architecture is tied to the token grid it was built for.
+- Decoder stages fuse each skip connection twice through the same concat_back_dim layer, because the configured spatial-attention branch concatenates and projects again. This is the official behaviour and is kept.
+- Decoder blocks contain focal-modulation weights that the official code never applies; the top-level patch_embed (4 input channels) and decoder.norm are also unused. All are kept so official state dicts load.
+- The official model ignores the config's drop_path_rate, attn_drop_rate, ape and patch_size (fixed at 0.1, 0, False and 4).
+- The paper (Section III-A) describes spatial attention carried along the skip connections; in the official code those maps never reach the output (see the first deviation), so the released network is a Swin U-Net with focal modulation. The paper's 35M parameter count (Table IV) matches.
+- The authors' Kaggle checkpoint link (bronteli/attention-swin-u-net-with-focal-modulation-asufm) returned HTTP 404 on 2026-10-07, so no trained weights are checked.
diff --git a/docs/source/modules/models_attention_unet.rst b/docs/source/modules/models_attention_unet.rst
new file mode 100644
index 00000000..bdf36dd8
--- /dev/null
+++ b/docs/source/modules/models_attention_unet.rst
@@ -0,0 +1,135 @@
+.. This file is generated by scripts/render_model_docs.py. Do not edit by hand.
+
+Attention U-Net
+===============
+
+Overview
+--------
+
+``attention_unet`` is an encoder-decoder with strided-convolution down-sampling and transposed-convolution up-sampling in which every skip connection is multiplied by an attention map before it is merged with the decoder feature, following the additive attention gate of Oktay et al. (2018).
+
+At a Glance
+-----------
+
+.. grid:: 1 2 4 4
+ :gutter: 2
+ :class-container: catalog-grid
+
+ .. grid-item-card:: Hazard Family
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ Wildfire
+
+ .. container:: catalog-stat-note
+
+ Public catalog grouping used for this model.
+
+ .. grid-item-card:: Maturity
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ Implemented
+
+ .. container:: catalog-stat-note
+
+ Catalog maturity label used on the index page.
+
+ .. grid-item-card:: Tasks
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ 1
+
+ .. container:: catalog-stat-note
+
+ Segmentation
+
+ .. grid-item-card:: Benchmark Family
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ :doc:`Wildfire Benchmark `
+
+ .. container:: catalog-stat-note
+
+ Primary benchmark-family link used for compatible evaluation coverage.
+
+
+Description
+-----------
+
+``attention_unet`` is an encoder-decoder with strided-convolution down-sampling and transposed-convolution up-sampling in which every skip connection is multiplied by an attention map before it is merged with the decoder feature, following the additive attention gate of Oktay et al. (2018).
+
+The implementation reproduced is MONAI's ``AttentionUnet`` (MONAI 1.3.2, Apache-2.0), because that is what the wildfire paper used, ported to plain PyTorch with MONAI's module names so MONAI state dicts load with ``strict=True``. It is not Oktay et al.'s official network: MONAI computes the gate at the skip resolution from the already up-sampled decoder feature, with no grid sub-sampling of the gating signal, a single gate per level and no deep supervision.
+
+With the defaults (``spatial_dims=3``) the model is TS-SatFire's Attention-U-Net-3D: input ``(batch, time, channels, H, W)``, 3D convolutions over (time, H, W) with stride (1, 2, 2) at every level so time is never down-sampled, widths 64-1024, and two-class logits averaged over time to ``(batch, 2, H, W)``. ``spatial_dims=2`` gives TS-SatFire's single-image 2D baseline (stride 2 at every level, input ``(batch, channels, H, W)``).
+
+Benchmark Compatibility
+-----------------------
+
+**Primary benchmark family:** :doc:`Wildfire Benchmark `
+
+External References
+-------------------
+
+**Paper:** `Attention U-Net: Learning Where to Look for the Pancreas `_ | **Repo:** `Repository `__
+
+Used In
+-------
+
+- `TS-SatFire: A Multi-Task Satellite Image Time-Series Dataset for Wildfire Detection and Prediction `_ (`repo `__): Attention-U-Net-3D from the repository's modified MONAI copy (channels 64-1024, stride (1, 2, 2) at every level) on 256x256 tiles of daily VIIRS and auxiliary data, 43 channels after the land-cover one-hot for next-day progression prediction, T in {2, 4, 6}, logits averaged over time; Dice loss, Adam lr 0.0012, batch 8, 100 epochs. Paper Table 3 (6 input days; arXiv 2412.11555): 94.5M parameters, F1 0.770 / 0.712 / 0.354 and IoU 0.654 / 0.607 / 0.312 on active fire / burned area / prediction. The 2D Attention-U-Net (stock MONAI, stride 2) has 31.7M parameters and F1 0.763 / 0.793 on active fire / burned area.
+
+Reproduction
+------------
+
+- **Reference implementation:** `https://github.com/Project-MONAI/MONAI `__ at ``1.3.2`` (Apache-2.0)
+- **Checked configuration:** TS-SatFire's AttentionUnet(spatial_dims=3, in_channels=43, out_channels=2, channels=(64, 128, 256, 512, 1024), strides=(1, 2, 2)) from spatial_models/attentionunet.py at da75732 (MONAI 1.2/1.3.0 code with shared strides; the repository has no license and is used only as a test oracle) on monai 1.3.2, with its outputs averaged over time; MONAI 1.3.2 AttentionUnet(spatial_dims=2, in_channels=8, out_channels=2, same channels, strides=(2, 2, 2, 2)) for the 2D baseline (31,743,282 parameters); and 1D/2D/3D MONAI configurations with non-uniform per-level strides, kernel size 5 and dropout. Forward passes use 32x32 (3D, T=2) and 64x64 (2D) inputs instead of 256x256 to keep the CPU test fast.
+- **Parameter count:** 94,555,506
+- **Verified:** parameter count, seeded initialisation, parameter names and shapes, forward outputs
+- **Oracle test:** ``tests/oracle/test_attention_unet_oracle.py``
+- **Deviation:** Architecture is MONAI's, not the official Attention-Gated-Networks code (eee4881, MIT), which is not ported. Its 3D segmentation networks (unet_grid_attention_3D, unet_CT_single/multi_att_dsv_3D) down-sample with max pooling at widths [64, 128, 256, 512, 1024] / feature_scale (4 by default), take the gating signal from a coarser level, sub-sample the skip feature with a strided theta convolution (attention_dsample (2, 2, 2)) before the additive gate, up-sample the attention map trilinearly and pass the gated feature through a 1x1 convolution and BatchNorm; the CT models add deep supervision (and two gates per level in the multi-attention model), and all use Kaiming initialisation. MONAI gates at the skip resolution with the up-convolved decoder feature, has one gate per level, no deep supervision and PyTorch's default initialisation.
+- **Deviation:** TS-SatFire's copy was taken from MONAI 1.2/1.3.0 and ignores ``kernel_size`` (its blocks are always 3x3x3); this port honours ``kernel_size`` as MONAI 1.3.2 does. The two are identical at the kernel size 3 that TS-SatFire uses.
+- **Deviation:** TS-SatFire averages the 3D logits over time in its training script (``outputs.mean(2)``); here that read-out is part of the model (``time_reduction="mean"``), which also takes PyHazards' ``(batch, time, channels, H, W)`` layout instead of ``(batch, channels, time, H, W)``.
+- **Deviation:** Configurations the reference rejects with IndexError or NotImplementedError (too few strides, even kernel sizes) or a size-mismatch RuntimeError (spatial sizes not divisible by the stride product) raise ValueError instead.
+- **Deviation:** The paper reports 94.5M parameters for Attention-U-Net-3D across all three tasks; the prediction configuration with 43 input channels has 94,555,506 (94,495,026 with the 8-channel active-fire / burned-area input).
+
+Registry Name
+-------------
+
+Primary entrypoint: ``attention_unet``
+
+Supported Tasks
+---------------
+
+- Segmentation
+
+Programmatic Use
+----------------
+
+.. code-block:: python
+
+ import torch
+ from pyhazards.models import build_model
+
+ # TS-SatFire prediction model: 43 channels, logits averaged over the input days.
+ model = build_model(name="attention_unet", task="segmentation", in_channels=43)
+ logits = model(torch.randn(1, 4, 43, 64, 64)) # (batch, days, channels, H, W)
+ print(logits.shape) # (1, 2, 64, 64)
+
+ # TS-SatFire's single-image 2D baseline.
+ model_2d = build_model(name="attention_unet", task="segmentation", in_channels=8, spatial_dims=2)
+ print(model_2d(torch.randn(1, 8, 64, 64)).shape) # (1, 2, 64, 64)
+
+Notes
+-----
+
+- Every spatial size must be divisible by the product of the strides along that dimension: 16 for height and width with the default four levels; time is never down-sampled.
+- The default two output channels follow TS-SatFire, which applied a sigmoid Dice loss to both; use out_channels=1 for a single-logit binary head.
+- time_reduction='none' returns per-date maps (batch, classes, time, H, W), as TS-SatFire uses for its active-fire and burned-area tasks.
+- strides follow MONAI (one entry per level, each an int or one value per dimension); stride_mode='shared' takes TS-SatFire's single strides=(1, 2, 2) literally and builds the same network as strides=[(1, 2, 2)] * 4.
+- MONAI quirks are kept: the merge convolution after each gate uses instance norm and PReLU, and dropout is applied in the convolution blocks and merges but never in the gates or up-convolutions.
diff --git a/docs/source/modules/models_convgru.rst b/docs/source/modules/models_convgru.rst
new file mode 100644
index 00000000..c1713ee1
--- /dev/null
+++ b/docs/source/modules/models_convgru.rst
@@ -0,0 +1,131 @@
+.. This file is generated by scripts/render_model_docs.py. Do not edit by hand.
+
+ConvGRU
+=======
+
+Overview
+--------
+
+``convgru`` runs a stack of convolutional GRU cells over a ``(batch, time, channels, height, width)`` sequence and maps the hidden state of the last time step to per-pixel logits with a ``Conv2d`` head. Each cell follows Ballas et al.: one convolution over ``[x_t, h_{t-1}]`` gives the update and reset gates, a second convolution over ``[x_t, r * h_{t-1}]`` gives the candidate, and ``h_t = (1 - z) * h_{t-1} + z * tanh(candidate)``.
+
+At a Glance
+-----------
+
+.. grid:: 1 2 4 4
+ :gutter: 2
+ :class-container: catalog-grid
+
+ .. grid-item-card:: Hazard Family
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ Wildfire
+
+ .. container:: catalog-stat-note
+
+ Public catalog grouping used for this model.
+
+ .. grid-item-card:: Maturity
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ Implemented
+
+ .. container:: catalog-stat-note
+
+ Catalog maturity label used on the index page.
+
+ .. grid-item-card:: Tasks
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ 1
+
+ .. container:: catalog-stat-note
+
+ Segmentation
+
+ .. grid-item-card:: Benchmark Family
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ :doc:`Wildfire Benchmark `
+
+ .. container:: catalog-stat-note
+
+ Primary benchmark-family link used for compatible evaluation coverage.
+
+
+Description
+-----------
+
+``convgru`` runs a stack of convolutional GRU cells over a ``(batch, time, channels, height, width)`` sequence and maps the hidden state of the last time step to per-pixel logits with a ``Conv2d`` head. Each cell follows Ballas et al.: one convolution over ``[x_t, h_{t-1}]`` gives the update and reset gates, a second convolution over ``[x_t, r * h_{t-1}]`` gives the candidate, and ``h_t = (1 - z) * h_{t-1} + z * tanh(candidate)``.
+
+The default is the Conv-GRU baseline of FireCastNet (Michail et al., Scientific Reports 2025), as in its ``configs/conv-gru-config.yaml``: 11 SeasFire variables, one layer of 128 hidden channels, 5x5 kernels, a dense 64x64 logit map trained with BCE on every pixel. FireCastNet's code has no license, so the module is written from the equations; it is checked against FireCastNet's ``ConvGRUSeg``, whose state dicts load with ``strict=True``, and gives identical outputs and seeded initial weights.
+
+Benchmark Compatibility
+-----------------------
+
+**Primary benchmark family:** :doc:`Wildfire Benchmark `
+
+External References
+-------------------
+
+**Paper:** `Delving Deeper into Convolutional Networks for Learning Video Representations `_
+
+Used In
+-------
+
+- `FireCastNet: Earth-as-a-Graph for Seasonal Fire Prediction `_ (`repo `__): Conv-GRU baseline (arXiv:2502.01550). SeasFire datacube (0.25 degree, 8-day steps), 11 inputs (mslp, tp, vpd, sst, t2m_mean, ssrd, swvl1, lst_day, ndvi, pop_dens and the land-sea mask), binary burned area (gwis_ba) h periods ahead, years 2002-2017 / 2018 / 2019 for training / validation / testing, BCE, AdamW lr 1e-3. Global test AUPRC with 24 input steps (Table 2): 0.593 / 0.579 / 0.556 / 0.551 / 0.545 / 0.569 for h = 1 / 2 / 4 / 8 / 16 / 24; with 12 steps (Figure 3) 0.624 / 0.614 / 0.604 / 0.593 / 0.582 / 0.579, the best Conv-GRU setting, and with 6 steps 0.604 / 0.597 / 0.586 / 0.571 / 0.560 / 0.557. FireCastNet scores 0.641 at h = 1 with 24 steps.
+- `A Nationwide Benchmark for Wildfire Initial Attack Failure Prediction with Public Environmental Data (WildfireIA) `_ (`repo `__): Same cell, different model. WildfireIA's ConvGRU baseline (train.py ConvGRUClassifier at aba9be9, MIT) is one cell with 64 channels and 3x3 kernels on 29x29 event patches, read out by global pooling and an MLP to one score. Initial-attack failure prediction: AUPRC 41.2 +/- 1.6, AUROC 84.1 +/- 0.6 (Table 3); containment duration: MAE 36.4 h (Table 6).
+
+Reproduction
+------------
+
+- **Reference implementation:** `https://github.com/SeasFire/firecastnet `__ at ``dc0d131`` (none (no LICENSE file; seasfire/backbones/conv_gru.py is used only as the test oracle, not copied))
+- **Checked configuration:** configs/conv-gru-config.yaml: ConvGRULit(input_dim_grid_nodes 11, hidden_layers 1, hidden_dim 128, kernel_size [5, 5]) -> ConvGRUSeg(..., num_classes=1), 64x64 patches, checked on (batch, 12, 11, 64, 64) inputs, also with all-zero (padding) steps; the paper's 64 hidden channels (361,793 parameters); a three-layer model with two classes (outputs and input gradients).
+- **Parameter count:** 1,337,985
+- **Verified:** parameter count, seeded initialisation, parameter names and shapes, forward outputs
+- **Oracle test:** ``tests/oracle/test_convgru_oracle.py``
+- **Deviation:** The reference looks for all-zero (padding) time steps and, if there are any, re-indexes the per-step outputs passed to the next layer with a batch-sized index (giving a ``(batch, batch, ...)`` tensor). This never changes the output of the one-layer model and breaks deeper ones. The port does not look for padding: padded steps update the state, as they do in the one-layer reference.
+- **Deviation:** The head's padding is ``(kernel - 1) // 2`` per dimension; the reference uses the first kernel dimension for both, which only differs for non-square kernels.
+- **Deviation:** Only ``task="segmentation"`` exists: the reference maps a sequence to one map of logits and has no frames-to-frames form. The ConvGRU baseline of Shi et al. (2017), a frame forecaster with a different cell (reset gate after the state convolution, leaky ReLU), is ``build_model("trajgru", task="forecasting", layer_type="ConvGRU")``.
+
+Registry Name
+-------------
+
+Primary entrypoint: ``convgru``
+
+Supported Tasks
+---------------
+
+- Segmentation
+
+Programmatic Use
+----------------
+
+.. code-block:: python
+
+ import torch
+ from pyhazards.models import build_model
+
+ # FireCastNet's Conv-GRU: 12 eight-day steps of 11 standardised SeasFire variables on 64x64 patches.
+ model = build_model(name="convgru", task="segmentation") # 1,337,985 parameters
+ x = torch.randn(2, 12, 11, 64, 64) # (batch, time, variables, lat, lon)
+ logits = model(x) # (2, 1, 64, 64); train with BCEWithLogitsLoss on every pixel
+ print(logits.shape)
+
+ # The paper's size: one hidden layer of 64 channels.
+ small = build_model(name="convgru", task="segmentation", hidden_dim=64) # 361,793 parameters
+
+Notes
+-----
+
+- Paper and code differ, and the code is followed. Hidden size: the paper (Sec. 5.1) gives the Conv-GRU "a single hidden layer with 64 hidden units" (also ConvGRULit's default), the configuration file 128 (the default here; ``hidden_dim=64`` gives the paper's size). Equations: the paper writes the candidate as ``tanh(W_xh * x + r . (W_hh * h) + b)``, reset gate after the state convolution, while the code, like Ballas et al. (Eq. 7), applies it before: ``tanh(W * [x, r . h])``. Read-out: the paper describes a (2r+1)x(2r+1) grid around each location and MLP layers that reduce it to one prediction; the code predicts a dense 64x64 map with a 5x5 convolution and BCE over all pixels. Training: the paper uses AdamW, lr 1e-3, SGDR (cycles of 10 and 40 epochs) and weight decay 1e-7; the configuration file lr 1e-3, weight decay 1e-8, gradient clipping 0.5, 50 epochs, 12 input steps and a target shift of 16.
+
+- Input layout and preprocessing: ConvGRULit permutes SeasFire batches from ``(B, C, T, H, W)`` to ``(B, T, C, H, W)``, the layout used here. Variables are prepared by FireCastNet's data module (log1p for tp and pop_dens, standardisation; see the ``firecastnet`` card).
+
diff --git a/docs/source/modules/models_convlstm.rst b/docs/source/modules/models_convlstm.rst
new file mode 100644
index 00000000..68d25cab
--- /dev/null
+++ b/docs/source/modules/models_convlstm.rst
@@ -0,0 +1,124 @@
+.. This file is generated by scripts/render_model_docs.py. Do not edit by hand.
+
+ConvLSTM
+========
+
+Overview
+--------
+
+``convlstm`` runs a stack of ConvLSTM cells (Shi et al., 2015) over a ``(batch, time, channels, height, width)`` sequence and maps the cell state of the last time step to per-pixel logits with a ``Conv2d`` head.
+
+At a Glance
+-----------
+
+.. grid:: 1 2 4 4
+ :gutter: 2
+ :class-container: catalog-grid
+
+ .. grid-item-card:: Hazard Family
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ Wildfire
+
+ .. container:: catalog-stat-note
+
+ Public catalog grouping used for this model.
+
+ .. grid-item-card:: Maturity
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ Implemented
+
+ .. container:: catalog-stat-note
+
+ Catalog maturity label used on the index page.
+
+ .. grid-item-card:: Tasks
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ 1
+
+ .. container:: catalog-stat-note
+
+ Spread
+
+ .. grid-item-card:: Benchmark Family
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ :doc:`Wildfire Benchmark `
+
+ .. container:: catalog-stat-note
+
+ Primary benchmark-family link used for compatible evaluation coverage.
+
+
+Description
+-----------
+
+``convlstm`` runs a stack of ConvLSTM cells (Shi et al., 2015) over a ``(batch, time, channels, height, width)`` sequence and maps the cell state of the last time step to per-pixel logits with a ``Conv2d`` head.
+
+The implementation is a port of the ConvLSTM that WildfireSpreadTS vendors from utae-paps (originally TUM-LMF/MTLCC-pytorch): gates come from one convolution over the concatenated input and hidden state, there are no peephole connections, and the head reads the cell state rather than the hidden state. Parameter names match the reference, so its state dicts load with ``strict=True``.
+
+Benchmark Compatibility
+-----------------------
+
+**Primary benchmark family:** :doc:`Wildfire Benchmark `
+
+**Mapped benchmark ecosystems:** :doc:`WildfireSpreadTS `
+
+External References
+-------------------
+
+**Paper:** `Convolutional LSTM Network: A Machine Learning Approach for Precipitation Nowcasting `_ | **Repo:** `Repository `__
+
+Used In
+-------
+
+- `WildfireSpreadTS: A dataset of multi-modal time series for wildfire spread prediction `_ (`repo `__): One layer, 64 hidden channels, 3x3 kernels, 5 days x 40 channels, 128x128 crops with tiled inference, Jaccard loss, AdamW lr 0.01; test AP 0.292-0.310 (paper Table 5).
+
+Reproduction
+------------
+
+- **Reference implementation:** `https://github.com/VSainteuf/utae-paps `__ at ``987874e`` (MIT)
+- **Checked configuration:** ConvLSTM_Seg(num_classes=1, input_dim=40, hidden_dim=64, kernel_size=(3, 3)), the WildfireSpreadTS configuration; WildfireSpreadTS vendors this file unchanged.
+- **Parameter count:** 240,449
+- **Verified:** parameter count, seeded initialisation, parameter names and shapes, forward outputs
+- **Oracle test:** ``tests/oracle/test_wildfirespreadts_oracle.py``
+- **Deviation:** The reference fixes the spatial size at construction; this port reads it from the input. Outputs are identical at the reference size.
+- **Deviation:** The reference head uses ``padding=1`` for every kernel size; this port uses ``kernel_size // 2``, which only differs for kernels other than 3x3.
+
+Registry Name
+-------------
+
+Primary entrypoint: ``convlstm``
+
+Supported Tasks
+---------------
+
+- Spread
+
+Programmatic Use
+----------------
+
+.. code-block:: python
+
+ import torch
+ from pyhazards.models import build_model
+
+ model = build_model(name="convlstm", task="segmentation", in_channels=40)
+ logits = model(torch.randn(2, 5, 40, 128, 128))
+ print(logits.shape) # (2, 1, 128, 128)
+
+Notes
+-----
+
+- Multi-layer stacks are supported; WildfireSpreadTS uses one layer.
+- Set readout='hidden' to read the last hidden state instead of the cell state.
diff --git a/docs/source/modules/models_deep_ensemble.rst b/docs/source/modules/models_deep_ensemble.rst
new file mode 100644
index 00000000..bf937d7a
--- /dev/null
+++ b/docs/source/modules/models_deep_ensemble.rst
@@ -0,0 +1,157 @@
+.. This file is generated by scripts/render_model_docs.py. Do not edit by hand.
+
+Deep Ensemble
+=============
+
+Overview
+--------
+
+``deep_ensemble`` builds ``num_members`` (default 5) copies of a registered model (``base_model``, ``base_kwargs``), member ``m`` initialised right after ``torch.manual_seed(seeds[m])`` (default seeds ``0 .. M-1``), and predicts with their uniform mixture: classification and segmentation average the member probabilities (softmax over the channel dimension, or a sigmoid for one-channel binary logits), regression moment-matches the Gaussian mixture of mean/variance members.
+
+At a Glance
+-----------
+
+.. grid:: 1 2 4 4
+ :gutter: 2
+ :class-container: catalog-grid
+
+ .. grid-item-card:: Hazard Family
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ Wildfire
+
+ .. container:: catalog-stat-note
+
+ Public catalog grouping used for this model.
+
+ .. grid-item-card:: Maturity
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ Implemented
+
+ .. container:: catalog-stat-note
+
+ Catalog maturity label used on the index page.
+
+ .. grid-item-card:: Tasks
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ 3
+
+ .. container:: catalog-stat-note
+
+ Classification, Segmentation, Forecasting
+
+ .. grid-item-card:: Benchmark Family
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ :doc:`Wildfire Benchmark `
+
+ .. container:: catalog-stat-note
+
+ Primary benchmark-family link used for compatible evaluation coverage.
+
+
+Description
+-----------
+
+``deep_ensemble`` builds ``num_members`` (default 5) copies of a registered model (``base_model``, ``base_kwargs``), member ``m`` initialised right after ``torch.manual_seed(seeds[m])`` (default seeds ``0 .. M-1``), and predicts with their uniform mixture: classification and segmentation average the member probabilities (softmax over the channel dimension, or a sigmoid for one-channel binary logits), regression moment-matches the Gaussian mixture of mean/variance members.
+
+``forward`` returns the log of the mixture probability for multi-class outputs (``(batch, 2)`` for ``wildfire_forecasting`` members), the logit of the mixture probability for one-channel binary outputs, and a ``(mean, variance)`` tuple for regression. ``predict_uncertainty`` adds the epistemic variance, aleatoric term, predictive entropy and mutual information of Kondylatos et al. (2025), or the epistemic and aleatoric variances of the Gaussian mixture.
+
+Members are trained independently (Algorithm 1): ``ensemble.fit`` trains each with its own optimizer and its own data order, optionally with fast-gradient-sign adversarial examples (``fgsm_example``, step ``input_range_epsilon`` = 1% of each input dimension's range). ``mc_dropout_passes`` keeps the members' dropout active at prediction and pools several passes per member, as in Chakravarty (2025).
+
+Benchmark Compatibility
+-----------------------
+
+**Primary benchmark family:** :doc:`Wildfire Benchmark `
+
+External References
+-------------------
+
+**Paper:** `Simple and Scalable Predictive Uncertainty Estimation using Deep Ensembles `_
+
+Used In
+-------
+
+- `Uncertainty-Aware Deep Learning for Wildfire Danger Forecasting `_ (`repo `__): Kondylatos, Papadopoulos, Camps-Valls & Papoutsis (arXiv 2509.25017). Next-day danger on Mesogeos (1 km, Mediterranean; train 2006-2019, validation 2020, test 2021-2022; two negatives per ignition): deep ensemble of 10 LSTMs (LayerNorm, LSTM 128, linear 128 and 64 with ReLU and dropout 0.5, two outputs) on 45-day windows of 25 features (13 dynamic, 12 static), each trained from its own seed (1, 12, 17, 123, 1234, 2222, 12345, 54321, 77777, 87877 in the released checkpoints) with Adam (lr 0.004, weight decay 0.0063), StepLR(15, 0.1), 30 epochs, batch 256 and an NLL loss scaled by the log burned area. Table 1: precision 0.794, recall 0.760, F1 0.777, AUPRC 0.852, ECE 0.019 (with the aleatoric head: 0.787, 0.768, 0.777, 0.854, 0.022), against F1 0.762, AUPRC 0.840 and ECE 0.031 for one deterministic LSTM. In PyHazards: ``base_model="wildfire_forecasting"``, ``base_kwargs={"hidden_size": 128}``, ``num_members=10``.
+- `Spatial Uncertainty Quantification in Wildfire Forecasting for Climate-Resilient Emergency Planning `_: Chakravarty, NeurIPS 2025 workshop Tackling Climate Change with Machine Learning. Deep ensemble of U-TAE models (about 1.1M parameters, dropout 0.1 after the temporal attention) trained with distinct random seeds, each run with MC dropout (20 forward passes) at inference, on WildfireSpreadTS (5-day inputs, vegetation and active-fire features, 128 x 128 crops, AdamW lr 0.01 and weight decay 0.01, weighted BCE, 10,000 steps, batch 32, 12-fold cross-validation). The ensemble size is not stated and no code was released. Calibration, 12-fold mean (Table 2): ECE 0.512 +- 0.018, Brier score 0.265 +- 0.009, NLL 0.731 +- 0.023 (MC dropout 0.536 / 0.294 / 0.805, BNN 0.525 / 0.283 / 0.794). In PyHazards: ``base_model="utae"``, ``task="segmentation"``, ``mc_dropout_passes=20``.
+
+Reproduction
+------------
+
+- **Reference implementation:** `https://github.com/Orion-AI-Lab/uncertainty-wildfires `__ at ``fcfbfb8`` (MIT)
+- **Checked configuration:** The deep ensemble of Kondylatos et al. (2025): ten SimpleLSTM members (models/model.py, output_lstm 128, dropout 0.5, 25 features; configs/config_det.json) seeded as in the released checkpoints trained_models/ensembles/no-noisy/ensembles--checkpoint.pth, aggregated by utils/train_functions.py ``uncertainties`` as in test.py (configs_test/config_des.json, num_models 10), also with test-time dropout and several passes per member. PyHazards members are ``wildfire_forecasting`` LSTMs with hidden_size 128 (104,308 parameters each).
+- **Parameter count:** 1,043,080
+- **Verified:** parameter count, seeded initialisation, parameter names and shapes, forward outputs, official pretrained weights
+- **Oracle test:** ``tests/oracle/test_deep_ensemble_oracle.py``
+- **Deviation:** Lakshminarayanan et al. released no code. The mean/variance regression path (softplus variance plus 1e-6, Gaussian NLL, moment-matched mixture) and the FGSM adversarial training are rebuilt from the paper's Section 2 and Algorithm 1 and covered by plain tests only; Kondylatos et al. (2025) use neither.
+- **Deviation:** ``DeepEnsemble.fit`` is a generic independent-training loop (any loss, an optimizer per member, member-seeded shuffling). It does not reproduce the reference training script (StepLR schedule, burned-area loss scaling, validation monitoring); train the members with that recipe to reproduce the paper.
+- **Deviation:** The reference members return logits and ``wildfire_forecasting`` returns log-probabilities; the ensemble applies a softmax to either, so the probabilities are the same (checked).
+- **Deviation:** The epistemic term is computed as a population variance (``var(unbiased=False)``) instead of the reference's ``E[p^2] - E[p]^2``: the same quantity without cancellation error, equal within 1e-6 in the oracle test.
+- **Deviation:** The aleatoric-noise heads (Collier et al.), Bayes-by-Backprop and MC-dropout-only models of Kondylatos et al. (2025) are not part of this entry.
+
+Registry Name
+-------------
+
+Primary entrypoint: ``deep_ensemble``
+
+Supported Tasks
+---------------
+
+- Classification
+- Segmentation
+- Forecasting
+
+Programmatic Use
+----------------
+
+.. code-block:: python
+
+ import torch
+ from pyhazards.models import build_model
+ from pyhazards.models.deep_ensemble import input_range_epsilon
+
+ # Kondylatos et al. (2025): ten next-day danger LSTMs
+ ensemble = build_model(
+ name="deep_ensemble",
+ task="classification",
+ base_model="wildfire_forecasting",
+ base_kwargs={"hidden_size": 128},
+ num_members=10,
+ )
+ x = torch.randn(4, 45, 25)
+ log_probs = ensemble(x) # log of the mean member probability, (4, 2)
+ terms = ensemble.predict_uncertainty(x)
+ print(terms["probs"].shape, terms["epistemic"].shape, terms["mutual_information"].shape)
+
+ # Algorithm 1: train each member on its own, optionally with FGSM adversarial examples
+ x_train, y_train = torch.randn(64, 45, 25), torch.randint(0, 2, (64,))
+ ensemble.fit(
+ x_train,
+ y_train,
+ loss_fn=torch.nn.NLLLoss(),
+ optimizer_factory=lambda params: torch.optim.Adam(params, lr=1e-3),
+ epochs=1,
+ adversarial_epsilon=input_range_epsilon(x_train),
+ )
+
+Notes
+-----
+
+- Outputs per task: multi-class classification / segmentation give ``log`` of the mixture probability (``exp`` for probabilities; ``nn.NLLLoss`` applies); one-channel binary outputs give the logit of the mixture probability (``sigmoid`` for probabilities); regression gives ``(mean, variance)``. With ``regression_output="gaussian"`` (default, the paper) members must output ``2K`` channels along dim 1, K means then K raw variances; ``regression_output="point"`` uses point-prediction members and their spread as the variance.
+
+- ``Trainer.fit`` refuses the ensemble (training the averaged output as one network would not be a deep ensemble). Use ``ensemble.fit`` or train each of ``ensemble.members`` separately; ``Trainer.evaluate`` and ``Trainer.predict`` work on the ensemble.
+
+- The builder restores the global random state after seeding the members, so building an ensemble does not change later random draws. Member ``m`` equals ``build_model(base_model, ...)`` called right after ``torch.manual_seed(seeds[m])``.
+
+- Cost scales with the number of members (and MC-dropout passes): ten 104k-parameter LSTMs for the Kondylatos configuration, about 11M parameters for ten U-TAE members.
+
diff --git a/docs/source/modules/models_deeplabv3.rst b/docs/source/modules/models_deeplabv3.rst
new file mode 100644
index 00000000..3608e86f
--- /dev/null
+++ b/docs/source/modules/models_deeplabv3.rst
@@ -0,0 +1,135 @@
+.. This file is generated by scripts/render_model_docs.py. Do not edit by hand.
+
+DeepLabV3
+=========
+
+Overview
+--------
+
+``deeplabv3`` runs a ResNet encoder at output stride 8 (the strides of ``layer3`` and ``layer4`` replaced by dilation 2 and 4) and applies atrous spatial pyramid pooling to its deepest feature: a 1x1 branch, three 3x3 atrous branches at rates 12, 24 and 36 and an image-pooling branch, each with 256 filters, batch normalisation and ReLU, concatenated and projected by a 1x1 convolution with dropout 0.5. A 3x3 convolution, a 1x1 classifier and bilinear up-sampling by 8 return logits at the input resolution.
+
+At a Glance
+-----------
+
+.. grid:: 1 2 4 4
+ :gutter: 2
+ :class-container: catalog-grid
+
+ .. grid-item-card:: Hazard Family
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ Wildfire
+
+ .. container:: catalog-stat-note
+
+ Public catalog grouping used for this model.
+
+ .. grid-item-card:: Maturity
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ Implemented
+
+ .. container:: catalog-stat-note
+
+ Catalog maturity label used on the index page.
+
+ .. grid-item-card:: Tasks
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ 1
+
+ .. container:: catalog-stat-note
+
+ Segmentation
+
+ .. grid-item-card:: Benchmark Family
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ :doc:`Wildfire Benchmark `
+
+ .. container:: catalog-stat-note
+
+ Primary benchmark-family link used for compatible evaluation coverage.
+
+
+Description
+-----------
+
+``deeplabv3`` runs a ResNet encoder at output stride 8 (the strides of ``layer3`` and ``layer4`` replaced by dilation 2 and 4) and applies atrous spatial pyramid pooling to its deepest feature: a 1x1 branch, three 3x3 atrous branches at rates 12, 24 and 36 and an image-pooling branch, each with 256 filters, batch normalisation and ReLU, concatenated and projected by a 1x1 convolution with dropout 0.5. A 3x3 convolution, a 1x1 classifier and bilinear up-sampling by 8 return logits at the input resolution.
+
+The implementation reproduced is ``segmentation_models_pytorch.DeepLabV3`` (smp 0.3.2; the code path is identical from 0.2.0 to 0.3.4), because Shadrin et al. describe their models in smp's terms ("encoder backbone ResNet18, number of stages used in encoder equals to 3 ... default values for the other hyperparameters") and report smp's ``micro-imagewise`` metric reduction. It is ported to plain PyTorch with smp's parameter names, creation order and initialisation, so smp state dicts load with ``strict=True``; ``encoder_weights="imagenet"`` loads the ImageNet ResNet and adapts the stem to the input channels the way smp does.
+
+The builder defaults are Shadrin et al.'s configuration: ResNet-18 with three encoder stages and 58 input channels (the 3-day horizon), on 32 x 32 tiles. With three stages the ASPP runs on the 128-channel, stride-8 output of ``layer2``; smp still builds (and dilates) ``layer3`` and ``layer4``, whose 10,493,440 parameters are kept for state-dict compatibility although the forward pass never uses them. The ``DeepLabV3`` class itself defaults to smp's ResNet-34 with five stages.
+
+Benchmark Compatibility
+-----------------------
+
+**Primary benchmark family:** :doc:`Wildfire Benchmark `
+
+External References
+-------------------
+
+**Paper:** `Rethinking Atrous Convolution for Semantic Image Segmentation `_ | **Repo:** `Repository `__
+
+Used In
+-------
+
+- `Wildfire spreading prediction using multimodal data and deep neural network approach `_: Shadrin et al., Scientific Reports 14:2606 (2024). DeepLabV3 with "encoder backbone ResNet18, number of stages used in encoder equals to 3 ... default values for the other hyperparameters" (smp defaults: 256 ASPP channels, output stride 8, rates 12/24/36, ImageNet encoder weights), compared with U-Net, U-Net++ and MA-Net. 947 fires of 2021-2022 in Krasnoyarsk, Irkutsk and Sakha, split 4:1. Input: 32 x 32 tiles (21 x 21 km at 650 m around the ignition point; the data are first resampled to 128 x 128 at 0.0059435 degrees) with one ignition layer, 21 static layers (17 land-cover masks, elevation, aspect, slope, population), 6 MODIS vegetation layers and 10 ERA5-Land/MODIS weather layers per forecast day: 58 channels for 3 days, 78 for 5. Target: burned-area mask. F1 for the day-3 forecast (micro-imagewise, Table 3) with BCE 0.64, Dice 0.66, focal 0.63, Dice + focal 0.65, generalized Dice 0.66 and Tversky 0.66 (+- 0.004 to 0.006); the selected MA-Net reaches 0.67. Only MA-Net's training setup is given (Adam, lr 3e-3, L2 1e-5, OneCycleLR, 35 epochs, batch 32). No code was released; data on request.
+
+Reproduction
+------------
+
+- **Reference implementation:** `https://github.com/qubvel-org/segmentation_models.pytorch `__ at ``v0.3.2`` (MIT (the ASPP/decoder file is from torchvision, BSD-3-Clause))
+- **Checked configuration:** smp.DeepLabV3(encoder_name="resnet18", encoder_depth=3, encoder_weights=None, in_channels=58, classes=1) on 2 x 58 x 32 x 32 inputs (Shadrin et al.), plus smp's defaults (ResNet-34, five stages, 26,007,105 parameters), ResNet-18 with four and five stages, and the ImageNet-initialised 58-channel stem. The decoder and 1x1 classifier are also checked against torchvision's DeepLabHead.
+- **Parameter count:** 13,220,609
+- **Verified:** parameter count, seeded initialisation, parameter names and shapes, forward outputs, official pretrained weights
+- **Oracle test:** ``tests/oracle/test_deeplabv3_oracle.py``
+- **Deviation:** ``encoder_weights`` defaults to None, so building the model downloads nothing; smp's default (which Shadrin et al. kept) is "imagenet". Pass ``encoder_weights="imagenet"`` to match it.
+- **Deviation:** Inputs whose height or width is not divisible by the output stride raise ValueError instead of smp's RuntimeError, and ``encoder_depth`` outside smp's documented range [3, 5] raises ValueError (smp builds such a model, but its fixed x8 up-sampling then no longer restores the input size).
+
+Registry Name
+-------------
+
+Primary entrypoint: ``deeplabv3``
+
+Supported Tasks
+---------------
+
+- Segmentation
+
+Programmatic Use
+----------------
+
+.. code-block:: python
+
+ import torch
+ from pyhazards.models import build_model
+
+ # Shadrin et al. (2024): ResNet-18, three encoder stages, 58 channels for a 3-day horizon.
+ model = build_model(name="deeplabv3", task="segmentation", in_channels=58)
+ logits = model(torch.randn(2, 58, 32, 32))
+ print(logits.shape) # (2, 1, 32, 32)
+
+ # smp's own defaults (ResNet-34, five stages); encoder_weights="imagenet" downloads ImageNet weights.
+ smp_default = build_model(name="deeplabv3", task="segmentation", in_channels=3,
+ encoder_name="resnet34", encoder_depth=5)
+
+Notes
+-----
+
+- smp's DeepLabV3 differs from the paper's network: it keeps output stride 8 throughout (the paper trains at 16 with rates 6/12/18 and evaluates at 8 with 12/24/36), has no multi-grid, dilates every convolution of the dilated stages including the first block's (torchvision keeps the previous dilation there), adds a 3x3 convolution after the ASPP and dropout 0.5 in the projection (both from torchvision), uses ResNet-18/34 rather than ResNet-50/101, and up-samples the logits with align_corners=True.
+
+- On Shadrin et al.'s 32 x 32 tiles with three encoder stages the ASPP sees 4 x 4 features, so the rate-12/24/36 branches reach only padding outside their centre tap and act as 1x1 convolutions (the degenerate case discussed in the DeepLabV3 paper).
+
+- smp 0.3.x never calls its initialize() for DeepLabV3, so the decoder and head keep PyTorch's default initialisation; the port does the same.
+- The image-pooling branch has batch normalisation on a 1 x 1 map, so training needs a batch size above 1, as in smp and torchvision.
+- Height and width must be divisible by 8. Encoders: resnet18 and resnet34. smp's auxiliary classification head (aux_params) and output activation are not ported.
+- This is DeepLabV3, not DeepLabV3+; no wildfire paper in the PyHazards inventory used V3+.
diff --git a/docs/source/modules/models_earthfarseer.rst b/docs/source/modules/models_earthfarseer.rst
new file mode 100644
index 00000000..a9a9e048
--- /dev/null
+++ b/docs/source/modules/models_earthfarseer.rst
@@ -0,0 +1,136 @@
+.. This file is generated by scripts/render_model_docs.py. Do not edit by hand.
+
+Earthfarseer
+============
+
+Overview
+--------
+
+``earthfarseer`` maps ``T`` input frames ``(batch, T, C, H, W)`` to the next ``T`` frames (Wu et al., AAAI 2024). The spatial block FoTF runs a global Fourier transformer (16x16 patches, 12 blocks of width 768 whose token mixing is an adaptive Fourier neural operator, then three transposed convolutions back to pixels) next to a local convolution branch, and lets the two exchange features three times. A strided convolutional encoder (``hid_S`` channels, ``N_S`` layers) compresses each frame; TeDev stacks the frames as channels and runs a U-shaped stack of multi-kernel Inception blocks (``N_T`` down, ``N_T`` up, ``hid_T`` channels) with 12 Fourier blocks at its bottleneck; a mirrored decoder returns to pixels, and the output of a complete SimVP network on the raw input is added.
+
+At a Glance
+-----------
+
+.. grid:: 1 2 4 4
+ :gutter: 2
+ :class-container: catalog-grid
+
+ .. grid-item-card:: Hazard Family
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ Wildfire
+
+ .. container:: catalog-stat-note
+
+ Public catalog grouping used for this model.
+
+ .. grid-item-card:: Maturity
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ Implemented
+
+ .. container:: catalog-stat-note
+
+ Catalog maturity label used on the index page.
+
+ .. grid-item-card:: Tasks
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ 2
+
+ .. container:: catalog-stat-note
+
+ Forecasting, Segmentation
+
+ .. grid-item-card:: Benchmark Family
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ :doc:`Wildfire Benchmark `
+
+ .. container:: catalog-stat-note
+
+ Primary benchmark-family link used for compatible evaluation coverage.
+
+
+Description
+-----------
+
+``earthfarseer`` maps ``T`` input frames ``(batch, T, C, H, W)`` to the next ``T`` frames (Wu et al., AAAI 2024). The spatial block FoTF runs a global Fourier transformer (16x16 patches, 12 blocks of width 768 whose token mixing is an adaptive Fourier neural operator, then three transposed convolutions back to pixels) next to a local convolution branch, and lets the two exchange features three times. A strided convolutional encoder (``hid_S`` channels, ``N_S`` layers) compresses each frame; TeDev stacks the frames as channels and runs a U-shaped stack of multi-kernel Inception blocks (``N_T`` down, ``N_T`` up, ``hid_T`` channels) with 12 Fourier blocks at its bottleneck; a mirrored decoder returns to pixels, and the output of a complete SimVP network on the raw input is added.
+
+The default is the official ``Earthfarseer_model(shape_in=(10, 1, 64, 64))`` (the paper's Moving MNIST setting, 10 -> 10 frames): hid_S 512, hid_T 256, N_S 4, N_T 8, Inception kernels 3/5/7/11 with 8 groups, 157,518,863 parameters. The official code has no license, so the model is written from the paper and permissively licensed parts (OpenSTL's SimVP Inception block, Apache-2.0); parameter names and creation order follow the official code, so its state dicts load with ``strict=True`` and the same seed gives the same weights.
+
+``task="forecasting"`` returns the frame forecast. ``task="segmentation"`` is a PyHazards adaptation for next-step fire masks: a 1x1 convolution (``segmentation_head``) maps the channels of the first predicted frame to ``out_channels`` logits ``(batch, 1, H, W)``; the Earthfarseer parameters keep their official names at the top level of the state dict.
+
+Benchmark Compatibility
+-----------------------
+
+**Primary benchmark family:** :doc:`Wildfire Benchmark `
+
+External References
+-------------------
+
+**Paper:** `Earthfarseer: Versatile Spatio-Temporal Dynamical Systems Modeling in One Model `_ | **Repo:** `Repository `__
+
+Used In
+-------
+
+- `Sim2Real-Fire: A Multi-modal Simulation Dataset for Forecast and Backtracking of Real-world Forest Fire `_ (`repo `__): Li et al., NeurIPS 2024 Datasets and Benchmarks. Listed as "Earthfarsser" among the AI baselines of Table 2, trained on simulated wildfire scenarios and tested on simulated and real-world fires (binary fire-area sequences with satellite, topography, vegetation, fuel and weather inputs). Forecast AUPRC / F1 / IoU: 73.4 / 70.6 / 63.5 (simulation) and 62.4 / 60.5 / 49.2 (real world); backtracking: 69.3 / 68.5 / 50.9 and 51.6 / 49.4 / 37.5. Configuration not published: the paper only calls the baselines "commonly used AI models that can be easily adapted", and its repository contains only S2R-FireTr (3 input frames at 256x256), so the input stacking, model size, loss and output head of this baseline are unknown. These numbers are not reproduced by PyHazards.
+
+Reproduction
+------------
+
+- **Reference implementation:** `https://github.com/Alexander-wu/EarthFarseer `__ at ``258d4bb`` (none (no LICENSE file; the README's Apache-2.0 badge links to OpenSTL's licence and does not license this repository); used only as a test oracle, not copied)
+- **Checked configuration:** Earthfarseer_model(shape_in=(10, 1, 64, 64)) with its defaults hid_S=512, hid_T=256, N_S=4, N_T=8, incep_ker=[3, 5, 7, 11], groups=8 (timm 0.9.16 as in the official requirements): 157,518,863 parameters, seeded initialisation and outputs compared locally with PYHAZARDS_ORACLE_LARGE=1 (bit-identical in eval and train mode). CI compares three reduced models (other frame counts, channels, sizes, N_S 2/4/6, N_T 2/3, kernels and groups) in which only the hard-coded FoTF transformer width and depth (768, 12) are overridden in the official GF_Block call, plus official state dicts loaded into the builder's forecasting and segmentation models.
+- **Parameter count:** 157,518,863
+- **Verified:** parameter count, seeded initialisation, parameter names and shapes, forward outputs
+- **Oracle test:** ``tests/oracle/test_earthfarseer_oracle.py``
+- **Deviation:** task="segmentation" (first predicted frame, 1x1 convolution to out_channels logits) is a PyHazards adaptation, not from Sim2Real-Fire, whose baseline heads are unpublished.
+- **Deviation:** The official model sizes the TeDev Fourier token grid as int(H / 2 ** (N_S / 2)), plus 1 when H is divisible by 3. Because H must be a multiple of 16, this disagrees with the real latent size, and the official forward fails, whenever H is divisible by 3 (48, 96, ..., 384) or N_S is odd. PyHazards uses the real latent size, which equals the official value wherever the official model runs.
+- **Deviation:** The official FoTF builds its transformer for H x H (img_size=H), so non-square inputs fail its patch-embedding assertion; PyHazards builds it for H x W.
+- **Deviation:** gf_embed_dim, gf_depth and num_interactions are hard-coded in the official model (768, 12, 3); PyHazards exposes them only to build smaller models (smoke tests). Their defaults give the official network.
+
+Registry Name
+-------------
+
+Primary entrypoint: ``earthfarseer``
+
+Supported Tasks
+---------------
+
+- Forecasting
+- Segmentation
+
+Programmatic Use
+----------------
+
+.. code-block:: python
+
+ import torch
+ from pyhazards.models import build_model
+
+ # Official default: 10 frames of 1 x 64 x 64 -> the next 10 frames (157.5M parameters).
+ model = build_model(name="earthfarseer", task="forecasting")
+ x = torch.randn(2, 10, 1, 64, 64) # (batch, time, channels, height, width)
+ print(model(x).shape) # (2, 10, 1, 64, 64)
+
+ # PyHazards next-step fire-mask adaptation on 3 frames of 4 channels at 128 x 128.
+ seg = build_model(name="earthfarseer", task="segmentation", in_channels=4, history=3, img_size=128)
+ print(seg(torch.randn(2, 3, 4, 128, 128)).shape) # (2, 1, 128, 128)
+
+Notes
+-----
+
+- The output has as many frames as the input. The paper's temporal projection to other lengths (10 -> 30, 50 -> 50 frames) is not in the released code, so it is not provided.
+- Height and width must be multiples of 16 (FoTF patches and its 16x transposed-convolution head) and of the encoder stride; the parameter count depends on the frame count and size (for example 145,121,999 for 3 frames of 1 x 256 x 256).
+- Kept from the official code because they change outputs or parameter counts: the same global transformer and local branch are applied seven times inside FoTF; the transformer MLP replaces fc2 by an average pool over groups of four hidden features (fc2 is built but unused); the Fourier operator's second layer computes its imaginary part from the already updated real part; a second encoder (enc) is built but unused; the added SimVP branch (skip_conneciton, spelling kept) has fixed sizes 16 / 256 / 4 / 8.
+- Where the paper and the released code differ, PyHazards follows the code: the local branch is one 1x1 transposed convolution (the paper describes 3x3 ConvNormReLU units), the FoTF up-exchange is a transposed convolution and the down-exchange a convolution (the paper states the reverse), and the TeDev kernels are 3/5/7/11 (the paper lists 1/3/7/11).
+- Every dropout and stochastic-depth rate is 0 in the official model, so training and evaluation mode give the same outputs (GroupNorm and LayerNorm only).
+- No official pretrained weights were found.
diff --git a/docs/source/modules/models_earthformer.rst b/docs/source/modules/models_earthformer.rst
new file mode 100644
index 00000000..9df24efe
--- /dev/null
+++ b/docs/source/modules/models_earthformer.rst
@@ -0,0 +1,142 @@
+.. This file is generated by scripts/render_model_docs.py. Do not edit by hand.
+
+Earthformer
+===========
+
+Overview
+--------
+
+``earthformer`` forecasts a sequence of future frames from past frames (Gao et al., NeurIPS 2022). Cuboid attention splits the (time, height, width) tensor into cuboids and attends inside each; the "axial" pattern used for all released models stacks three of them, (T, 1, 1), (1, H, 1) and (1, 1, W), each with a pre-LN feed-forward layer, and optional global vectors exchange information between cuboids. Convolutions with patch merging first reduce the frames (12x for SEVIR), a two-level encoder follows (patch merging between levels), and a non-autoregressive decoder starts from learned query frames (the projected positional embedding), alternates self-attention with cross-attention to the encoder memory of each level and upsamples back to the input resolution.
+
+At a Glance
+-----------
+
+.. grid:: 1 2 4 4
+ :gutter: 2
+ :class-container: catalog-grid
+
+ .. grid-item-card:: Hazard Family
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ Wildfire
+
+ .. container:: catalog-stat-note
+
+ Public catalog grouping used for this model.
+
+ .. grid-item-card:: Maturity
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ Implemented
+
+ .. container:: catalog-stat-note
+
+ Catalog maturity label used on the index page.
+
+ .. grid-item-card:: Tasks
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ 2
+
+ .. container:: catalog-stat-note
+
+ Forecasting, Segmentation
+
+ .. grid-item-card:: Benchmark Family
+ :class-card: catalog-stat-card
+
+ .. container:: catalog-stat-value
+
+ :doc:`Wildfire Benchmark `
+
+ .. container:: catalog-stat-note
+
+ Primary benchmark-family link used for compatible evaluation coverage.
+
+
+Description
+-----------
+
+``earthformer`` forecasts a sequence of future frames from past frames (Gao et al., NeurIPS 2022). Cuboid attention splits the (time, height, width) tensor into cuboids and attends inside each; the "axial" pattern used for all released models stacks three of them, (T, 1, 1), (1, H, 1) and (1, 1, W), each with a pre-LN feed-forward layer, and optional global vectors exchange information between cuboids. Convolutions with patch merging first reduce the frames (12x for SEVIR), a two-level encoder follows (patch merging between levels), and a non-autoregressive decoder starts from learned query frames (the projected positional embedding), alternates self-attention with cross-attention to the encoder memory of each level and upsamples back to the input resolution.
+
+The module is a port of the official ``CuboidTransformerModel`` (Apache-2.0) with its parameter names, creation order and initialisation, so the official state dicts load with ``strict=True`` and the same seed gives the same weights. ``config`` selects an official configuration file: ``sevir`` (earthformer_sevir_v1.yaml, the released SEVIR checkpoint, default), ``sevir_lr``, ``moving_mnist`` / ``nbody`` and ``enso`` (the released ICAR-ENSO checkpoint); any constructor argument can be overridden. ``pretrained="sevir"`` or ``"icarenso2021"`` loads the official weights.
+
+``task="forecasting"`` maps ``(batch, history, in_channels, H, W)`` to ``(batch, horizon, out_channels, H, W)``; ``task="segmentation"`` is the same network predicting one frame with one channel and returns next-fire-mask logits ``(batch, 1, H, W)``. The official code works in ``(batch, T, H, W, C)``; ``CuboidTransformerModel`` keeps that layout.
+
+Benchmark Compatibility
+-----------------------
+
+**Primary benchmark family:** :doc:`Wildfire Benchmark `
+
+External References
+-------------------
+
+**Paper:** `Earthformer: Exploring Space-Time Transformers for Earth System Forecasting `_ | **Repo:** `Repository `__
+
+Used In
+-------
+
+- `Sim2Real-Fire: A Multi-modal Simulation Dataset for Forecast and Backtracking of Real-world Forest Fire `_ (`repo `__): Li et al., NeurIPS 2024 Datasets and Benchmarks. Models are trained on about 1M simulated wildfire scenarios (FARSITE, WFDS, WRF-SFIRE) and tested on simulated and about 1K real scenarios; the input is the source sequence of binary fire-area masks with satellite image sequences, topography, vegetation, fuel maps and weather, and the target is the future (forecast) or past (backtracking) mask sequence. Earthformer is one of the "commonly used AI models that can be easily adapted" (Sec. 4.1). Table 2 (AUPRC / F1 / IoU, %): forecast 77.2 / 73.5 / 59.7 on simulated and 65.4 / 61.7 / 50.1 on real-world data; backtracking 71.4 / 63.0 / 48.1 and 53.4 / 51.3 / 41.7. Tables 4 and 6 report the AUPRC without each modality. Configuration not published: the paper and the repository (which contains only S2R-FireTr) give no Earthformer hyperparameters, input stacking, resolution, loss or output head; S2R-FireTr itself uses 3 input frames at 256 x 256.
+
+Reproduction
+------------
+
+- **Reference implementation:** `https://github.com/amazon-science/earth-forecasting-transformer/blob/7732b03bdb366110563516c3502315deab4c2026/src/earthformer/cuboid_transformer/cuboid_transformer.py `__ at ``7732b03`` (Apache-2.0 (Copyright Amazon.com, Inc. or its affiliates))
+- **Checked configuration:** CuboidTransformerModel built as the official training scripts build it from the model section of scripts/cuboid_transformer/sevir/earthformer_sevir_v1.yaml (13 x 384 x 384 -> 12 frames, base 128 channels, stack-conv down-sampling 3-2-2 to 32 x 32, one axial block per level, 8 global vectors with separate projections and global self-attention, 8,659,677 parameters) and moving_mnist/cfg.yaml (10 x 64 x 64 -> 10, base 64, four blocks per level, no global vectors, 6,702,109), plus sevir/cfg_sevirlr.yaml (1,505,069), enso/earthformer_enso_v1.yaml (1,394,325), six configurations with other patterns and options, and the official earthformer_sevir.pt and earthformer_icarenso2021.pt checkpoints (sha256-pinned Internet Archive copies). Seeded initialisation, eval and train-mode outputs and gradients are compared; architecture checks run at 13 x 48 x 48 and 13 x 50 x 50 (SEVIR) and 10 x 32 x 32 (Moving-MNIST), the checkpoints at 13 x 384 x 384 and 12 x 24 x 48.
+- **Parameter count:** 8,659,677
+- **Verified:** parameter count, seeded initialisation, parameter names and shapes, forward outputs, official pretrained weights
+- **Oracle test:** ``tests/oracle/test_earthformer_oracle.py``
+- **Deviation:** task="segmentation" is a PyHazards adaptation, not from Sim2Real-Fire (whose Earthformer setup is unpublished): the network is built with target_shape (1, H, W, 1) and its single predicted frame is returned as (batch, 1, H, W) logits. Parameter names are those of CuboidTransformerModel (no prefix).
+- **Deviation:** Earthformer and EarthformerSegmenter take (batch, time, channels, H, W) and permute to the official (batch, time, H, W, channels) layout; CuboidTransformerModel keeps the official layout. Inputs must have exactly the configured shape (ValueError otherwise); the official code also accepts sizes that pad to the same token grid and then returns the configured output size.
+- **Deviation:** Three paths that only raise errors in the official code work here: PatchMerging3D pads when only the time axis needs padding (the official test reads "pad_h or pad_h or pad_w"), the CTHW layout of Upsample3DLayer (official: undefined self.output_size), and cuboid cross-attention with padding_type "zeros" or "nearest" when padding is needed (official: undefined mask; here padded entries count as tokens, as in the self-attention mask). None of them is reached by the official configurations.
+- **Deviation:** Only CuboidTransformerModel is ported. CuboidTransformerAuxModel and the U-Net decoder (cuboid_transformer_unet_dec.py, used for EarthNet2021 with auxiliary inputs and the earthformer_earthnet2021.pt checkpoint) and the unused DownSampling3D layer are not.
+
+Registry Name
+-------------
+
+Primary entrypoint: ``earthformer``
+
+Supported Tasks
+---------------
+
+- Forecasting
+- Segmentation
+
+Programmatic Use
+----------------
+
+.. code-block:: python
+
+ import torch
+ from pyhazards.models import build_model
+
+ # Released SEVIR configuration: 13 frames of 384 x 384 VIL (scaled to [0, 1]) -> 12 frames.
+ model = build_model(name="earthformer", task="forecasting") # 8,659,677 parameters
+ # Official SEVIR weights (Apache-2.0, downloaded and sha256-checked on first use):
+ # model = build_model(name="earthformer", task="forecasting", pretrained="sevir")
+ model.eval()
+ with torch.no_grad():
+ frames = model(torch.rand(1, 13, 1, 384, 384)) # (batch, time, channels, H, W)
+ print(frames.shape) # (1, 12, 1, 384, 384)
+
+ # Next-fire-mask adaptation (PyHazards): 3 days of 8 channels at 256 x 256 -> one mask logit map.
+ fire = build_model(name="earthformer", task="segmentation", history=3, in_channels=8, img_size=256)
+ print(fire(torch.randn(2, 3, 8, 256, 256)).shape) # (2, 1, 256, 256)
+
+Notes
+-----
+
+- Parameter counts in the paper. The released configurations are smaller than the models in the paper's tables (15.1M on SEVIR, 7.6M on Moving-MNIST, N-body MNIST and ICAR-ENSO), and the official class reproduces the paper's numbers exactly when built from them as follows (checked against the official code): SEVIR with enc_depth = dec_depth = [2, 2], two cuboid attention blocks per level as listed in the paper's Table 9 (the released v1 file has one), gives 13,075,029 without global vectors (13.1M, "w/o global") and 15,082,069 (15.1M) with eight global vectors that share the local q/k/v projections and have no FFN of their own; Moving-MNIST cfg.yaml with "t+h+w" instead of "t+hw" positional embeddings (-90,112) gives 6,611,997 (6.61M, "Axial" / "w/o global") and 7,610,781 (7.61M) with those global vectors; ICAR-ENSO with four blocks per level (the Moving-MNIST architecture, paper Table 8) gives 6,601,293 and 7,600,077 (6.6M / 7.6M). The counts also fix that the decoder self-attention uses no global vectors (which would add parameters); whether the decoder cross-attention and the global self-attention use them does not change the count. The appendix equations show a global FFN, but with it the totals would not match. The released v1 files instead use one block per level, and SEVIR v1 uses separate global projections with global self-attention.
+
+- Official weights: earthformer_sevir.pt (SEVIR, 34.8 MB) and earthformer_icarenso2021.pt (ICAR-ENSO, 5.7 MB) are plain CuboidTransformerModel state dicts for the sevir and enso presets. The S3 bucket of the README (earthformer.s3.amazonaws.com) answered HTTP 403 on 2026-10-07; pretrained= tries it first and then the Internet Archive capture of 2025-05-17, whose SHA-1 equals the archived original (S3 Last-Modified 2023-07-14), and checks the pinned sha256. The SEVIR model expects VIL divided by 255 in (batch, 13, 1, 384, 384) and was trained with MSE. No Moving-MNIST or N-body weights were released.
+
+- Behaviour of the official code that is kept because it changes outputs: cuboid patterns are computed from the encoder memory shapes, so the decoder's temporal cuboids hold T_in frames; with T_out < T_in they shrink and the relative-position bias table is sliced as a flattened index (exact when only the outermost non-unit cuboid axis shrinks, as with the axial pattern), and with T_out > T_in (ICAR-ENSO, 12 -> 14) the decoder frames are padded to a multiple of T_in. With padding_type "zeros" (all official files) padded positions take part in attention as zero vectors. z_init_method "zeros" makes the decoder queries the projected positional embedding, independent of the input.
+
+- Sizes that the initial down-sampling does not divide (for example 256 with the 12x SEVIR stack) are zero-padded inside the patch merging, and the final upsampling returns the configured size. Gradient checkpointing (checkpoint_level 1 or 2) uses the reentrant variant as the official code does; all official configuration files set checkpoint_level 0.
+
diff --git a/docs/source/modules/models_eqnet.rst b/docs/source/modules/models_eqnet.rst
index 649727af..63d53859 100644
--- a/docs/source/modules/models_eqnet.rst
+++ b/docs/source/modules/models_eqnet.rst
@@ -6,7 +6,7 @@ EQNet
Overview
--------
-``eqnet`` extends the PyHazards earthquake benchmark stack with a lightweight attention-based picking model.
+``eqnet`` takes station gathers ``(batch, stations, 3, samples)`` (E, N, Z at 100 Hz) and, for detection, travel times ``(batch, stations, candidates, 2)`` (P and S, seconds) from every station to every candidate hypocentre; ``eqnet_travel_times`` computes them for a uniform velocity model (the paper's 6 km/s and 3.4 km/s) from station and candidate coordinates in km (``eqnet_candidate_grid``: the paper's ~4 km grid), any travel-time table can be passed instead, and ``station_mask`` marks padded stations. It returns ``{"phase": (batch, stations, 2, samples / 2), "event": (batch, candidates, samples / 32)}`` probabilities (logits with ``logits=True``).
At a Glance
-----------
@@ -42,11 +42,11 @@ At a Glance
.. container:: catalog-stat-value
- 1
+ 2
.. container:: catalog-stat-note
- Phase Picking
+ Picking, Detection
.. grid-item-card:: Benchmark Family
:class-card: catalog-stat-card
@@ -63,21 +63,39 @@ At a Glance
Description
-----------
-``eqnet`` extends the PyHazards earthquake benchmark stack with a lightweight attention-based picking model.
+``eqnet`` takes station gathers ``(batch, stations, 3, samples)`` (E, N, Z at 100 Hz) and, for detection, travel times ``(batch, stations, candidates, 2)`` (P and S, seconds) from every station to every candidate hypocentre; ``eqnet_travel_times`` computes them for a uniform velocity model (the paper's 6 km/s and 3.4 km/s) from station and candidate coordinates in km (``eqnet_candidate_grid``: the paper's ~4 km grid), any travel-time table can be passed instead, and ``station_mask`` marks padded stations. It returns ``{"phase": (batch, stations, 2, samples / 2), "event": (batch, candidates, samples / 32)}`` probabilities (logits with ``logits=True``).
-The implementation keeps the shared waveform input and two-pick output contract so it can be evaluated alongside ``phasenet`` and ``eqtransformer``.
+Feature extraction (Figure 3a, 996,960 parameters): a 1-D ResNet-18 with 32 / 64 / 128 / 256 channels and a final 1x1 convolution to 128 features at 1/32 of the sampling rate, applied to every station. Phase picking (Figure 3b): one sub-network for P on feature channels 0-63 and one for S on 64-127, each two convolution / batch-norm / ReLU layers with x4 upsampling and an output convolution. The shift-and-stack module reads the P features ``t_P`` and the S features ``t_S`` later at every station, so that an event's features align on its origin time at its true location, and averages over stations; the event detection network (Figure 3c) turns the aligned features into an activation over origin time for every candidate. ``extract_picks`` keeps activation peaks above 0.5, ``extract_events`` takes origin times from the peaks of the maximum over candidates and the location as the geometric median of the 20 most activated candidates (Section 2.2). ``EQNetLoss`` is the sum of the three binary cross-entropies (equation 1).
+
+For single-station picking (the paper's STEAD evaluation) ``annotate`` takes ``(n, 3, samples)`` windows and the ``earthquake.picking`` benchmark scores the P / S picks. There is no multi-station detection benchmark task yet, and no weights exist: EQNet must be trained before use.
Benchmark Compatibility
-----------------------
**Primary benchmark family:** :doc:`Earthquake Benchmark `
-**Mapped benchmark ecosystems:** :doc:`SeisBench `
-
External References
-------------------
-**Paper:** `An End-To-End Earthquake Detection Method for Joint Phase Picking and Association Using Deep Learning `_ | **Repo:** `Repository `__
+**Paper:** `An End-to-End Earthquake Detection Method for Joint Phase Picking and Association Using Deep Learning `_ | **Repo:** `Repository `__
+
+Used In
+-------
+
+- `An End-to-End Earthquake Detection Method for Joint Phase Picking and Association Using Deep Learning (Zhu, Tai, Mousavi, Bailis & Beroza, JGR Solid Earth 127(3), e2021JB023283, 2022; arXiv:2109.09911) `_: Trained on 99,465 NCEDC events with manual picks at more than 3 stations (AdamW, learning rate 3e-4, weight decay 1e-4, cosine decay; Gaussian targets 1 s wide for picks, 2 s for origin times; negative sampling of candidate locations). Table 1, STEAD test set (~120,000 waveforms, the EQTransformer split), picks = peaks above 0.5, true positive within 0.5 s (protocol "eqtransformer"): P precision 0.96, recall 0.95, F1 0.95, residual mean -0.01 s, std 0.08 s, MAE 0.04 s; S 0.92 / 0.92 / 0.92, 0.01 / 0.11 / 0.07 s. Table 2, Ridgecrest 4-8 July 2019 (stations within 1 degree of the sequence, 6 / 3.4 km/s, 4 km grid): 11,765 events at threshold 0.5; with the SCSN catalogue (8,044 events) as benchmark, precision 0.55, recall 0.83, F1 0.66.
+
+Reproduction
+------------
+
+- **Reference implementation:** `https://github.com/AI4EPS/EQNet `__ (``af94a08``, Academic and Commercial License (Copyright (c) 2023 Weiqiang Zhu, Zhongwen Zhan): academic and non-commercial use only; no licence before 2023-10-26. Not ported; used only as a test oracle. No EQNet weights were released.); not ported, the model is rebuilt from the paper and the release serves as a test oracle.
+- **Paper configuration:** Paper Figure 3 and Sections 2.1-2.2 (arXiv 2109.09911): 1,043,619 parameters (feature extractor 996,960, two picking heads of 7,825, event detector 31,009). Verified against code: the feature extractor equals ``ResNet(BasicBlock, [2, 2, 2, 2])`` of ``eqnet/models/resnet1d.py`` at af94a08 (996,960 parameters, same names, same seeded initialisation, equal outputs in evaluation and training mode, batch-norm statistics, gradients); the picking and detection heads equal the author's first ``PhasePicker`` / ``EventDetector`` (``eqnet/models/eqnet.py`` at a9df49a, 2022-07-27, unlicensed) instantiated at the paper's widths ``[64, 32, 16]`` and ``[128, 64, 32]`` (equal outputs with copied weights, same seeded convolution weights). Not verifiable against code: the shift-and-stack module, the P / S feature split and the end-to-end model (tested from the paper's description: synthetic arrivals from a known hypocentre peak at the true candidate and origin time); no numbers of the paper are reproduced (no weights, retraining needed).
+- **Parameter count:** 1,043,619
+- **Verified:** parameter count, seeded initialisation, parameter names and shapes, forward outputs
+- **Oracle test:** ``tests/oracle/test_eqnet_oracle.py``
+- **Deviation:** Choices the paper leaves open, taken from the author's code: reflect padding, bias-free convolutions before batch normalisation and a biased output convolution, linear x4 interpolation (``align_corners=False``), Kaiming-normal initialisation of the extractor, and no ReLU after its last batch normalisation (the figure caption puts batch normalisation and ReLU after every convolution).
+- **Deviation:** PyHazards choices (paper silent, not in any code): the shift-and-stack averages over stations (``station_mask`` excludes padded ones), reads fractional shifts by linear interpolation and treats features outside the window as zero; output sample ``j`` of the picking heads is input sample ``2 j`` and feature sample ``t`` is input sample ``32 t``; peaks of one phase must be 0.5 s apart and events 2 s apart; candidate chunks of ``candidate_chunk`` in evaluation mode bound memory.
+- **Deviation:** ``annotate`` standardises each station's window per channel (mean removed, divided by the standard deviation), as the official data reader does; the paper does not describe its normalisation. The component order (E, N, Z) and the 100 Hz rate are assumptions (NCEDC data).
+- **Deviation:** The loss sums binary cross-entropies over time as in equations (2)-(4) and averages over stations, candidates and the batch; target generation (Gaussian labels, negative sampling) is not part of the module.
Registry Name
-------------
@@ -87,7 +105,8 @@ Primary entrypoint: ``eqnet``
Supported Tasks
---------------
-- Phase Picking
+- Picking
+- Detection
Programmatic Use
----------------
@@ -96,12 +115,22 @@ Programmatic Use
import torch
from pyhazards.models import build_model
+ from pyhazards.models.eqnet import eqnet_candidate_grid, eqnet_travel_times
+
+ model = build_model(name="eqnet", task="detection").eval() # no released weights: train first
- model = build_model(name="eqnet", task="regression", in_channels=3)
- picks = model(torch.randn(4, 3, 256))
- print(picks.shape)
+ waveforms = torch.randn(1, 6, 3, 3072) # (batch, stations, E/N/Z, samples) at 100 Hz
+ stations = torch.rand(6, 3) * torch.tensor([40.0, 40.0, 0.0]) # station x, y, z in km
+ candidates = eqnet_candidate_grid((0.0, 40.0), (0.0, 40.0), spacing=4.0, depth=8.0)
+ travel_times = eqnet_travel_times(stations, candidates) # (1, 6, 121, 2), 6 and 3.4 km/s
+ with torch.no_grad():
+ out = model(waveforms, travel_times) # phase: (1, 6, 2, 1536), event: (1, 121, 96)
+ events = model.extract_events(out["event"], candidates)
+ picks = model.extract_picks(out["phase"][0]) # one dict of P / S picks per station
Notes
-----
-- Outputs are P- and S-arrival sample indices.
+- Zhu, Tai, Mousavi, Bailis & Beroza, J. Geophys. Res. Solid Earth 127(3), e2021JB023283 (2022), arXiv:2109.09911. Not the GaMMA association paper (doi:10.1029/2021JB023249) that earlier versions of this card linked.
+- The AI4EPS/EQNet repository is now a toolbox of PhaseNet+ / PhaseNet-DAS models; its current picking and detection heads are different networks from the paper's, and it has no shift-and-stack module.
+- Breaking change: ``eqnet`` used to be a small transformer regressor returning one (P, S) pair per trace (task ``regression``, arguments ``hidden_dim``, ``num_heads``, ``num_layers``, ``dropout``); it now takes ``task='picking'`` or ``'detection'`` and returns the paper's activation sequences.
diff --git a/docs/source/modules/models_eqtransformer.rst b/docs/source/modules/models_eqtransformer.rst
index 001e9916..941af265 100644
--- a/docs/source/modules/models_eqtransformer.rst
+++ b/docs/source/modules/models_eqtransformer.rst
@@ -6,7 +6,7 @@ EQTransformer
Overview
--------
-``eqtransformer`` is the second earthquake picking baseline in the staged roadmap and shares the synthetic waveform contract used by ``phasenet``.
+A deep encoder (seven convolution + max-pooling layers, seven residual CNN blocks, bidirectional LSTM blocks and two transformer blocks with additive self-attention) compresses 6000 samples to 47 time steps. Three decoders read the encoding: the detection decoder directly, the P and S decoders after an LSTM and a local self-attention of width 3; each upsamples back to 6000 samples and ends with a sigmoid. ``forward`` returns ``(batch, 3, 6000)`` probabilities in the order detection, P, S.
At a Glance
-----------
@@ -63,21 +63,43 @@ At a Glance
Description
-----------
-``eqtransformer`` is the second earthquake picking baseline in the staged roadmap and shares the synthetic waveform contract used by ``phasenet``.
+A deep encoder (seven convolution + max-pooling layers, seven residual CNN blocks, bidirectional LSTM blocks and two transformer blocks with additive self-attention) compresses 6000 samples to 47 time steps. Three decoders read the encoding: the detection decoder directly, the P and S decoders after an LSTM and a local self-attention of width 3; each upsamples back to 6000 samples and ends with a sigmoid. ``forward`` returns ``(batch, 3, 6000)`` probabilities in the order detection, P, S.
-The PyHazards adapter focuses on the shared picking interface rather than a full reproduction of the original multitask training pipeline.
+``variant="original"`` (default) is the paper model ``EqT_original_model.h5`` (two BiLSTM blocks, 371,639 parameters); ``variant="conservative"`` is ``EqT_model_conservative.h5`` (three BiLSTM blocks, 376,423 parameters), which the authors released later for fewer false positives. Both load with ``pretrained=True`` (downloaded from the official repository at a pinned commit and checked by sha256; MIT-licensed weights) and reproduce the official Keras outputs.
+
+``annotate`` applies the official per-trace normalisation (remove the mean, divide by the standard deviation of each component); ``extract_picks`` and ``extract_detections`` port the official tester's ``picker`` (detection triggers of at least 10 samples, the earliest S peak and the most probable P peak associated with each event), which the ``earthquake.picking`` benchmark uses.
Benchmark Compatibility
-----------------------
**Primary benchmark family:** :doc:`Earthquake Benchmark `
-**Mapped benchmark ecosystems:** :doc:`pick-benchmark `
+**Mapped benchmark ecosystems:** :doc:`pick-benchmark `, :doc:`SeisBench `
External References
-------------------
-**Paper:** `Earthquake Transformer-An attentive deep-learning model for simultaneous earthquake detection and phase picking `_ | **Repo:** `Repository `__
+**Paper:** `Earthquake transformer—an attentive deep-learning model for simultaneous earthquake detection and phase picking `_ | **Repo:** `Repository `__
+
+Used In
+-------
+
+- `Earthquake transformer—an attentive deep-learning model for simultaneous earthquake detection and phase picking `_ (`repo `__): STEAD test set (10% random split, trace names in ModelsAndSampleData/test.npy), paper model, a pick is a true positive when |error| < 0.5 s. Table 1 detection: precision 1.0, recall 1.0, F1 1.0 (detection threshold 0.5). Table 2 P picks: mean error 0.00 s, std 0.03 s, precision 0.99, recall 0.99, F1 0.99, MAE 0.01 s, MAPE 0.00. Table 3 S picks: mean 0.00 s, std 0.11 s, precision 0.99, recall 0.96, F1 0.98, MAE 0.01 s, MAPE 0.00.
+- `Which Picker Fits My Data? A Quantitative Evaluation of Deep Learning Based Seismic Pickers `_ (`repo `__): Münchmeyer et al., J. Geophys. Res. Solid Earth 127, e2021JB023499 (2022). Retrains SeisBench's PyTorch EQTransformer (the conservative three-BiLSTM architecture, 376,935 parameters because PyTorch LSTMs carry two bias vectors) on each dataset; in-domain phase identification MCC (Table 2): STEAD 1.00, INSTANCE 0.97, ETHZ 0.97, SCEDC 0.96, Iquique 0.99, NEIC 0.96, GEOFON 0.82. These are retrained models, not the released weights.
+
+Reproduction
+------------
+
+- **Reference implementation:** `https://github.com/smousavi05/EQTransformer `__ at ``a589da6`` (MIT (code and released models))
+- **Checked configuration:** The two released Keras models, EqT_original_model.h5 (paper model, Keras 2.3.0) and EqT_model_conservative.h5 (Keras 2.2.4), loaded with tf.keras.models.load_model and the official custom layers of EQTransformer/core/EqT_utils.py on TensorFlow 2.11, on random input and on the repository's 100 STEAD sample traces (100samples.hdf5); the official ``picker`` on the same probabilities; and SeisBench 0.12.6's EQTransformer with its conversions of both models (GPL-3.0, used only as a second oracle).
+- **Parameter count:** 371,639
+- **Verified:** parameter count, seeded initialisation, parameter names and shapes, forward outputs, official pretrained weights
+- **Oracle test:** ``tests/oracle/test_eqtransformer_oracle.py``
+- **Deviation:** The released graphs call SpatialDropout1D (rate 0.2 in the paper model, 0.1 in the conservative one) with ``training=True``, so the official models are random at inference (Monte Carlo dropout; the paper uses dropout "at training and test time"). The port applies it in train mode and, in eval mode, only with ``mc_dropout=True``: by default ``eval()`` outputs are deterministic and equal the official model with that dropout switched off. ``annotate(x, mc_samples=n)`` averages ``n`` passes with it on, as the official tester does with ``estimate_uncertainty=True``.
+- **Deviation:** Initial weights cannot match the reference for a seed (TensorFlow and PyTorch draw different random numbers). The port uses the Keras initialisers of every layer (Glorot-uniform kernels, Glorot-normal truncated at two standard deviations for the attention and feed-forward weights, orthogonal recurrent kernels, unit forget bias), which the oracle test compares by distribution.
+- **Deviation:** Layout: input ``(batch, 3, 6000)`` and one stacked output ``(batch, 3, 6000)`` instead of Keras' ``(batch, 6000, 3)`` input and three ``(batch, 6000, 1)`` outputs. Other input lengths raise a ``ValueError``; the reference decoder cannot restore them either.
+- **Deviation:** Train-mode dropout masks follow Keras (one mask per sequence for the LSTM inputs and recurrent state, per gate in the conservative model's ``implementation=1``), but cannot reproduce Keras' random draws; train-mode outputs were compared with every dropout switched off.
+- **Deviation:** The official tester also reports MC-dropout uncertainties (standard deviations over passes); ``extract_picks`` reports probabilities only.
Registry Name
-------------
@@ -97,11 +119,25 @@ Programmatic Use
import torch
from pyhazards.models import build_model
- model = build_model(name="eqtransformer", task="regression", in_channels=3)
- picks = model(torch.randn(4, 3, 256))
- print(picks.shape)
+ # The paper model with its released weights (MIT), downloaded on first use.
+ model = build_model(name="eqtransformer", task="picking", pretrained=True).eval()
+
+ waveforms = torch.randn(4, 3, 6000) # 60 s at 100 Hz, components E, N, Z, band-passed 1-45 Hz
+ with torch.no_grad():
+ probabilities = model.annotate(waveforms) # (4, 3, 6000): detection, P, S
+ picks = model.extract_picks(probabilities) # [{"P": [(sample, prob)], "S": [...]}, ...]
+ events = model.extract_detections(probabilities) # [[(on, off, prob)], ...]
+
+ conservative = build_model(name="eqtransformer", task="picking", variant="conservative")
Notes
-----
-- Outputs are P- and S-arrival sample indices.
+- Inputs follow the training data (STEAD): 60-s windows at 100 Hz with components in the order E, N, Z, band-pass filtered between 1 and 45 Hz. ``annotate`` only normalises; filter real data first.
+
+- The released models differ from the defaults of ``cred2`` at the pinned commit (e.g. 96/128 filters there). The port follows the graphs stored in the .h5 files. The paper text gives a dropout rate of 0.1; the stored paper model uses 0.2 (the conservative model 0.1). The paper also names a Xavier-normal initialiser; the stored configurations use Glorot-uniform kernels for convolutions and LSTMs and Glorot-normal ones only for the attention and feed-forward weights.
+
+- The conservative model was saved by Keras 2.2.4, whose LSTMs use ``hard_sigmoid`` gates and ``implementation=1``; the paper model (Keras 2.3.0) uses ``sigmoid`` and ``implementation=2``. The two Keras versions also update BatchNorm's running statistics differently (zero-debiased moving averages in 2.2.4); the port keeps each model's behaviour.
+
+- Default pick thresholds are those of the official ``tester()`` (detection 0.2, P 0.1, S 0.1). As in the tester's output table, ``extract_picks`` reports the first detected event of each window unless ``all_events=True``.
+
diff --git a/docs/source/modules/models_firecastnet.rst b/docs/source/modules/models_firecastnet.rst
index 26970365..4446fe48 100644
--- a/docs/source/modules/models_firecastnet.rst
+++ b/docs/source/modules/models_firecastnet.rst
@@ -6,7 +6,7 @@ FireCastNet
Overview
--------
-``firecastnet`` is a raster wildfire spread baseline that uses a shallow encoder-decoder architecture.
+``firecastnet`` predicts whether fire will burn in each 0.25-degree cell during a future 8-day period (horizon 1 to 24 periods) from a time series of Earth-system variables (Michail et al., Scientific Reports 2025). A cube embedding (``Conv3d`` with kernel and stride ``T x 4 x 4`` plus LayerNorm) maps ``T = 24`` steps of the global 720 x 1440 grid (10 SeasFire variables, land-sea mask and cos/sin coordinates) to 64 features on a 1-degree grid. A GraphCast encoder-processor-decoder passes messages between that grid and a multi-mesh made of icosphere levels 0-6 (40,962 nodes, 12 processor layers, hidden size 64). A sub-pixel shuffle turns 16 outputs per 1-degree cell into one logit per 0.25-degree cell.
At a Glance
-----------
@@ -42,11 +42,11 @@ At a Glance
.. container:: catalog-stat-value
- 1
+ 2
.. container:: catalog-stat-note
- Spread
+ Segmentation, Forecasting
.. grid-item-card:: Benchmark Family
:class-card: catalog-stat-card
@@ -63,22 +63,39 @@ At a Glance
Description
-----------
-``firecastnet`` is a raster wildfire spread baseline that uses a shallow encoder-decoder architecture.
+``firecastnet`` predicts whether fire will burn in each 0.25-degree cell during a future 8-day period (horizon 1 to 24 periods) from a time series of Earth-system variables (Michail et al., Scientific Reports 2025). A cube embedding (``Conv3d`` with kernel and stride ``T x 4 x 4`` plus LayerNorm) maps ``T = 24`` steps of the global 720 x 1440 grid (10 SeasFire variables, land-sea mask and cos/sin coordinates) to 64 features on a 1-degree grid. A GraphCast encoder-processor-decoder passes messages between that grid and a multi-mesh made of icosphere levels 0-6 (40,962 nodes, 12 processor layers, hidden size 64). A sub-pixel shuffle turns 16 outputs per 1-degree cell into one logit per 0.25-degree cell.
-The PyHazards implementation is optimized for the shared smoke benchmark rather than the full upstream training stack.
+This is a pure PyTorch port of the official code (no DGL). The icosphere multi-mesh and the grid/mesh graphs are generated when the model is built and match the official graphs bit for bit. Parameter names follow the official network, so the released checkpoints load with ``strict=True`` through ``build_model(..., checkpoint=path)``: global ``ts24`` models for horizons 1, 2, 4, 8, 16 and 24 (classification and regression) and per-GFED-region local-area models, which also need their mesh file from the official repository (``icospheres_graph_path``).
Benchmark Compatibility
-----------------------
**Primary benchmark family:** :doc:`Wildfire Benchmark `
-**Mapped benchmark ecosystems:** :doc:`WildfireSpreadTS `
-
External References
-------------------
**Paper:** `FireCastNet: Earth-as-a-Graph for Seasonal Fire Prediction `_ | **Repo:** `Repository `__
+Used In
+-------
+
+- `FireCastNet: Earth-as-a-Graph for Seasonal Fire Prediction (arXiv:2502.01550) `_ (`repo `__): SeasFire datacube (0.25 degree, 8-day steps), years 2002-2017 / 2018 / 2019 for train / validation / test, binary burned area (gwis_ba) at horizon h, one model per horizon, BCE, AdamW lr 1e-3, 50 epochs, batch 1. Global test AUPRC with 24 input steps (Table 2): 0.641 / 0.636 / 0.631 / 0.631 / 0.628 / 0.633 for h = 1 / 2 / 4 / 8 / 16 / 24, ahead of GRU, Conv-GRU, Conv-LSTM, U-TAE and TeleViT; local-area models per GFED region in Table 4 (for example AUST 0.25 at h = 1, against 0.31 for the global model).
+
+Reproduction
+------------
+
+- **Reference implementation:** `https://github.com/SeasFire/firecastnet `__ at ``dc0d131`` (none at repository level (test oracle only); the ported GraphCast layers are Apache-2.0 (NVIDIA), as is NVIDIA Modulus v0.5.0, which the graph construction follows; checkpoints Apache-2.0 (Hugging Face d-michail/firecastnet-artifacts))
+- **Checked configuration:** Released global classifier firecastnet-cls-ts24-h1.ckpt: 24 steps x 11 inputs (+3 static channels) on the 720 x 1440 grid, Conv3d 24x4x4 to 64 channels with LayerNorm, 1-degree graph grid (180 x 360), icosphere levels 0-6 (40,962 mesh nodes; 327,660 mesh, 100,160 grid-to-mesh and 64,800 mesh-to-grid edges), 12 processor layers, hidden 64, sum aggregation, 16 outputs and PixelShuffle(4); likewise firecastnet-regr-ts24-h1.ckpt and the AUST local-area checkpoint firecastnet-cls-AUST-ts24-h1.ckpt (2,002-node mesh), plus small global configurations with seeded initialisation. All 94 released checkpoint configurations use this network configuration.
+- **Parameter count:** 9,087,568
+- **Verified:** parameter count, seeded initialisation, parameter names and shapes, forward outputs, official pretrained weights
+- **Oracle test:** ``tests/oracle/test_firecastnet_oracle.py``
+- **Deviation:** Only the configuration FireCastNet uses is ported: a cube embedding whose temporal patch spans the whole input (embed_cube_time == timeseries_len). The reference's other options (no cube embedding, ViT and L-TAE cube embedders, the recurrent processor used when the embedded cube keeps a time axis, do_concat_trick) appear neither in the paper nor in the released checkpoints and raise an error here.
+- **Deviation:** The reference LightningModule accepts a batch size of 1. Here the cube embedding is batched and the graph network runs once per sample, which gives the same per-sample outputs.
+- **Deviation:** The reference sizes its DGL bipartite graphs by the largest mesh vertex a grid node links to, so it fails unless the grid reaches the last mesh vertex (in practice, only global grids work). The port counts all mesh vertices, so regional windows also run; outputs on global grids are unchanged.
+- **Deviation:** The reference also lists GraphNorm, InstanceNorm, BatchNorm and MessageNorm as norm_type but looks them up in torch.nn, where none exists; only LayerNorm (or none) is accepted here. Non-square patches switch the reference to a ConvTranspose3d up-sampling that fails on its 4-D input; the port requires square patches.
+- **Deviation:** Nearest neighbours for the grid/mesh graphs come from a SciPy KD-tree with exact float64 re-ranking instead of scikit-learn; the oracle checks that every graph (edge order and features) is bitwise identical for the global and the local-area meshes.
+
Registry Name
-------------
@@ -87,7 +104,8 @@ Primary entrypoint: ``firecastnet``
Supported Tasks
---------------
-- Spread
+- Segmentation
+- Forecasting
Programmatic Use
----------------
@@ -97,11 +115,28 @@ Programmatic Use
import torch
from pyhazards.models import build_model
- model = build_model(name="firecastnet", task="segmentation", in_channels=12)
- logits = model(torch.randn(2, 12, 16, 16))
- print(logits.shape)
+ # Released configuration: 24 eight-day steps of 11 variables on the global 0.25-degree grid.
+ model = build_model(name="firecastnet", task="segmentation") # 9,087,568 parameters
+ # Official weights (huggingface.co/datasets/d-michail/firecastnet-artifacts, Apache-2.0):
+ # model = build_model(name="firecastnet", task="segmentation", checkpoint="firecastnet-cls-ts24-h1.ckpt")
+ model.eval()
+ x = torch.randn(1, 24, 11, 720, 1440) # (batch, time, variables, lat, lon), standardised
+ with torch.no_grad():
+ probability = torch.sigmoid(model(x)) # (1, 1, 720, 1440)
+ print(probability.shape)
Notes
-----
-- The smoke configuration uses the single-frame wildfire spread raster fixture.
+- Input channels, in order: mslp, tp, vpd, sst, t2m_mean, ssrd, swvl1, lst_day, ndvi, pop_dens, lsm. Preprocessing is done outside the model, as in the official inference script: log(1 + x) for tp and pop_dens, standardisation of the 10 dynamic variables with SeasFire statistics (lsm stays raw), missing values set to -1, and a window of 24 steps ending h periods before the target period. The official inference sets predictions to 0 where lsm < 0.1.
+
+- The cube LayerNorm normalises over the whole embedded cube (64 x 1 x 180 x 360) with an elementwise affine of that shape: 8,294,400 of the 9,087,568 parameters. A model therefore only runs on the grid it was built for; the default is the global 0.25-degree grid.
+
+- Kept from the reference because they change outputs: mesh-node features are cos/sin of latitude and longitude in degrees passed to cos/sin without conversion to radians (as in NVIDIA Modulus), and icosphere vertices come from midpoint subdivision of the flat icosahedron with one projection onto the sphere at the end, not a projection after every refinement step as the paper describes.
+
+- The cos(lat), sin(lon) and cos(lon) channels are appended inside the model (``lat_lon_static_data``). Any latitude/longitude window and resolution can be configured; the smoke test uses a tiny 2.5-degree global grid with icosphere levels 0-2.
+
+- Local-area checkpoints for BONA and SHSA point to mesh files that are not in the official repository (final_icospheres/icosphere_s3_BONA_6u.json and icospheres-lam/icospheres/icosphere_s3_SHSA_7u_SHAF_2n.json), so they cannot be run as released; their weights still load, since no weight depends on the mesh.
+
+- A global forward pass on CPU needs about 5 GB of memory (the float32 input alone is 1.1 GB). The paper's AUPRC was not re-evaluated here: that needs the 44 GB SeasFire datacube.
+
diff --git a/docs/source/modules/models_floodcast.rst b/docs/source/modules/models_floodcast.rst
index 42decc16..e8e1c0ec 100644
--- a/docs/source/modules/models_floodcast.rst
+++ b/docs/source/modules/models_floodcast.rst
@@ -6,7 +6,7 @@ FloodCast
Overview
--------
-``floodcast`` is the first public inundation model in the staged PyHazards flood roadmap.
+``floodcast`` is a compact PyHazards spatiotemporal network that maps ``(batch, history, channels, H, W)`` rasters to a next-step depth raster ``(batch, 1, H, W)``. It is not FloodCast. FloodCast's hydrodynamic module is the sequence-to-sequence GeoPINS: a physics-informed Fourier neural operator solving the 2-D shallow-water equations without training labels, trained per 16-step sequence and marched in time, with hard-encoded inflow boundaries.
At a Glance
-----------
@@ -31,7 +31,7 @@ At a Glance
.. container:: catalog-stat-value
- Implemented
+ Experimental Adapter
.. container:: catalog-stat-note
@@ -42,11 +42,11 @@ At a Glance
.. container:: catalog-stat-value
- 1
+ 2
.. container:: catalog-stat-note
- Inundation
+ Forecasting, Segmentation
.. grid-item-card:: Benchmark Family
:class-card: catalog-stat-card
@@ -63,21 +63,32 @@ At a Glance
Description
-----------
-``floodcast`` is the first public inundation model in the staged PyHazards flood roadmap.
+``floodcast`` is a compact PyHazards spatiotemporal network that maps ``(batch, history, channels, H, W)`` rasters to a next-step depth raster ``(batch, 1, H, W)``. It is not FloodCast. FloodCast's hydrodynamic module is the sequence-to-sequence GeoPINS: a physics-informed Fourier neural operator solving the 2-D shallow-water equations without training labels, trained per 16-step sequence and marched in time, with hard-encoded inflow boundaries.
-The adapter uses shared raster tensors so it can be benchmarked through the ``flood.inundation`` evaluator without dataset-specific glue code.
+Why it is not rebuilt from the paper (arXiv 2403.12226v1, the only open version; read in full): the paper gives the GeoPINS layout (MLP lift, FNO layers, MLP projection; GELU and a layer normalisation after each FNO layer in its PDE experiments), four space-time FNO layers with spatial modes 32 and temporal modes 4 for the flood model, the GeoPC loss (continuity and momentum residuals with Manning friction, initial-condition weight 10, finite differences) and the training schedule, but not the channel widths of the flood model (only the toy PDE experiments list widths 16 / 24 / 24 / 32 / 32), not the lifting / projection widths, and only "3 input channels: coordinate x, time t and initial condition" for a 2-D problem with three state variables. The released repository holds toy PDE examples and empty placeholders for the flood model and has no licence. A rebuild would therefore guess its size; it would be neither the paper's model nor checkable.
+
+FloodCastBench's supervised FNO baseline (Xu et al., Scientific Data 12:431, 2025: 4 Fourier layers, the 12 lowest modes, width 20, one-shot over 19 steps from the initial depth plus coordinates and time; FNO+ adds terrain and rainfall) is not added either: FloodCastBench released only its data-generation code (no model code, no licence), so there is nothing to verify a port against, and the paper leaves the temporal modes open. The smoke configuration scores this stand-in on ``flood_inundation_synthetic`` (random rasters).
Benchmark Compatibility
-----------------------
**Primary benchmark family:** :doc:`Flood Benchmark `
-**Mapped benchmark ecosystems:** :doc:`FloodCastBench `
-
External References
-------------------
-**Paper:** `Large-scale flood modeling and forecasting with FloodCast `_ | **Repo:** `Repository `__
+**Paper:** `Large-scale flood modeling and forecasting with FloodCast `_ | **Repo:** `Repository `__
+
+Used In
+-------
+
+- `Large-scale flood modeling and forecasting with FloodCast `_ (`repo `__): Xu, Shi, Bamber, Ouyang and Zhu, Water Research 264:122162 (2024); arXiv 2403.12226. 2022 Pakistan flood (85,616.5 km2, 18-31 August), 480 m grid, 300 s steps, 14-day simulation against a finite-difference hydrodynamic benchmark: average MAPE 14.93% and MAE 0.0610 m (depth >= 0 m), MAE 0.0589 m (>= 0.1 m), 0.0452 m (>= 0.5 m) (Table 5); MAE 0.3615 m against SAR-derived depths on 30 August (hydrodynamics 0.4203 m). The repository has no licence and does not contain the flood model.
+- `FloodCastBench: A Large-Scale Dataset and Foundation Models for Flood Modeling and Forecasting `_ (`repo `__): Xu, Shi, Zhao and Zhu, Scientific Data 12:431 (2025); data Zenodo 10.5281/zenodo.14017092 (21.6 GB, CC BY 4.0). Table 4 (RMSE / NSE), low-fidelity 480 m (Pakistan): U-Net 0.079399 / 0.991705, FNO 0.002232 / 0.999993, FNO+ 0.002107 / 0.999994; high-fidelity 60 m (Australia): U-Net 0.566626 / 0.560984, FNO 0.004258 / 0.999975, FNO+ 0.003941 / 0.999979. Only the data-generation code is released.
+
+Reproduction
+------------
+
+Not yet verified against a reference implementation.
Registry Name
-------------
@@ -87,7 +98,8 @@ Primary entrypoint: ``floodcast``
Supported Tasks
---------------
-- Inundation
+- Forecasting
+- Segmentation
Programmatic Use
----------------
@@ -105,3 +117,5 @@ Notes
-----
- Outputs are next-horizon inundation depth rasters.
+- Experimental: kept under its published name only as a placeholder; do not report its results as FloodCast's. A faithful entry needs the flood-model code (or the widths) from the authors.
+
diff --git a/docs/source/modules/models_forefire.rst b/docs/source/modules/models_forefire.rst
deleted file mode 100644
index cc0f3b6a..00000000
--- a/docs/source/modules/models_forefire.rst
+++ /dev/null
@@ -1,107 +0,0 @@
-.. This file is generated by scripts/render_model_docs.py. Do not edit by hand.
-
-ForeFire Adapter
-================
-
-Overview
---------
-
-``forefire`` is a deterministic raster adapter that approximates simulator-style front propagation through fixed diffusion kernels.
-
-At a Glance
------------
-
-.. grid:: 1 2 4 4
- :gutter: 2
- :class-container: catalog-grid
-
- .. grid-item-card:: Hazard Family
- :class-card: catalog-stat-card
-
- .. container:: catalog-stat-value
-
- Wildfire
-
- .. container:: catalog-stat-note
-
- Public catalog grouping used for this model.
-
- .. grid-item-card:: Maturity
- :class-card: catalog-stat-card
-
- .. container:: catalog-stat-value
-
- Implemented
-
- .. container:: catalog-stat-note
-
- Catalog maturity label used on the index page.
-
- .. grid-item-card:: Tasks
- :class-card: catalog-stat-card
-
- .. container:: catalog-stat-value
-
- 1
-
- .. container:: catalog-stat-note
-
- Spread
-
- .. grid-item-card:: Benchmark Family
- :class-card: catalog-stat-card
-
- .. container:: catalog-stat-value
-
- :doc:`Wildfire Benchmark `
-
- .. container:: catalog-stat-note
-
- Primary benchmark-family link used for compatible evaluation coverage.
-
-
-Description
------------
-
-``forefire`` is a deterministic raster adapter that approximates simulator-style front propagation through fixed diffusion kernels.
-
-PyHazards exposes it as a benchmarkable baseline through the standard model registry.
-
-Benchmark Compatibility
------------------------
-
-**Primary benchmark family:** :doc:`Wildfire Benchmark `
-
-**Mapped benchmark ecosystems:** :doc:`WildfireSpreadTS `
-
-External References
--------------------
-
-**Paper:** `ForeFire: A Modular, Scriptable C++ Simulation Engine and Library for Wildland-Fire Spread `_ | **Repo:** `Repository `__
-
-Registry Name
--------------
-
-Primary entrypoint: ``forefire``
-
-Supported Tasks
----------------
-
-- Spread
-
-Programmatic Use
-----------------
-
-.. code-block:: python
-
- import torch
- from pyhazards.models import build_model
-
- model = build_model(name="forefire", task="segmentation", in_channels=12)
- logits = model(torch.randn(2, 12, 16, 16))
- print(logits.shape)
-
-Notes
------
-
-- This adapter is deterministic and does not learn parameters during the smoke test.
diff --git a/docs/source/modules/models_fourcastnet_tc.rst b/docs/source/modules/models_fourcastnet_tc.rst
deleted file mode 100644
index 3515efc7..00000000
--- a/docs/source/modules/models_fourcastnet_tc.rst
+++ /dev/null
@@ -1,107 +0,0 @@
-.. This file is generated by scripts/render_model_docs.py. Do not edit by hand.
-
-FourCastNet TC Adapter
-======================
-
-Overview
---------
-
-``fourcastnet_tc`` completes the first wave of experimental foundation-weather storm adapters in the staged roadmap.
-
-At a Glance
------------
-
-.. grid:: 1 2 4 4
- :gutter: 2
- :class-container: catalog-grid
-
- .. grid-item-card:: Hazard Family
- :class-card: catalog-stat-card
-
- .. container:: catalog-stat-value
-
- Tropical Cyclone
-
- .. container:: catalog-stat-note
-
- Public catalog grouping used for this model.
-
- .. grid-item-card:: Maturity
- :class-card: catalog-stat-card
-
- .. container:: catalog-stat-value
-
- Experimental Adapter
-
- .. container:: catalog-stat-note
-
- Catalog maturity label used on the index page.
-
- .. grid-item-card:: Tasks
- :class-card: catalog-stat-card
-
- .. container:: catalog-stat-value
-
- 1
-
- .. container:: catalog-stat-note
-
- Track + Intensity
-
- .. grid-item-card:: Benchmark Family
- :class-card: catalog-stat-card
-
- .. container:: catalog-stat-value
-
- :doc:`Tropical Cyclone Benchmark `
-
- .. container:: catalog-stat-note
-
- Primary benchmark-family link used for compatible evaluation coverage.
-
-
-Description
------------
-
-``fourcastnet_tc`` completes the first wave of experimental foundation-weather storm adapters in the staged roadmap.
-
-The PyHazards version is intentionally lightweight and uses the same trajectory output contract as the other storm baselines.
-
-Benchmark Compatibility
------------------------
-
-**Primary benchmark family:** :doc:`Tropical Cyclone Benchmark `
-
-**Mapped benchmark ecosystems:** :doc:`IBTrACS `
-
-External References
--------------------
-
-**Paper:** `FourCastNet: A Global Data-driven High-resolution Weather Model using Adaptive Fourier Neural Operators `_ | **Repo:** `Repository `__
-
-Registry Name
--------------
-
-Primary entrypoint: ``fourcastnet_tc``
-
-Supported Tasks
----------------
-
-- Track + Intensity
-
-Programmatic Use
-----------------
-
-.. code-block:: python
-
- import torch
- from pyhazards.models import build_model
-
- model = build_model(name="fourcastnet_tc", task="regression", input_dim=8, history=6, horizon=5)
- preds = model(torch.randn(2, 6, 8))
- print(preds.shape)
-
-Notes
------
-
-- Experimental adapter: intended for shared-evaluator prototyping rather than exact weather-model parity.
diff --git a/docs/source/modules/models_google_flood_forecasting.rst b/docs/source/modules/models_google_flood_forecasting.rst
index ea8999be..cd93ab04 100644
--- a/docs/source/modules/models_google_flood_forecasting.rst
+++ b/docs/source/modules/models_google_flood_forecasting.rst
@@ -6,7 +6,7 @@ Google Flood Forecasting
Overview
--------
-``google_flood_forecasting`` is a compact sequence-to-node forecasting baseline for flood streamflow prediction.
+``google_flood_forecasting`` is a port of ``MeanEmbeddingForecastLSTM`` from google-research/flood-forecasting (googlehydrology). Static attributes are embedded by an FC network; each weather product (input group) is embedded with the static embedding by its own FC network, and the group embeddings are averaged with a NaN-aware mean so that a product that is missing on a day is skipped. A hindcast LSTM runs over the averaged hindcast embeddings, and a forecast LSTM over the averaged forecast embeddings and the hindcast LSTM's outputs. The CMAL head returns, for every day, a mixture of three asymmetric Laplace distributions (``mu``, ``b``, ``tau``, ``pi``); ``point_prediction`` gives the mixture mean.
At a Glance
-----------
@@ -63,9 +63,11 @@ At a Glance
Description
-----------
-``google_flood_forecasting`` is a compact sequence-to-node forecasting baseline for flood streamflow prediction.
+``google_flood_forecasting`` is a port of ``MeanEmbeddingForecastLSTM`` from google-research/flood-forecasting (googlehydrology). Static attributes are embedded by an FC network; each weather product (input group) is embedded with the static embedding by its own FC network, and the group embeddings are averaged with a NaN-aware mean so that a product that is missing on a day is skipped. A hindcast LSTM runs over the averaged hindcast embeddings, and a forecast LSTM over the averaged forecast embeddings and the hindcast LSTM's outputs. The CMAL head returns, for every day, a mixture of three asymmetric Laplace distributions (``mu``, ``b``, ``tau``, ``pi``); ``point_prediction`` gives the mixture mean.
-The PyHazards implementation uses a transformer encoder over per-node history windows and returns one forecast value per node.
+``config="floodhub"`` (default) is the released FloodHub model (Gauch et al. 2025 architecture): 84 Caravan / HydroATLAS attributes, hindcast products HRES, GraphCast, IMERG and CPC over 365 days, forecast products HRES and GraphCast over the 365 days plus 7 lead days, hidden size 512 (3,402,832 parameters). ``pretrained=True`` downloads and loads the released weights (13.6 MB, Apache-2.0 repository). Inputs are ``x_s`` (batch, 84), ``x_d_hindcast`` (batch, 365, 9) and ``x_d_forecast`` (batch, 372, 7), as tensors in the configured feature order or as googlehydrology's per-feature dicts.
+
+``config="streamflow"`` keeps the architecture but uses one input group of ``n_dynamic`` daily forcings, ``n_static`` attributes and no lead time, so that the model reads the PyHazards streamflow layout ``{"x_d", "x_s"}`` (``camels_us_streamflow``, ``caravan_streamflow``) and is scored by the flood benchmark from the mixture mean. This is a PyHazards adaptation, not a Google configuration.
Benchmark Compatibility
-----------------------
@@ -77,7 +79,27 @@ Benchmark Compatibility
External References
-------------------
-**Paper:** `Global Flood Forecasting at a Fine Catchment Resolution using Machine Learning `_ | **Repo:** `Repository `__
+**Paper:** `How to deal w___ missing input data