NWP | Herbie | Download NWP model output (grib2) | MPAS | WRF
Herbie
Herbie is a python package that downloads recent and archived numerical weather prediction (NWP) model output from different cloud archive sources. NWP data is distributed in GRIB2 format which Herbie reads using xarray+cfgrib. Herbie also provides some extra features to help visualize and extract data.
Herbie helps you discover, download, and read data from:
- High Resolution Rapid Refresh (HRRR) | HRRR-Alaska
- Rapid Refresh (RAP)
- Global Forecast System (GFS)
- Global Ensemble Forecast System (GEFS)
- ECMWF Open Data Forecasts (IFS and AIFS)
- Navy Global Environmental Model (NAVGEM)
- North American Mesoscale Model (NAM)
- National Blend of Models (NBM)
- Rapid Refresh Forecast System (RRFS) prototype
- Real-Time/Un-Restricted Mesoscale Analysis (RTMA/URMA)
- Hurricane Analysis And Forecast System (HAFS)
- High Resolution Deterministic Prediction System (HRDPS)
- Climate Forecast System (CFS)
and more! Check out the gallery.
Installation
1 | |
Capabilities
- Search for model output from different data sources.
- Download full GRIB2 files.
- Download subset GRIB2 files (by grib field).
- Read data with xarray.
- Read index file with Pandas.
- Extra features (herbie xarray accessors)
- Extract data at a point
- Get Cartopy coordinate references system
- Plot data with Cartopy (very early development).
Examples
1 | |
IFS/AIFS
IFS data is only available at 0.4 degree prior to February 1,2024. After that date, the IFS is available at 0.25 degreeresolution.
ECMWF provides data for two different models
- model="ifs" ECMWF Integrated Forecast System
- model="aifs" ECMWF Artificial Intelligence Integrated Forecast System
| prioriy | Data source | Archive Duration |
|---|---|---|
| "ecmwf" | ECMWF Open Data Server | last 4 days |
| "azure" | Microsoft Azure | 2022-01-21 to present |
| "aws" | Amazon Web Services | 2023-01-18 to present |
| product= | Product Description | Available model runs |
|---|---|---|
| "oper" | operational high-resolution forecast, atmospheric fields | 00z, 12z, |
| "wave" | wave forecasts | 00z, 12z, |
| "scda" | short cut-off high-resolution forecast, atmospheric fields (also known a high-frequency products)”, | 06z, 18z |
| "scwv" | short cut-off high-resolution forecast, ocean wave fields (also known a high-frequency products)”, | 06z, 18z |
| "enfo" | ensemble forecast, atmospheric fields | 00z, 06z, 12z, 18z |
| "waef" | ensemble forecast, ocean wave fields, | 00z, 06z, 12z, 18z |
| "mmsf" | multi-model seasonal forecasts fields from the ECMWF model only. | ? |
./download_grib.sh 2024120400 3 384 1>log.04 2>&1 &
▶
download_grib.sh
1 | |
▶
download_ifs_herbie.py
1 | |
▶
symlink_herbie.sh
1 | |

▶
H.search_help
1 | |
Problem
- The grib files from
ecmwf.iniand fromawsare different. It will make different/debug on theungribstep andinit_atmosphere_modelstep.- Not all different.
It is because,
- ECMWF
Near-Realtime IFS Atmospheric Forecasts | Earth Engine Data Catalog
- 資料集可用性 2024-11-12T12:00:00Z–2025-04-16T12:00:00Z
- 自 2024/11/12 推出Cycle 49r1 以來,Earth Engine
就會提供產品;早期產品則不包含在內。
- old one: 145 items
- new one: 160 items

GFS
1 | |
GFS wave data
1 | |
GEFS
1 | |
NWP | Herbie | Download NWP model output (grib2) | MPAS | WRF
https://waipangsze.github.io/2025/04/10/NWP-Herbie-Download-NWP-model-output-MPAS-WRF/