StormScope Satellite and Radar Nowcasting¶
StormScope inference workflow with GOES satellite imagery and MRMS radar data.
This example will demonstrate how to run coupled inference to generate predictions using StormScope models with both GOES and MRMS data sources.
In this example you will learn:
- How to instantiate StormScope models for GOES and MRMS
- Fetching model inputs on the model grid through the models' default sources
- Selecting a regional domain for Flash inference
- Running iterative prognostic forecasts
- Plotting a single GOES channel with MRMS overlay
Set Up¶
This example shows a minimal StormScope workflow with GOES satellite imagery and MRMS radar data. We build two models:
earth2studio.models.px.StormScopeGOESto forecast GOES channels.earth2studio.models.px.StormScopeMRMSto forecast radar reflectivity (and a gridded GLM lightning channel).
In the CONUS nowcasting configuration the GOES model is "pure obs" (no external
conditioning), while the MRMS model is conditioned on GOES โ the GOES model
provides that conditioning during the rollout via initialize and step.
The MRMS model additionally has a GLM lightning channel (glm_density) as
part of its state, which evolves autoregressively over the rollout.
import os
from datetime import datetime
os.makedirs("outputs", exist_ok=True)
from dotenv import load_dotenv
load_dotenv()
import cartopy.crs as ccrs
import cartopy.feature as cfeature
import matplotlib.pyplot as plt
import numpy as np
import torch
from tqdm import trange
from earth2studio.data import fetch_data
from earth2studio.grids import Region
from earth2studio.models.px.stormscope import (
StormScopeBase,
StormScopeGOES,
StormScopeMRMS,
)
We use the Flash CONUS nowcasting variant (3km_10min_flash) for faster
inference. The GOES model forecasts the eight ABI channels from their recent
history. The MRMS model forecasts [refc, refc_base, glm_density]
conditioned on GOES; its Geostationary Lightning Mapper (GLM) channel is both an
input (observation history) and a predicted output.
Selectable variants (see StormScope*.list_available_models):
- "3km_10min": baseline CONUS nowcasting, 3 km / 10 min
- "3km_10min_flash": accelerated CONUS nowcasting, 3 km / 10 min (example default)
- "6km_1hr": legacy 6 km / 60 min nearcasting
StormScope models support regional inference through with_region. Set
region to a [earth2studio.grids.Region][] box
for local Flash inference within CONUS, or leave it as None for the full
domain. A Flash view keeps up to region_padding (25) gridpoints of real
context per side and runs on at least 200 x 200 gridpoints; both models share
the loaded weights with their views. Make the GOES and MRMS views from the same
region so that their grids match.
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model_name = "3km_10min_flash"
# Flash only: Region.box(west, south, east, north), in degrees; negative
# longitude means west. Use None for the full CONUS domain.
region: Region | None = None # Example: Region.box(-97.0, 39.075, -95.0, 41.075)
package = StormScopeBase.load_default_package()
# GOES nowcast model: pure-obs, no external conditioning. We enable automatic
# mixed precision (autocast) and compile the model for faster inference.
model = StormScopeGOES.load_model(
package=package,
model_name=model_name,
amp=True,
compile=True,
)
model = model.to(device)
model.eval()
# MRMS+GLM nowcast model: conditioned on GOES, which we pass explicitly to
# initialize and step.
model_mrms = StormScopeMRMS.load_model(
package=package,
model_name=model_name,
amp=True,
compile=True,
)
model_mrms = model_mrms.to(device)
model_mrms.eval()
if region is not None:
model = model.with_region(region)
model_mrms = model_mrms.with_region(region)
Console output286 lines
Downloading config.json: 0%| | 0.00/38.0 [00:00<?, ?B/s]
Downloading config.json: 100%|โโโโโโโโโโ| 38.0/38.0 [00:00<00:00, 207B/s]
Downloading config.json: 100%|โโโโโโโโโโ| 38.0/38.0 [00:00<00:00, 205B/s]
Downloading registry.json: 0%| | 0.00/8.91k [00:00<?, ?B/s]
Downloading registry.json: 100%|โโโโโโโโโโ| 8.91k/8.91k [00:00<00:00, 60.7kB/s]
Downloading registry.json: 100%|โโโโโโโโโโ| 8.91k/8.91k [00:00<00:00, 60.0kB/s]
Downloading expert_2.mdlus: 0%| | 0.00/666M [00:00<?, ?B/s]
Downloading expert_2.mdlus: 2%|โ | 10.0M/666M [00:01<01:10, 9.75MB/s]
Downloading expert_2.mdlus: 5%|โ | 30.0M/666M [00:01<00:21, 30.6MB/s]
Downloading expert_2.mdlus: 8%|โ | 50.0M/666M [00:01<00:12, 50.7MB/s]
Downloading expert_2.mdlus: 11%|โ | 70.0M/666M [00:01<00:09, 68.8MB/s]
Downloading expert_2.mdlus: 14%|โโ | 90.0M/666M [00:01<00:07, 85.7MB/s]
Downloading expert_2.mdlus: 17%|โโ | 110M/666M [00:01<00:05, 98.1MB/s]
Downloading expert_2.mdlus: 20%|โโ | 130M/666M [00:02<00:05, 110MB/s]
Downloading expert_2.mdlus: 23%|โโโ | 150M/666M [00:02<00:04, 118MB/s]
Downloading expert_2.mdlus: 26%|โโโ | 170M/666M [00:02<00:04, 122MB/s]
Downloading expert_2.mdlus: 29%|โโโ | 190M/666M [00:02<00:04, 106MB/s]
Downloading expert_2.mdlus: 32%|โโโโ | 210M/666M [00:02<00:04, 113MB/s]
Downloading expert_2.mdlus: 35%|โโโโ | 230M/666M [00:02<00:03, 118MB/s]
Downloading expert_2.mdlus: 38%|โโโโ | 250M/666M [00:03<00:06, 70.1MB/s]
Downloading expert_2.mdlus: 41%|โโโโ | 270M/666M [00:03<00:05, 82.1MB/s]
Downloading expert_2.mdlus: 44%|โโโโโ | 290M/666M [00:03<00:04, 91.8MB/s]
Downloading expert_2.mdlus: 47%|โโโโโ | 310M/666M [00:03<00:03, 102MB/s]
Downloading expert_2.mdlus: 50%|โโโโโ | 330M/666M [00:04<00:03, 111MB/s]
Downloading expert_2.mdlus: 53%|โโโโโโ | 350M/666M [00:04<00:02, 114MB/s]
Downloading expert_2.mdlus: 56%|โโโโโโ | 370M/666M [00:04<00:02, 111MB/s]
Downloading expert_2.mdlus: 59%|โโโโโโ | 390M/666M [00:04<00:02, 119MB/s]
Downloading expert_2.mdlus: 62%|โโโโโโโ | 410M/666M [00:04<00:02, 125MB/s]
Downloading expert_2.mdlus: 65%|โโโโโโโ | 430M/666M [00:04<00:01, 132MB/s]
Downloading expert_2.mdlus: 68%|โโโโโโโ | 450M/666M [00:05<00:01, 139MB/s]
Downloading expert_2.mdlus: 71%|โโโโโโโ | 470M/666M [00:05<00:01, 138MB/s]
Downloading expert_2.mdlus: 74%|โโโโโโโโ | 490M/666M [00:05<00:01, 144MB/s]
Downloading expert_2.mdlus: 77%|โโโโโโโโ | 510M/666M [00:05<00:01, 144MB/s]
Downloading expert_2.mdlus: 80%|โโโโโโโโ | 530M/666M [00:05<00:01, 91.9MB/s]
Downloading expert_2.mdlus: 83%|โโโโโโโโโ | 550M/666M [00:06<00:01, 80.2MB/s]
Downloading expert_2.mdlus: 86%|โโโโโโโโโ | 570M/666M [00:06<00:01, 93.7MB/s]
Downloading expert_2.mdlus: 89%|โโโโโโโโโ | 590M/666M [00:06<00:00, 105MB/s]
Downloading expert_2.mdlus: 92%|โโโโโโโโโโ| 610M/666M [00:06<00:00, 111MB/s]
Downloading expert_2.mdlus: 95%|โโโโโโโโโโ| 630M/666M [00:06<00:00, 119MB/s]
Downloading expert_2.mdlus: 98%|โโโโโโโโโโ| 650M/666M [00:06<00:00, 118MB/s]
Downloading expert_2.mdlus: 100%|โโโโโโโโโโ| 666M/666M [00:07<00:00, 124MB/s]
Downloading expert_2.mdlus: 100%|โโโโโโโโโโ| 666M/666M [00:07<00:00, 98.1MB/s]
Downloading expert_1.mdlus: 0%| | 0.00/672M [00:00<?, ?B/s]
Downloading expert_1.mdlus: 1%|โ | 10.0M/672M [00:01<01:08, 10.2MB/s]
Downloading expert_1.mdlus: 3%|โ | 20.0M/672M [00:01<00:33, 20.1MB/s]
Downloading expert_1.mdlus: 4%|โ | 30.0M/672M [00:01<00:24, 27.7MB/s]
Downloading expert_1.mdlus: 6%|โ | 40.0M/672M [00:01<00:17, 36.9MB/s]
Downloading expert_1.mdlus: 9%|โ | 60.0M/672M [00:01<00:11, 54.6MB/s]
Downloading expert_1.mdlus: 12%|โโ | 80.0M/672M [00:01<00:08, 73.5MB/s]
Downloading expert_1.mdlus: 13%|โโ | 90.0M/672M [00:02<00:07, 78.3MB/s]
Downloading expert_1.mdlus: 16%|โโ | 110M/672M [00:02<00:06, 95.5MB/s]
Downloading expert_1.mdlus: 19%|โโ | 130M/672M [00:02<00:05, 110MB/s]
Downloading expert_1.mdlus: 22%|โโโ | 150M/672M [00:02<00:05, 98.4MB/s]
Downloading expert_1.mdlus: 25%|โโโ | 170M/672M [00:02<00:04, 112MB/s]
Downloading expert_1.mdlus: 28%|โโโ | 190M/672M [00:02<00:04, 122MB/s]
Downloading expert_1.mdlus: 31%|โโโโ | 210M/672M [00:03<00:05, 85.0MB/s]
Downloading expert_1.mdlus: 34%|โโโโ | 230M/672M [00:03<00:04, 99.0MB/s]
Downloading expert_1.mdlus: 37%|โโโโ | 250M/672M [00:03<00:04, 110MB/s]
Downloading expert_1.mdlus: 40%|โโโโ | 270M/672M [00:03<00:03, 120MB/s]
Downloading expert_1.mdlus: 43%|โโโโโ | 290M/672M [00:03<00:03, 132MB/s]
Downloading expert_1.mdlus: 46%|โโโโโ | 310M/672M [00:03<00:02, 132MB/s]
Downloading expert_1.mdlus: 49%|โโโโโ | 330M/672M [00:04<00:03, 109MB/s]
Downloading expert_1.mdlus: 52%|โโโโโโ | 350M/672M [00:04<00:02, 120MB/s]
Downloading expert_1.mdlus: 55%|โโโโโโ | 370M/672M [00:04<00:02, 129MB/s]
Downloading expert_1.mdlus: 58%|โโโโโโ | 390M/672M [00:04<00:02, 134MB/s]
Downloading expert_1.mdlus: 61%|โโโโโโ | 410M/672M [00:04<00:02, 132MB/s]
Downloading expert_1.mdlus: 64%|โโโโโโโ | 430M/672M [00:04<00:01, 137MB/s]
Downloading expert_1.mdlus: 67%|โโโโโโโ | 450M/672M [00:05<00:01, 140MB/s]
Downloading expert_1.mdlus: 70%|โโโโโโโ | 470M/672M [00:05<00:01, 143MB/s]
Downloading expert_1.mdlus: 73%|โโโโโโโโ | 490M/672M [00:05<00:01, 144MB/s]
Downloading expert_1.mdlus: 76%|โโโโโโโโ | 510M/672M [00:05<00:01, 127MB/s]
Downloading expert_1.mdlus: 79%|โโโโโโโโ | 530M/672M [00:05<00:01, 103MB/s]
Downloading expert_1.mdlus: 82%|โโโโโโโโโ | 550M/672M [00:06<00:01, 114MB/s]
Downloading expert_1.mdlus: 85%|โโโโโโโโโ | 570M/672M [00:06<00:00, 124MB/s]
Downloading expert_1.mdlus: 88%|โโโโโโโโโ | 590M/672M [00:07<00:02, 33.5MB/s]
Downloading expert_1.mdlus: 89%|โโโโโโโโโ | 600M/672M [00:07<00:02, 37.4MB/s]
Downloading expert_1.mdlus: 92%|โโโโโโโโโโ| 620M/672M [00:08<00:01, 49.9MB/s]
Downloading expert_1.mdlus: 95%|โโโโโโโโโโ| 640M/672M [00:08<00:00, 64.2MB/s]
Downloading expert_1.mdlus: 98%|โโโโโโโโโโ| 660M/672M [00:08<00:00, 78.3MB/s]
Downloading expert_1.mdlus: 100%|โโโโโโโโโโ| 672M/672M [00:08<00:00, 83.2MB/s]
Downloading expert_0.mdlus: 0%| | 0.00/690M [00:00<?, ?B/s]
Downloading expert_0.mdlus: 1%|โ | 10.0M/690M [00:01<01:16, 9.35MB/s]
Downloading expert_0.mdlus: 3%|โ | 20.0M/690M [00:01<00:54, 13.0MB/s]
Downloading expert_0.mdlus: 4%|โ | 30.0M/690M [00:03<01:20, 8.63MB/s]
Downloading expert_0.mdlus: 6%|โ | 40.0M/690M [00:05<01:32, 7.35MB/s]
Downloading expert_0.mdlus: 7%|โ | 50.0M/690M [00:05<01:03, 10.6MB/s]
Downloading expert_0.mdlus: 9%|โ | 60.0M/690M [00:05<00:44, 15.0MB/s]
Downloading expert_0.mdlus: 10%|โ | 70.0M/690M [00:05<00:31, 20.5MB/s]
Downloading expert_0.mdlus: 12%|โโ | 80.0M/690M [00:05<00:23, 27.4MB/s]
Downloading expert_0.mdlus: 14%|โโ | 100M/690M [00:05<00:14, 43.2MB/s]
Downloading expert_0.mdlus: 17%|โโ | 120M/690M [00:06<00:10, 55.7MB/s]
Downloading expert_0.mdlus: 19%|โโ | 130M/690M [00:06<00:09, 60.4MB/s]
Downloading expert_0.mdlus: 20%|โโ | 140M/690M [00:06<00:09, 64.0MB/s]
Downloading expert_0.mdlus: 23%|โโโ | 160M/690M [00:06<00:07, 76.0MB/s]
Downloading expert_0.mdlus: 25%|โโโ | 170M/690M [00:06<00:06, 79.8MB/s]
Downloading expert_0.mdlus: 28%|โโโ | 190M/690M [00:06<00:05, 95.2MB/s]
Downloading expert_0.mdlus: 30%|โโโ | 210M/690M [00:07<00:05, 96.6MB/s]
Downloading expert_0.mdlus: 33%|โโโโ | 230M/690M [00:07<00:04, 103MB/s]
Downloading expert_0.mdlus: 36%|โโโโ | 250M/690M [00:07<00:04, 105MB/s]
Downloading expert_0.mdlus: 39%|โโโโ | 270M/690M [00:07<00:04, 110MB/s]
Downloading expert_0.mdlus: 42%|โโโโโ | 290M/690M [00:07<00:03, 112MB/s]
Downloading expert_0.mdlus: 45%|โโโโโ | 310M/690M [00:07<00:03, 114MB/s]
Downloading expert_0.mdlus: 48%|โโโโโ | 330M/690M [00:08<00:03, 117MB/s]
Downloading expert_0.mdlus: 51%|โโโโโ | 350M/690M [00:08<00:03, 117MB/s]
Downloading expert_0.mdlus: 54%|โโโโโโ | 370M/690M [00:08<00:02, 112MB/s]
Downloading expert_0.mdlus: 57%|โโโโโโ | 390M/690M [00:08<00:02, 116MB/s]
Downloading expert_0.mdlus: 59%|โโโโโโ | 410M/690M [00:08<00:02, 106MB/s]
Downloading expert_0.mdlus: 62%|โโโโโโโ | 430M/690M [00:09<00:02, 108MB/s]
Downloading expert_0.mdlus: 65%|โโโโโโโ | 450M/690M [00:09<00:02, 110MB/s]
Downloading expert_0.mdlus: 68%|โโโโโโโ | 470M/690M [00:09<00:02, 106MB/s]
Downloading expert_0.mdlus: 71%|โโโโโโโ | 490M/690M [00:09<00:01, 113MB/s]
Downloading expert_0.mdlus: 74%|โโโโโโโโ | 510M/690M [00:09<00:01, 120MB/s]
Downloading expert_0.mdlus: 77%|โโโโโโโโ | 530M/690M [00:09<00:01, 121MB/s]
Downloading expert_0.mdlus: 80%|โโโโโโโโ | 550M/690M [00:10<00:01, 113MB/s]
Downloading expert_0.mdlus: 83%|โโโโโโโโโ | 570M/690M [00:10<00:01, 111MB/s]
Downloading expert_0.mdlus: 86%|โโโโโโโโโ | 590M/690M [00:10<00:00, 120MB/s]
Downloading expert_0.mdlus: 88%|โโโโโโโโโ | 610M/690M [00:10<00:00, 118MB/s]
Downloading expert_0.mdlus: 91%|โโโโโโโโโโ| 630M/690M [00:10<00:00, 127MB/s]
Downloading expert_0.mdlus: 94%|โโโโโโโโโโ| 650M/690M [00:11<00:00, 92.0MB/s]
Downloading expert_0.mdlus: 97%|โโโโโโโโโโ| 670M/690M [00:11<00:00, 103MB/s]
Downloading expert_0.mdlus: 100%|โโโโโโโโโโ| 690M/690M [00:11<00:00, 109MB/s]
Downloading expert_0.mdlus: 100%|โโโโโโโโโโ| 690M/690M [00:11<00:00, 62.6MB/s]
Downloading lat.npy: 0%| | 0.00/7.27M [00:00<?, ?B/s]
Downloading lat.npy: 100%|โโโโโโโโโโ| 7.27M/7.27M [00:00<00:00, 9.37MB/s]
Downloading lat.npy: 100%|โโโโโโโโโโ| 7.27M/7.27M [00:00<00:00, 9.30MB/s]
Downloading lon.npy: 0%| | 0.00/7.27M [00:00<?, ?B/s]
Downloading lon.npy: 100%|โโโโโโโโโโ| 7.27M/7.27M [00:00<00:00, 12.6MB/s]
Downloading lon.npy: 100%|โโโโโโโโโโ| 7.27M/7.27M [00:00<00:00, 12.5MB/s]
Downloading goes_means.npy: 0%| | 0.00/160 [00:00<?, ?B/s]
Downloading goes_means.npy: 100%|โโโโโโโโโโ| 160/160 [00:00<00:00, 544B/s]
Downloading goes_means.npy: 100%|โโโโโโโโโโ| 160/160 [00:00<00:00, 541B/s]
Downloading goes_stds.npy: 0%| | 0.00/160 [00:00<?, ?B/s]
Downloading goes_stds.npy: 100%|โโโโโโโโโโ| 160/160 [00:00<00:00, 251B/s]
Downloading goes_stds.npy: 100%|โโโโโโโโโโ| 160/160 [00:00<00:00, 250B/s]
Downloading topo.npy: 0%| | 0.00/7.27M [00:00<?, ?B/s]
Downloading topo.npy: 100%|โโโโโโโโโโ| 7.27M/7.27M [00:00<00:00, 14.7MB/s]
Downloading topo.npy: 100%|โโโโโโโโโโ| 7.27M/7.27M [00:00<00:00, 14.4MB/s]
Downloading expert_2.mdlus: 0%| | 0.00/662M [00:00<?, ?B/s]
Downloading expert_2.mdlus: 2%|โ | 10.0M/662M [00:00<00:53, 12.8MB/s]
Downloading expert_2.mdlus: 5%|โ | 30.0M/662M [00:01<00:17, 37.1MB/s]
Downloading expert_2.mdlus: 8%|โ | 50.0M/662M [00:01<00:14, 45.7MB/s]
Downloading expert_2.mdlus: 9%|โ | 60.0M/662M [00:01<00:12, 52.0MB/s]
Downloading expert_2.mdlus: 11%|โ | 70.0M/662M [00:01<00:12, 49.2MB/s]
Downloading expert_2.mdlus: 14%|โโ | 90.0M/662M [00:02<00:11, 53.8MB/s]
Downloading expert_2.mdlus: 15%|โโ | 100M/662M [00:02<00:09, 60.3MB/s]
Downloading expert_2.mdlus: 17%|โโ | 110M/662M [00:02<00:08, 65.1MB/s]
Downloading expert_2.mdlus: 18%|โโ | 120M/662M [00:02<00:07, 71.7MB/s]
Downloading expert_2.mdlus: 21%|โโ | 140M/662M [00:02<00:07, 76.9MB/s]
Downloading expert_2.mdlus: 23%|โโโ | 150M/662M [00:02<00:08, 64.9MB/s]
Downloading expert_2.mdlus: 24%|โโโ | 160M/662M [00:03<00:07, 69.9MB/s]
Downloading expert_2.mdlus: 27%|โโโ | 180M/662M [00:03<00:05, 92.4MB/s]
Downloading expert_2.mdlus: 30%|โโโ | 200M/662M [00:03<00:04, 107MB/s]
Downloading expert_2.mdlus: 33%|โโโโ | 220M/662M [00:03<00:03, 118MB/s]
Downloading expert_2.mdlus: 36%|โโโโ | 240M/662M [00:03<00:03, 125MB/s]
Downloading expert_2.mdlus: 39%|โโโโ | 260M/662M [00:03<00:03, 128MB/s]
Downloading expert_2.mdlus: 42%|โโโโโ | 280M/662M [00:03<00:03, 128MB/s]
Downloading expert_2.mdlus: 45%|โโโโโ | 300M/662M [00:04<00:03, 124MB/s]
Downloading expert_2.mdlus: 48%|โโโโโ | 320M/662M [00:04<00:02, 125MB/s]
Downloading expert_2.mdlus: 51%|โโโโโโ | 340M/662M [00:04<00:02, 130MB/s]
Downloading expert_2.mdlus: 54%|โโโโโโ | 360M/662M [00:04<00:02, 140MB/s]
Downloading expert_2.mdlus: 57%|โโโโโโ | 380M/662M [00:04<00:02, 144MB/s]
Downloading expert_2.mdlus: 60%|โโโโโโ | 400M/662M [00:04<00:01, 150MB/s]
Downloading expert_2.mdlus: 63%|โโโโโโโ | 420M/662M [00:04<00:01, 154MB/s]
Downloading expert_2.mdlus: 66%|โโโโโโโ | 440M/662M [00:05<00:01, 132MB/s]
Downloading expert_2.mdlus: 69%|โโโโโโโ | 460M/662M [00:05<00:01, 117MB/s]
Downloading expert_2.mdlus: 72%|โโโโโโโโ | 480M/662M [00:05<00:01, 122MB/s]
Downloading expert_2.mdlus: 76%|โโโโโโโโ | 500M/662M [00:05<00:01, 116MB/s]
Downloading expert_2.mdlus: 79%|โโโโโโโโ | 520M/662M [00:06<00:01, 97.0MB/s]
Downloading expert_2.mdlus: 82%|โโโโโโโโโ | 540M/662M [00:06<00:01, 72.7MB/s]
Downloading expert_2.mdlus: 85%|โโโโโโโโโ | 560M/662M [00:06<00:01, 87.7MB/s]
Downloading expert_2.mdlus: 88%|โโโโโโโโโ | 580M/662M [00:06<00:00, 103MB/s]
Downloading expert_2.mdlus: 91%|โโโโโโโโโ | 600M/662M [00:06<00:00, 117MB/s]
Downloading expert_2.mdlus: 94%|โโโโโโโโโโ| 620M/662M [00:06<00:00, 130MB/s]
Downloading expert_2.mdlus: 97%|โโโโโโโโโโ| 640M/662M [00:07<00:00, 140MB/s]
Downloading expert_2.mdlus: 100%|โโโโโโโโโโ| 660M/662M [00:07<00:00, 125MB/s]
Downloading expert_2.mdlus: 100%|โโโโโโโโโโ| 662M/662M [00:07<00:00, 95.1MB/s]
Downloading expert_1.mdlus: 0%| | 0.00/665M [00:00<?, ?B/s]
Downloading expert_1.mdlus: 2%|โ | 10.0M/665M [00:01<01:07, 10.2MB/s]
Downloading expert_1.mdlus: 3%|โ | 20.0M/665M [00:01<00:34, 19.5MB/s]
Downloading expert_1.mdlus: 5%|โ | 30.0M/665M [00:01<00:24, 27.6MB/s]
Downloading expert_1.mdlus: 6%|โ | 40.0M/665M [00:01<00:19, 33.2MB/s]
Downloading expert_1.mdlus: 8%|โ | 50.0M/665M [00:01<00:17, 37.8MB/s]
Downloading expert_1.mdlus: 9%|โ | 60.0M/665M [00:02<00:15, 42.0MB/s]
Downloading expert_1.mdlus: 11%|โ | 70.0M/665M [00:02<00:18, 33.6MB/s]
Downloading expert_1.mdlus: 12%|โโ | 80.0M/665M [00:02<00:15, 39.8MB/s]
Downloading expert_1.mdlus: 14%|โโ | 90.0M/665M [00:02<00:12, 46.4MB/s]
Downloading expert_1.mdlus: 15%|โโ | 100M/665M [00:02<00:12, 47.4MB/s]
Downloading expert_1.mdlus: 17%|โโ | 110M/665M [00:03<00:11, 50.4MB/s]
Downloading expert_1.mdlus: 18%|โโ | 120M/665M [00:03<00:10, 56.0MB/s]
Downloading expert_1.mdlus: 20%|โโ | 130M/665M [00:03<00:09, 60.5MB/s]
Downloading expert_1.mdlus: 23%|โโโ | 150M/665M [00:03<00:06, 83.8MB/s]
Downloading expert_1.mdlus: 26%|โโโ | 170M/665M [00:03<00:05, 100MB/s]
Downloading expert_1.mdlus: 29%|โโโ | 190M/665M [00:03<00:04, 115MB/s]
Downloading expert_1.mdlus: 32%|โโโโ | 210M/665M [00:04<00:09, 52.6MB/s]
Downloading expert_1.mdlus: 35%|โโโโ | 230M/665M [00:04<00:06, 68.0MB/s]
Downloading expert_1.mdlus: 38%|โโโโ | 250M/665M [00:04<00:05, 83.7MB/s]
Downloading expert_1.mdlus: 41%|โโโโ | 270M/665M [00:05<00:04, 99.2MB/s]
Downloading expert_1.mdlus: 44%|โโโโโ | 290M/665M [00:05<00:03, 113MB/s]
Downloading expert_1.mdlus: 47%|โโโโโ | 310M/665M [00:05<00:02, 126MB/s]
Downloading expert_1.mdlus: 50%|โโโโโ | 330M/665M [00:05<00:02, 138MB/s]
Downloading expert_1.mdlus: 53%|โโโโโโ | 350M/665M [00:05<00:02, 110MB/s]
Downloading expert_1.mdlus: 56%|โโโโโโ | 370M/665M [00:06<00:04, 76.4MB/s]
Downloading expert_1.mdlus: 59%|โโโโโโ | 390M/665M [00:06<00:03, 89.6MB/s]
Downloading expert_1.mdlus: 62%|โโโโโโโ | 410M/665M [00:06<00:02, 89.8MB/s]
Downloading expert_1.mdlus: 65%|โโโโโโโ | 430M/665M [00:06<00:02, 102MB/s]
Downloading expert_1.mdlus: 68%|โโโโโโโ | 450M/665M [00:06<00:01, 115MB/s]
Downloading expert_1.mdlus: 71%|โโโโโโโ | 470M/665M [00:07<00:02, 95.4MB/s]
Downloading expert_1.mdlus: 74%|โโโโโโโโ | 490M/665M [00:07<00:01, 107MB/s]
Downloading expert_1.mdlus: 77%|โโโโโโโโ | 510M/665M [00:07<00:01, 119MB/s]
Downloading expert_1.mdlus: 80%|โโโโโโโโ | 530M/665M [00:07<00:01, 130MB/s]
Downloading expert_1.mdlus: 83%|โโโโโโโโโ | 550M/665M [00:07<00:00, 138MB/s]
Downloading expert_1.mdlus: 86%|โโโโโโโโโ | 570M/665M [00:07<00:00, 145MB/s]
Downloading expert_1.mdlus: 89%|โโโโโโโโโ | 590M/665M [00:07<00:00, 151MB/s]
Downloading expert_1.mdlus: 92%|โโโโโโโโโโ| 610M/665M [00:08<00:00, 150MB/s]
Downloading expert_1.mdlus: 95%|โโโโโโโโโโ| 630M/665M [00:08<00:00, 154MB/s]
Downloading expert_1.mdlus: 98%|โโโโโโโโโโ| 650M/665M [00:08<00:00, 137MB/s]
Downloading expert_1.mdlus: 100%|โโโโโโโโโโ| 665M/665M [00:08<00:00, 135MB/s]
Downloading expert_1.mdlus: 100%|โโโโโโโโโโ| 665M/665M [00:08<00:00, 82.0MB/s]
Downloading expert_0.mdlus: 0%| | 0.00/671M [00:00<?, ?B/s]
Downloading expert_0.mdlus: 1%|โ | 10.0M/671M [00:01<01:34, 7.36MB/s]
Downloading expert_0.mdlus: 3%|โ | 20.0M/671M [00:01<00:43, 15.5MB/s]
Downloading expert_0.mdlus: 4%|โ | 30.0M/671M [00:01<00:28, 23.8MB/s]
Downloading expert_0.mdlus: 6%|โ | 40.0M/671M [00:01<00:20, 32.3MB/s]
Downloading expert_0.mdlus: 7%|โ | 50.0M/671M [00:02<00:16, 38.5MB/s]
Downloading expert_0.mdlus: 9%|โ | 60.0M/671M [00:02<00:13, 48.4MB/s]
Downloading expert_0.mdlus: 10%|โ | 70.0M/671M [00:02<00:12, 49.1MB/s]
Downloading expert_0.mdlus: 13%|โโ | 90.0M/671M [00:02<00:08, 69.6MB/s]
Downloading expert_0.mdlus: 16%|โโ | 110M/671M [00:02<00:06, 88.0MB/s]
Downloading expert_0.mdlus: 18%|โโ | 120M/671M [00:02<00:06, 90.2MB/s]
Downloading expert_0.mdlus: 21%|โโ | 140M/671M [00:02<00:05, 100MB/s]
Downloading expert_0.mdlus: 24%|โโโ | 160M/671M [00:03<00:05, 106MB/s]
Downloading expert_0.mdlus: 27%|โโโ | 180M/671M [00:03<00:04, 116MB/s]
Downloading expert_0.mdlus: 30%|โโโ | 200M/671M [00:03<00:03, 127MB/s]
Downloading expert_0.mdlus: 33%|โโโโ | 220M/671M [00:03<00:03, 129MB/s]
Downloading expert_0.mdlus: 36%|โโโโ | 240M/671M [00:03<00:03, 117MB/s]
Downloading expert_0.mdlus: 39%|โโโโ | 260M/671M [00:04<00:04, 89.0MB/s]
Downloading expert_0.mdlus: 42%|โโโโโ | 280M/671M [00:04<00:04, 100MB/s]
Downloading expert_0.mdlus: 45%|โโโโโ | 300M/671M [00:04<00:03, 113MB/s]
Downloading expert_0.mdlus: 48%|โโโโโ | 320M/671M [00:04<00:03, 106MB/s]
Downloading expert_0.mdlus: 51%|โโโโโ | 340M/671M [00:04<00:03, 109MB/s]
Downloading expert_0.mdlus: 54%|โโโโโโ | 360M/671M [00:04<00:02, 121MB/s]
Downloading expert_0.mdlus: 57%|โโโโโโ | 380M/671M [00:05<00:02, 130MB/s]
Downloading expert_0.mdlus: 60%|โโโโโโ | 400M/671M [00:05<00:02, 139MB/s]
Downloading expert_0.mdlus: 63%|โโโโโโโ | 420M/671M [00:05<00:02, 96.4MB/s]
Downloading expert_0.mdlus: 66%|โโโโโโโ | 440M/671M [00:06<00:03, 74.6MB/s]
Downloading expert_0.mdlus: 67%|โโโโโโโ | 450M/671M [00:06<00:03, 69.4MB/s]
Downloading expert_0.mdlus: 69%|โโโโโโโ | 460M/671M [00:06<00:03, 68.9MB/s]
Downloading expert_0.mdlus: 72%|โโโโโโโโ | 480M/671M [00:06<00:02, 87.0MB/s]
Downloading expert_0.mdlus: 74%|โโโโโโโโ | 500M/671M [00:06<00:01, 104MB/s]
Downloading expert_0.mdlus: 77%|โโโโโโโโ | 520M/671M [00:06<00:01, 120MB/s]
Downloading expert_0.mdlus: 80%|โโโโโโโโ | 540M/671M [00:06<00:01, 127MB/s]
Downloading expert_0.mdlus: 83%|โโโโโโโโโ | 560M/671M [00:07<00:00, 136MB/s]
Downloading expert_0.mdlus: 86%|โโโโโโโโโ | 580M/671M [00:07<00:00, 145MB/s]
Downloading expert_0.mdlus: 89%|โโโโโโโโโ | 600M/671M [00:07<00:00, 131MB/s]
Downloading expert_0.mdlus: 92%|โโโโโโโโโโ| 620M/671M [00:07<00:00, 90.1MB/s]
Downloading expert_0.mdlus: 95%|โโโโโโโโโโ| 640M/671M [00:07<00:00, 104MB/s]
Downloading expert_0.mdlus: 98%|โโโโโโโโโโ| 660M/671M [00:08<00:00, 117MB/s]
Downloading expert_0.mdlus: 100%|โโโโโโโโโโ| 671M/671M [00:08<00:00, 86.9MB/s]
Downloading mrms_means.npy: 0%| | 0.00/136 [00:00<?, ?B/s]
Downloading mrms_means.npy: 100%|โโโโโโโโโโ| 136/136 [00:00<00:00, 233B/s]
Downloading mrms_means.npy: 100%|โโโโโโโโโโ| 136/136 [00:00<00:00, 232B/s]
Downloading mrms_stds.npy: 0%| | 0.00/136 [00:00<?, ?B/s]
Downloading mrms_stds.npy: 100%|โโโโโโโโโโ| 136/136 [00:00<00:00, 340B/s]
Downloading mrms_stds.npy: 100%|โโโโโโโโโโ| 136/136 [00:00<00:00, 338B/s]
Downloading nexrad_proximity.npy: 0%| | 0.00/7.27M [00:00<?, ?B/s]
Downloading nexrad_proximity.npy: 100%|โโโโโโโโโโ| 7.27M/7.27M [00:00<00:00, 9.57MB/s]
Downloading nexrad_proximity.npy: 100%|โโโโโโโโโโ| 7.27M/7.27M [00:00<00:00, 9.45MB/s]
Downloading mrms_coverage_mask.npy: 0%| | 0.00/1.82M [00:00<?, ?B/s]
Downloading mrms_coverage_mask.npy: 100%|โโโโโโโโโโ| 1.82M/1.82M [00:00<00:00, 4.85MB/s]
Downloading mrms_coverage_mask.npy: 100%|โโโโโโโโโโ| 1.82M/1.82M [00:00<00:00, 4.81MB/s]Fetch the Initial Conditions¶
StormScope runs on the HRRR grid (or a crop of it), while GOES, MRMS and GLM
each come on their own native grids. Each model's default_sources returns
its recommended sources already regridded onto the model grid: GOES and MRMS by
nearest neighbor, and GLM bilinearly with zero fill. Gridpoints the sources do
not cover are NaN and masked by the model, so
earth2studio.data.fetch_data returns inputs
that match each model's input coordinates.
The MRMS model's input source composes MRMS radar with gridded GLM lightning. Its second source provides the GOES conditioning, which is the same GOES history that initializes the GOES model, so we reuse that.
start_date = np.array([np.datetime64(datetime(2024, 1, 8, 18, 0, 0))])
in_coords = model.input_coords()
x = fetch_data(
model.default_sources(),
time=start_date,
variable=in_coords["variable"].values,
lead_time=in_coords["lead_time"].values,
device=device,
)
mrms_in_coords = model_mrms.input_coords()
mrms_source, _ = model_mrms.default_sources()
x_mrms = fetch_data(
mrms_source,
time=start_date,
variable=mrms_in_coords["variable"].values,
lead_time=mrms_in_coords["lead_time"].values,
device=device,
)
Console output161 lines
Fetching GOES data: 0%| | 0/1 [00:00<?, ?it/s]
Fetching GOES data: 100%|โโโโโโโโโโ| 1/1 [00:27<00:00, 27.52s/it]
Fetching GOES data: 100%|โโโโโโโโโโ| 1/1 [00:27<00:00, 27.52s/it]
Fetching GOES data: 0%| | 0/1 [00:00<?, ?it/s]
Fetching GOES data: 100%|โโโโโโโโโโ| 1/1 [00:18<00:00, 18.04s/it]
Fetching GOES data: 100%|โโโโโโโโโโ| 1/1 [00:18<00:00, 18.04s/it]
Fetching GOES data: 0%| | 0/1 [00:00<?, ?it/s]
Fetching GOES data: 100%|โโโโโโโโโโ| 1/1 [00:49<00:00, 49.42s/it]
Fetching GOES data: 100%|โโโโโโโโโโ| 1/1 [00:49<00:00, 49.42s/it]
Fetching GOES data: 0%| | 0/1 [00:00<?, ?it/s]
Fetching GOES data: 100%|โโโโโโโโโโ| 1/1 [01:01<00:00, 61.82s/it]
Fetching GOES data: 100%|โโโโโโโโโโ| 1/1 [01:01<00:00, 61.82s/it]
Fetching GOES data: 0%| | 0/1 [00:00<?, ?it/s]
Fetching GOES data: 100%|โโโโโโโโโโ| 1/1 [00:04<00:00, 4.42s/it]
Fetching GOES data: 100%|โโโโโโโโโโ| 1/1 [00:04<00:00, 4.42s/it]
Fetching GOES data: 0%| | 0/1 [00:00<?, ?it/s]
Fetching GOES data: 100%|โโโโโโโโโโ| 1/1 [01:28<00:00, 88.11s/it]
Fetching GOES data: 100%|โโโโโโโโโโ| 1/1 [01:28<00:00, 88.11s/it]
Fetching MRMS data: 0%| | 0/2 [00:00<?, ?it/s]
2026-11-19 19:08:55.500 | INFO | earth2studio.data.mrms:_fetch_task:347 - Fetching MRMS file: s3://noaa-mrms-pds/CONUS/MergedBaseReflectivityQC_00.50/20240108/MRMS_MergedBaseReflectivityQC_00.50_20240108-170959.grib2.gz
Fetching MRMS data: 0%| | 0/2 [00:00<?, ?it/s]
2026-11-19 19:08:55.512 | INFO | earth2studio.data.mrms:_fetch_task:347 - Fetching MRMS file: s3://noaa-mrms-pds/CONUS/MergedReflectivityQCComposite_00.50/20240108/MRMS_MergedReflectivityQCComposite_00.50_20240108-171038.grib2.gz
Fetching MRMS data: 0%| | 0/2 [00:00<?, ?it/s]
Fetching MRMS data: 50%|โโโโโ | 1/2 [00:01<00:01, 1.36s/it]
Fetching MRMS data: 100%|โโโโโโโโโโ| 2/2 [00:01<00:00, 1.28it/s]
Fetching MRMS data: 100%|โโโโโโโโโโ| 2/2 [00:01<00:00, 1.15it/s]
Listing GLM L2 LCFA prefixes: 0%| | 0/1 [00:00<?, ?it/s]
Listing GLM L2 LCFA prefixes: 100%|โโโโโโโโโโ| 1/1 [00:00<00:00, 1.42it/s]
Listing GLM L2 LCFA prefixes: 100%|โโโโโโโโโโ| 1/1 [00:00<00:00, 1.42it/s]
2026-11-19 19:08:57.488 | INFO | earth2studio.data.goes_glm:fetch:414 - [earth2studio.data.goes_glm] discovered 17 unique GLM files across 1 requested times
Fetching GLM L2 LCFA files: 0%| | 0/17 [00:00<?, ?it/s]
Fetching GLM L2 LCFA files: 6%|โ | 1/17 [00:00<00:07, 2.16it/s]
Fetching GLM L2 LCFA files: 71%|โโโโโโโ | 12/17 [00:00<00:00, 26.81it/s]
Fetching GLM L2 LCFA files: 100%|โโโโโโโโโโ| 17/17 [00:01<00:00, 10.19it/s]
Fetching MRMS data: 0%| | 0/2 [00:00<?, ?it/s]
2026-11-19 19:08:59.520 | INFO | earth2studio.data.mrms:_fetch_task:347 - Fetching MRMS file: s3://noaa-mrms-pds/CONUS/MergedBaseReflectivityQC_00.50/20240108/MRMS_MergedBaseReflectivityQC_00.50_20240108-172015.grib2.gz
Fetching MRMS data: 0%| | 0/2 [00:00<?, ?it/s]
2026-11-19 19:08:59.524 | INFO | earth2studio.data.mrms:_fetch_task:347 - Fetching MRMS file: s3://noaa-mrms-pds/CONUS/MergedReflectivityQCComposite_00.50/20240108/MRMS_MergedReflectivityQCComposite_00.50_20240108-172040.grib2.gz
Fetching MRMS data: 0%| | 0/2 [00:00<?, ?it/s]
Fetching MRMS data: 50%|โโโโโ | 1/2 [00:00<00:00, 1.53it/s]
Fetching MRMS data: 100%|โโโโโโโโโโ| 2/2 [00:01<00:00, 2.07it/s]
Fetching MRMS data: 100%|โโโโโโโโโโ| 2/2 [00:01<00:00, 1.96it/s]
Listing GLM L2 LCFA prefixes: 0%| | 0/1 [00:00<?, ?it/s]
Listing GLM L2 LCFA prefixes: 100%|โโโโโโโโโโ| 1/1 [00:00<00:00, 5769.33it/s]
2026-11-19 19:09:00.665 | INFO | earth2studio.data.goes_glm:fetch:414 - [earth2studio.data.goes_glm] discovered 17 unique GLM files across 1 requested times
Fetching GLM L2 LCFA files: 0%| | 0/17 [00:00<?, ?it/s]
Fetching GLM L2 LCFA files: 6%|โ | 1/17 [00:00<00:02, 6.81it/s]
Fetching GLM L2 LCFA files: 76%|โโโโโโโโ | 13/17 [00:00<00:00, 29.87it/s]
Fetching GLM L2 LCFA files: 94%|โโโโโโโโโโ| 16/17 [00:00<00:00, 15.41it/s]
Fetching GLM L2 LCFA files: 100%|โโโโโโโโโโ| 17/17 [00:01<00:00, 15.56it/s]
Fetching MRMS data: 0%| | 0/2 [00:00<?, ?it/s]
2026-11-19 19:09:02.145 | INFO | earth2studio.data.mrms:_fetch_task:347 - Fetching MRMS file: s3://noaa-mrms-pds/CONUS/MergedReflectivityQCComposite_00.50/20240108/MRMS_MergedReflectivityQCComposite_00.50_20240108-173035.grib2.gz
Fetching MRMS data: 0%| | 0/2 [00:00<?, ?it/s]
2026-11-19 19:09:02.151 | INFO | earth2studio.data.mrms:_fetch_task:347 - Fetching MRMS file: s3://noaa-mrms-pds/CONUS/MergedBaseReflectivityQC_00.50/20240108/MRMS_MergedBaseReflectivityQC_00.50_20240108-173021.grib2.gz
Fetching MRMS data: 0%| | 0/2 [00:00<?, ?it/s]
Fetching MRMS data: 50%|โโโโโ | 1/2 [00:00<00:00, 1.68it/s]
Fetching MRMS data: 100%|โโโโโโโโโโ| 2/2 [00:00<00:00, 2.20it/s]
Fetching MRMS data: 100%|โโโโโโโโโโ| 2/2 [00:00<00:00, 2.10it/s]
Listing GLM L2 LCFA prefixes: 0%| | 0/1 [00:00<?, ?it/s]
Listing GLM L2 LCFA prefixes: 100%|โโโโโโโโโโ| 1/1 [00:00<00:00, 3844.46it/s]
2026-11-19 19:09:03.205 | INFO | earth2studio.data.goes_glm:fetch:414 - [earth2studio.data.goes_glm] discovered 17 unique GLM files across 1 requested times
Fetching GLM L2 LCFA files: 0%| | 0/17 [00:00<?, ?it/s]
Fetching GLM L2 LCFA files: 6%|โ | 1/17 [00:00<00:02, 7.73it/s]
Fetching GLM L2 LCFA files: 65%|โโโโโโโ | 11/17 [00:00<00:00, 55.88it/s]
Fetching GLM L2 LCFA files: 100%|โโโโโโโโโโ| 17/17 [00:00<00:00, 17.48it/s]
Fetching MRMS data: 0%| | 0/2 [00:00<?, ?it/s]
2026-11-19 19:09:04.576 | INFO | earth2studio.data.mrms:_fetch_task:347 - Fetching MRMS file: s3://noaa-mrms-pds/CONUS/MergedBaseReflectivityQC_00.50/20240108/MRMS_MergedBaseReflectivityQC_00.50_20240108-174013.grib2.gz
Fetching MRMS data: 0%| | 0/2 [00:00<?, ?it/s]
2026-11-19 19:09:04.578 | INFO | earth2studio.data.mrms:_fetch_task:347 - Fetching MRMS file: s3://noaa-mrms-pds/CONUS/MergedReflectivityQCComposite_00.50/20240108/MRMS_MergedReflectivityQCComposite_00.50_20240108-174040.grib2.gz
Fetching MRMS data: 0%| | 0/2 [00:00<?, ?it/s]
Fetching MRMS data: 50%|โโโโโ | 1/2 [00:00<00:00, 1.57it/s]
Fetching MRMS data: 100%|โโโโโโโโโโ| 2/2 [00:00<00:00, 2.12it/s]
Fetching MRMS data: 100%|โโโโโโโโโโ| 2/2 [00:00<00:00, 2.01it/s]
Listing GLM L2 LCFA prefixes: 0%| | 0/1 [00:00<?, ?it/s]
Listing GLM L2 LCFA prefixes: 100%|โโโโโโโโโโ| 1/1 [00:00<00:00, 5184.55it/s]
2026-11-19 19:09:05.695 | INFO | earth2studio.data.goes_glm:fetch:414 - [earth2studio.data.goes_glm] discovered 17 unique GLM files across 1 requested times
Fetching GLM L2 LCFA files: 0%| | 0/17 [00:00<?, ?it/s]
Fetching GLM L2 LCFA files: 6%|โ | 1/17 [00:00<00:02, 7.20it/s]
Fetching GLM L2 LCFA files: 76%|โโโโโโโโ | 13/17 [00:00<00:00, 37.65it/s]
Fetching GLM L2 LCFA files: 100%|โโโโโโโโโโ| 17/17 [00:00<00:00, 19.42it/s]
Fetching GLM L2 LCFA files: 100%|โโโโโโโโโโ| 17/17 [00:00<00:00, 21.07it/s]
Fetching MRMS data: 0%| | 0/2 [00:00<?, ?it/s]
2026-11-19 19:09:06.934 | INFO | earth2studio.data.mrms:_fetch_task:347 - Fetching MRMS file: s3://noaa-mrms-pds/CONUS/MergedBaseReflectivityQC_00.50/20240108/MRMS_MergedBaseReflectivityQC_00.50_20240108-174945.grib2.gz
Fetching MRMS data: 0%| | 0/2 [00:00<?, ?it/s]
2026-11-19 19:09:06.936 | INFO | earth2studio.data.mrms:_fetch_task:347 - Fetching MRMS file: s3://noaa-mrms-pds/CONUS/MergedReflectivityQCComposite_00.50/20240108/MRMS_MergedReflectivityQCComposite_00.50_20240108-175039.grib2.gz
Fetching MRMS data: 0%| | 0/2 [00:00<?, ?it/s]
Fetching MRMS data: 50%|โโโโโ | 1/2 [00:00<00:00, 1.64it/s]
Fetching MRMS data: 100%|โโโโโโโโโโ| 2/2 [00:00<00:00, 2.15it/s]
Fetching MRMS data: 100%|โโโโโโโโโโ| 2/2 [00:00<00:00, 2.06it/s]
Listing GLM L2 LCFA prefixes: 0%| | 0/1 [00:00<?, ?it/s]
Listing GLM L2 LCFA prefixes: 100%|โโโโโโโโโโ| 1/1 [00:00<00:00, 2900.63it/s]
2026-11-19 19:09:08.039 | INFO | earth2studio.data.goes_glm:fetch:414 - [earth2studio.data.goes_glm] discovered 17 unique GLM files across 1 requested times
Fetching GLM L2 LCFA files: 0%| | 0/17 [00:00<?, ?it/s]
Fetching GLM L2 LCFA files: 6%|โ | 1/17 [00:00<00:02, 7.45it/s]
Fetching GLM L2 LCFA files: 65%|โโโโโโโ | 11/17 [00:00<00:00, 43.25it/s]
Fetching GLM L2 LCFA files: 94%|โโโโโโโโโโ| 16/17 [00:00<00:00, 21.61it/s]
Fetching GLM L2 LCFA files: 100%|โโโโโโโโโโ| 17/17 [00:00<00:00, 20.40it/s]
Fetching MRMS data: 0%| | 0/2 [00:00<?, ?it/s]
2026-11-19 19:09:09.305 | INFO | earth2studio.data.mrms:_fetch_task:347 - Fetching MRMS file: s3://noaa-mrms-pds/CONUS/MergedBaseReflectivityQC_00.50/20240108/MRMS_MergedBaseReflectivityQC_00.50_20240108-180014.grib2.gz
Fetching MRMS data: 0%| | 0/2 [00:00<?, ?it/s]
2026-11-19 19:09:09.307 | INFO | earth2studio.data.mrms:_fetch_task:347 - Fetching MRMS file: s3://noaa-mrms-pds/CONUS/MergedReflectivityQCComposite_00.50/20240108/MRMS_MergedReflectivityQCComposite_00.50_20240108-180040.grib2.gz
Fetching MRMS data: 0%| | 0/2 [00:00<?, ?it/s]
Fetching MRMS data: 50%|โโโโโ | 1/2 [00:00<00:00, 1.52it/s]
Fetching MRMS data: 100%|โโโโโโโโโโ| 2/2 [00:01<00:00, 2.07it/s]
Fetching MRMS data: 100%|โโโโโโโโโโ| 2/2 [00:01<00:00, 1.96it/s]
Listing GLM L2 LCFA prefixes: 0%| | 0/2 [00:00<?, ?it/s]
Listing GLM L2 LCFA prefixes: 100%|โโโโโโโโโโ| 2/2 [00:00<00:00, 11.50it/s]
Listing GLM L2 LCFA prefixes: 100%|โโโโโโโโโโ| 2/2 [00:00<00:00, 11.48it/s]
2026-11-19 19:09:10.607 | INFO | earth2studio.data.goes_glm:fetch:414 - [earth2studio.data.goes_glm] discovered 17 unique GLM files across 1 requested times
Fetching GLM L2 LCFA files: 0%| | 0/17 [00:00<?, ?it/s]
Fetching GLM L2 LCFA files: 6%|โ | 1/17 [00:00<00:02, 6.93it/s]
Fetching GLM L2 LCFA files: 65%|โโโโโโโ | 11/17 [00:00<00:00, 43.59it/s]
Fetching GLM L2 LCFA files: 94%|โโโโโโโโโโ| 16/17 [00:00<00:00, 20.60it/s]
Fetching GLM L2 LCFA files: 100%|โโโโโโโโโโ| 17/17 [00:00<00:00, 21.65it/s]Add Batch Dimension¶
The models expect a batch dimension: [B, T, L, C, H, W]. Up to GPU memory limits, this can be increased to produce multiple ensemble members.
batch_size = 1
x = x.expand_dims(batch=np.arange(batch_size)).astype(np.float32)
x_mrms = x_mrms.expand_dims(batch=np.arange(batch_size)).astype(np.float32)
Execute the Workflow¶
Since the StormScope coupled inference is a bit more involved, we will use
a custom forecast loop rather than a built-in workflow. Here, the GOES model
predicts future satellite imagery, and the MRMS model predicts radar
reflectivity (and GLM) conditioned on GOES (initially the observed history, then
the forecasted GOES imagery) via explicit initialize and step calls.
y_pred, state = model.initialize(x)
y_mrms_pred, state_mrms = model_mrms.initialize(x_mrms, x)
n_steps = 2
for step_idx in trange(n_steps - 1, desc="Forecast steps"):
y_mrms_pred, state_mrms = model_mrms.step(y_mrms_pred, y_pred, state=state_mrms)
y_pred, state = model.step(y_pred, state=state)
Console output3 lines
Forecast steps: 0%| | 0/1 [00:00<?, ?it/s]
Forecast steps: 100%|โโโโโโโโโโ| 1/1 [00:03<00:00, 3.20s/it]
Forecast steps: 100%|โโโโโโโโโโ| 1/1 [00:03<00:00, 3.20s/it]Post Processing¶
Let's plot the final forecast step: GOES abi13c (Clean IR 10.35um) in
grayscale with MRMS reflectivity (refc) overlaid. Forecasts are NaN outside the
gridpoints the observations cover. For a regional view, crop_output crops
the forecast to the requested region; the rollout itself keeps the context.
goes_channel = "abi13c"
goes_field = model.crop_output(y_pred).e2s.as_numpy().isel(batch=0, time=0, lead_time=0)
mrms_field = (
model_mrms.crop_output(y_mrms_pred)
.e2s.as_numpy()
.isel(batch=0, time=0, lead_time=0)
)
lat_out, lon_out = goes_field["lat"].values, goes_field["lon"].values
# Prepare HRRR Lambert Conformal projection
proj_hrrr = ccrs.LambertConformal(
central_longitude=262.5,
central_latitude=38.5,
standard_parallels=(38.5, 38.5),
globe=ccrs.Globe(semimajor_axis=6371229, semiminor_axis=6371229),
)
plt.figure(figsize=(9, 6))
ax = plt.axes(projection=proj_hrrr)
# Dual layer coast/state lines for better day/night visibility
# Black halo (thicker)
ax.coastlines(color="black", linewidth=1.2)
ax.add_feature(cfeature.STATES, edgecolor="black", linewidth=1.0)
# White inner line (thinner)
ax.coastlines(color="white", linewidth=0.4)
ax.add_feature(cfeature.STATES, edgecolor="white", linewidth=0.3)
im = ax.pcolormesh(
lon_out,
lat_out,
goes_field.sel(variable=goes_channel).values,
transform=ccrs.PlateCarree(),
cmap="gray_r",
shading="auto",
)
# Overlay MRMS on top of GOES, hiding non-positive reflectivity
field_mrms = mrms_field.sel(variable="refc").values
field_mrms = np.where(field_mrms <= 0, np.nan, field_mrms)
im_mrms = ax.pcolormesh(
lon_out,
lat_out,
field_mrms,
transform=ccrs.PlateCarree(),
cmap="inferno",
shading="auto",
vmin=0.0,
vmax=55.0,
)
plt.colorbar(
im,
label="GOES Clean IR 10.35um [K]",
orientation="horizontal",
pad=0.05,
shrink=0.5,
)
plt.colorbar(
im_mrms,
label="MRMS Reflectivity [dBZ]",
orientation="horizontal",
pad=0.1,
shrink=0.5,
)
time = np.datetime_as_string(goes_field["time"].values, unit="m")
lead_time = goes_field["lead_time"].values
plt.title(
f"Predicted GOES {goes_channel} with MRMS overlay from {time} UTC "
f"initialization (lead {lead_time.astype('timedelta64[m]')})"
)
plt.tight_layout()
plt.savefig("outputs/03_stormscope_goes_example.png", dpi=300)
