Herbie
A Python package that downloads recent and archived numerical weather prediction model output from different cloud archive sources.
https://github.com/blaylockbk/Herbie
Category: Atmosphere
Sub Category: Meteorological Observation and Forecast
Keywords
big-data-program cfgrib download ecmwf-data gfs grib grib2 hrrr noaa-data nomads numerical-weather-prediction open-data python rap xarray
Keywords from Contributors
weather atmospheric-science climate mesonet mesowest synoptic-api meteorology oceanography
Last synced: about 4 hours ago
JSON representation
Repository metadata
Download numerical weather prediction datasets (HRRR, RAP, GFS, IFS, etc.) from NOMADS, NODD partners (Amazon, Google, Microsoft), ECMWF open data, and the University of Utah Pando Archive System.
- Host: GitHub
- URL: https://github.com/blaylockbk/Herbie
- Owner: blaylockbk
- License: mit
- Created: 2020-06-26T17:43:11.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2026-06-07T18:15:18.000Z (2 months ago)
- Last Synced: 2026-08-12T14:31:50.055Z (8 days ago)
- Topics: big-data-program, cfgrib, download, ecmwf-data, gfs, grib, grib2, hrrr, noaa-data, nomads, numerical-weather-prediction, open-data, python, rap, xarray
- Language: Python
- Homepage: https://herbie.readthedocs.io/
- Size: 177 MB
- Stars: 780
- Watchers: 19
- Forks: 138
- Open Issues: 103
- Releases: 37
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Citation: CITATION.cff
README.md

Herbie: Download Weather Forecast Model Data in Python π
Access HRRR, GFS, RAP, GEFS, IFS and more!
π Documentation | π¬ Discussions | β Get Help
See also the DeepWiki generated docs.
What is Herbie?
Herbie is a Python package that makes downloading and working with numerical weather prediction (NWP) model data simple and fast. Whether you're a researcher, meteorologist, data scientist, or weather enthusiast, Herbie provides easy access to forecast data from NOAA, ECMWF, and other sources.
Key Features:
- π Access 15+ weather models - HRRR, GFS, RAP, GEFS, ECMWF, and more
- β‘ Smart downloads - Get full GRIB2 files or subset by variable to save time and bandwidth
- π Multiple data sources - Automatically searches different archive (AWS, Google Cloud, NOMADS, Azure)
- π Built-in data reading - Load data directly into xarray for analysis
- π οΈ CLI and Python API - Use from command line or in your Python scripts
- πΊοΈ Visualization aids - Includes Cartopy integration for mapping
Keywords: weather data download, GRIB2, python, numerical weather prediction, meteorological data, weather forecast API, xarray, atmospheric data, research, academia, data science, machine learning,visualization
Quick Start
Installation
With conda or mamba:
conda install -c conda-forge herbie-data
mamba install -c conda-forge herbie-data
With pip:
pip install herbie-data
With uv:
uv add herbie-data
Note: optional features require manual installation of wgrib2
Simple Example
from herbie import Herbie
# Create a Herbie object for HRRR model data
H = Herbie(
'2021-01-01 12:00', # Date and time
model='hrrr', # Model name
product='sfc', # Product type
fxx=6 # Forecast hour
)
# Show file contents
H.inventory()
# Download and read 2-meter temperature
temperature = H.xarray("TMP:2 m")
Command Line Interface
# Download HRRR surface forecast
herbie download -m hrrr --product sfc -d "2023-03-15 12:00" -f 0
# Get specific variable (temperature at 850 mb)
herbie download -m gfs --product 0p25 -d 2023-03-15 -f 24 --subset ":TMP:850 mb:"
# View available variables
herbie inventory -m rap -d 2023031512 -f 0
Supported Weather Models
Herbie provides access to a wide range of numerical weather prediction models:
US Models (NOAA)
Regional
- HRRR - High Resolution Rapid Refresh (3km resolution)
- HRRR-Alaska - Alaska version
- RAP - Rapid Refresh
- NAM - North American Mesoscale Model
- NBM - National Blend of Models
- RTMA/URMA - Real-Time/Un-Restricted Mesoscale Analysis
- RRFS - Rapid Refresh Forecast System (prototype)
- HAFS - Hurricane Analysis and Forecast System
Global
- GFS - Global Forecast System
- GEFS - Global Ensemble Forecast System
- AIGFS - AI Emulator of Global Forecast System
- AIGEFS - AI Emulator of Global Ensemble Forecast System
- HGEFS - Hybrid Global Ensemble Forecast System
- CFS - Climate Forecast System
Much of this data is made available through the NOAA Open Data Dissemination (NODD) program.
Other Models
- ECMWF - IFS - ECMWF's Integrated Forecast System
- ECMWF - AIFS - ECMWF's Artificial Intelligence Forecast System
- HRDPS - Canada's High Resolution Deterministic Prediction System (Canada)
- NAVGEM - U.S. Navy Global Environmental Model
View all models in the gallery β
Core Capabilities
Features:
- π Search model output from different data sources
- β¬οΈ Download full or subset GRIB2 files
- π Read data with xarray and index files with Pandas
- πΊοΈ Built-in Cartopy aids for mapping
- π― Extract data at specific points
- π Extensible with custom model templates
graph TD;
d1[(HRRR)] -..-> H
d2[(RAP)] -.-> H
d3[(GFS)] -..-> H
d33[(GEFS)] -.-> H
d4[(IFS)] -..-> H
d44[(AIFS)] -..-> H
d5[(NBM)] -.-> H
d6[(RRFS)] -..-> H
d7[(RTMA)] -.-> H
d8[(URMA)] -..-> H
H((Herbie))
H --- .inventory
H --- .download
H --- .xarray
style H fill:#d8c89d,stroke:#0c3576,stroke-width:4px,color:#000000
Python API
Herbie's Python API is used like this:
from herbie import Herbie
# Herbie object for the HRRR model 6-hr surface forecast product
H = Herbie(
'2021-01-01 12:00',
model='hrrr',
product='sfc',
fxx=6
)
# View all variables in a file
H.inventory()
# Download options
H.download() # Download full GRIB2 file
H.download(":500 mb") # Download subset (all 500 mb fields)
H.download(":TMP:2 m") # Download specific variable
# Read data into xarray
ds = H.xarray("TMP:2 m") # 2-meter temperature
ds = H.xarray(":500 mb") # All 500 mb level data
Command Line Interface
Herbie also has a command line interface (CLI) so you can use Herbie right in your terminal.
# Get the URL for a HRRR surface file from today at 12Z
herbie data -m hrrr --product sfc -d "2023-03-15 12:00" -f 0
# Download GFS 0.25Β° forecast hour 24 temperature at 850mb
herbie download -m gfs --product 0p25 -d 2023-03-15T00:00 -f 24 --subset ":TMP:850 mb:"
# View all available variables in a RAP model run
herbie inventory -m rap -d 2023031512 -f 0
# Download multiple forecast hours for a date range
herbie download -m hrrr -d 2023-03-15T00:00 2023-03-15T06:00 -f 1 3 6 --subset ":UGRD:10 m:"
# Specify custom source priority (check only Google)
herbie data -m hrrr -d 2023-03-15 -f 0 -p google
Data Sources
Herbie automatically searches for data at multiple data sources:
- NOMADS
- NOAA Open Data Dissemination Program (NODD) partners (i.e., AWS, Google, Azure).
- ECMWF Open Data Forecasts
- University of Utah CHPC Pando archive
- Local file system
Documentation & Help
π Full Documentation - Comprehensive guides and API reference
πΌοΈ Example Gallery - Browse code examples for each model
π¬ GitHub Discussions - Ask questions and share ideas
π Report Issues - Found a bug? Let us know
Citation & Acknowledgment
If Herbie played an important role in your work, please tell us about it!
Suggested Citation
Blaylock, B. K. (YEAR). Herbie: Retrieve Numerical Weather Prediction Model Data (Version 20xx.x.x) [Computer software]. https://doi.org/10.5281/zenodo.4567540
Suggested Acknowledgment
A portion of this work used code generously provided by Brian Blaylock's Herbie python package (https://doi.org/10.5281/zenodo.4567540)
Contributing
We welcome contributions! Here's how you can help:
- β Star this repository
- π Watch for new discussions and issues
- π¬ Participate in GitHub Discussions
- π Share your work in Show and Tell
- π Report bugs or suggest features via Issues
- π Improve documentation
- π§ͺ Test latest releases
- π» Submit pull requests
Read the Contributing Guide for more details.
Project History and Background
During my PhD at the University of Utah, I created, at the time, the only publicly-accessible archive of HRRR data. Over 1,000 research scientists and professionals used that archive.
Herbie was then developed to access HRRR data from that archive and was first used on the Open Science Grid.
In 2020, the HRRR dataset was made available through the NOAA Open Data Dissemination Program. Herbie evolved from my original download scripts into a comprehensive package supporting multiple models and data sources.
Name Origin: I originally released this package under the name βHRRR-Bβ because it only worked with the HRRR dataset; the βBβ was for Brian. Since then, I have added the ability to download many more models including RAP, GFS, ECMWF, GEFS, and RRFS with the potential to add more models in the future. Thus, this package was renamed Herbie, named after one of my favorite childhood movies.
The University of Utah MesoWest group now manages a HRRR archive in Zarr format. Maybe someday, Herbie will be able to take advantage of that archive.
About the Author
Thanks for using Herbie, and happy racing! π
Brian Blaylock
π Personal Webpage
Other Projects by Brian
- π GOES-2-go - Download GOES satellite data and create RGB composites
- π‘ SynopticPy - Access mesonet data from the Synoptic API
- π¨ Carpenter Workshop - Useful tools for meteorological data analysis
- π¬ Bubble Print - Add personality to your Python print statements
- πΉ Pandas Rose - Easier wind rose plots
- π MET Syntax - VS Code syntax highlighting for Model Evaluation Tools
Alternative Tools
rclone: As an alternative to Herbie, you can use rclone to download files from remote archives. I love rclone. Here's a short rclone tutorial.
Project Statistics
| Visualize Structure | Star History | PyPI Statistics |
|---|
Citation (CITATION.cff)
cff-version: 1.2.0
abstract: Herbie is a python package that downloads recent and archived numerical weather prediction (NWP) model output from different cloud archive sources. Its most popular capability is to download HRRR model data. NWP data in GRIB2 format can be read into an xarray dataframe using the cfgrib package. Much of this data is made available through the NOAA Open Data Dissemination (NODD) Program (formerly the Big Data Program) which has made weather data more accessible than ever before.
message: "If you use this software, please cite it as below."
authors:
- family-names: Blaylock
given-names: Brian K.
email: blaylockbk@gmail.com
orcid: "https://orcid.org/0000-0003-2133-9313"
title: "Herbie: Retrieve Numerical Weather Prediction Model Data"
version: 2024.5.0
date-released: "2023-03-02"
url: "https://herbie.readthedocs.io/"
repository-code: "https://github.com/blaylockbk/Herbie"
type: software
keywords:
- meteorology
- weather
- numerical weather prediction
- forecast
- atmosphere
license: "MIT"
identifiers:
- type: doi
value: 10.5281/zenodo.4567540
Owner metadata
- Name: Brian Blaylock
- Login: blaylockbk
- Email:
- Kind: user
- Description: Meteorologist
- Website: http://home.chpc.utah.edu/~u0553130/Brian_Blaylock/home.html
- Location: Monterey, CA
- Twitter: blaylockbk
- Company:
- Icon url: https://avatars.githubusercontent.com/u/6249613?u=83e593317387e0cfacc6d86df40f6d2ee2f13676&v=4
- Repositories: 45
- Last ynced at: 2024-03-15T18:11:46.924Z
- Profile URL: https://github.com/blaylockbk
GitHub Events
Total
- Create event: 25
- Delete event: 4
- Discussion event: 5
- Fork event: 35
- Issue comment event: 148
- Issues event: 73
- Pull request event: 62
- Pull request review comment event: 5
- Pull request review event: 12
- Push event: 189
- Release event: 7
- Watch event: 165
Last Year
- Create event: 6
- Discussion event: 5
- Fork event: 7
- Issue comment event: 31
- Issues event: 23
- Pull request event: 15
- Pull request review event: 4
- Push event: 69
- Release event: 2
- Watch event: 37
Committers metadata
Last synced: 1 day ago
Total Commits: 1,405
Total Committers: 38
Avg Commits per committer: 36.974
Development Distribution Score (DDS): 0.14
Commits in past year: 130
Committers in past year: 12
Avg Commits per committer in past year: 10.833
Development Distribution Score (DDS) in past year: 0.354
| Name | Commits | |
|---|---|---|
| Brian Blaylock | b****k@g****m | 1208 |
| Coat | a****t@a****r | 41 |
| karlwx | k****2@p****u | 20 |
| Andreas Motl | a****l@p****g | 18 |
| Alexander Rey | m****l@a****a | 16 |
| Brian Blaylock | b****r@n****l | 13 |
| Rafael Guedes | r****s@o****e | 12 |
| Connor Dibble | c****e@s****m | 10 |
| Nikhil Shankar | n****r@u****u | 8 |
| Jacob Badolato | j****9@g****m | 7 |
| Will Hobbs | 4****s | 7 |
| GabrielKS | 2****S | 4 |
| Haim Daniel | h****l@g****m | 4 |
| Raul Viera-Mercado | v****1@l****v | 4 |
| Nick Young | n****g@a****z | 3 |
| Tamas Weisz | w****a@g****m | 3 |
| BANANAPEEL202 | b****5@g****m | 2 |
| David P. Chassin | d****n@m****m | 2 |
| Haim Daniel | h****m@j****m | 2 |
| djgagne@ou.edu | d****e@g****m | 2 |
| fleegs79 | 1****9 | 2 |
| zamlty | 2****y | 1 |
| Brian | = | 1 |
| Christian Versloot | c****t@i****m | 1 |
| David Landry | d****y@i****r | 1 |
| timothydonohue | t****m@a****i | 1 |
| joshuaeh | j****2@g****m | 1 |
| cyril | 3****s | 1 |
| cloneofghosts | t****8@g****m | 1 |
| Xuesong Wang | x****g@w****u | 1 |
| and 8 more... | ||
Committer domains:
- illinois.edu: 1
- gitter.im: 1
- wayne.edu: 1
- aerology.ai: 1
- inria.fr: 1
- infoplaza.com: 1
- jether-energy.com: 1
- me.com: 1
- auckland.ac.nz: 1
- llnl.gov: 1
- umich.edu: 1
- scootscience.com: 1
- oceanum.science: 1
- nrlmry.navy.mil: 1
- alexanderrey.ca: 1
- panodata.org: 1
- psu.edu: 1
- actimar.fr: 1
Issue and Pull Request metadata
Last synced: 1 day ago
Total issues: 222
Total pull requests: 189
Average time to close issues: 2 months
Average time to close pull requests: 22 days
Total issue authors: 86
Total pull request authors: 32
Average comments per issue: 1.68
Average comments per pull request: 0.93
Merged pull request: 151
Bot issues: 0
Bot pull requests: 0
Past year issues: 26
Past year pull requests: 17
Past year average time to close issues: 12 days
Past year average time to close pull requests: 19 days
Past year issue authors: 16
Past year pull request authors: 9
Past year average comments per issue: 1.19
Past year average comments per pull request: 0.76
Past year merged pull request: 8
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- blaylockbk (92)
- williamhobbs (18)
- jp2nyy (7)
- karlwx (5)
- amotl (4)
- byphilipp (3)
- btickell (3)
- rafa-guedes (3)
- dchassin (3)
- jahanbani (2)
- cole-p (2)
- bryanguarente (2)
- isodrosotherm (2)
- SaundersJE97 (2)
- moptis (2)
Top Pull Request Authors
- blaylockbk (99)
- karlwx (15)
- alcoat (13)
- williamhobbs (6)
- amotl (6)
- dchassin (4)
- neon-ninja (4)
- haim0n (3)
- vieramercado (3)
- nshankar (2)
- Davidxswang (2)
- sjcrz (2)
- timdonohue-aerology (2)
- emmanuel-ferdman (2)
- fleegs79 (2)
Top Issue Labels
- help wanted (17)
- enhancement (14)
- documentation (11)
- ECMWF (10)
- π‘ Idea (7)
- bug (7)
- RAP (3)
- GFS (3)
- CFS (2)
- upstream (2)
- good first issue (2)
- π Canada (2)
- π searchString (1)
- π§ͺ CI/CD (1)
- FastHerbie (1)
- RRFS (1)
- wontfix (1)
- GEFS (1)
- π inventory (1)
- accessors (1)
- install (1)
- needs more info (1)
- windows (1)
Top Pull Request Labels
- enhancement (8)
- ECMWF (5)
- accessors (3)
- install (2)
- CLI (2)
- help wanted (2)
- RRFS (2)
- π§ͺ CI/CD (1)
- HAFS (1)
- plugin (1)
- FastHerbie (1)
- RTMA (1)
Package metadata
- Total packages: 3
-
Total downloads:
- pypi: 178,891 last-month
- conda: 64,099 total
- Total dependent packages: 3 (may contain duplicates)
- Total dependent repositories: 3 (may contain duplicates)
- Total versions: 41
- Total maintainers: 1
pypi.org: herbie-data
Download numerical weather prediction GRIB2 model data.
- Homepage: https://github.com/blaylockbk/Herbie
- Documentation: https://herbie.readthedocs.io/
- Licenses: MIT License
- Latest release: 2026.3.0 (published 6 months ago)
- Last Synced: 2026-08-19T17:03:10.168Z (1 day ago)
- Versions: 34
- Dependent Packages: 3
- Dependent Repositories: 1
- Downloads: 178,866 Last month
-
Rankings:
- Stargazers count: 3.683%
- Forks count: 5.604%
- Downloads: 6.649%
- Dependent packages count: 7.31%
- Average: 9.067%
- Dependent repos count: 22.088%
- Maintainers (1)
pypi.org: hrrrb
Download model data (HRRR, RAP, GFS, NBM, etc.) from NOMADS, NOAA's Big Data Program partners (Amazon, Google, Microsoft), and the University of Utah Pando Archive System.
- Homepage:
- Documentation: https://blaylockbk.github.io/Herbie/_build/html/
- Licenses: MIT
- Latest release: 0.0.6 (published almost 5 years ago)
- Last Synced: 2026-08-19T17:03:08.233Z (1 day ago)
- Versions: 6
- Dependent Packages: 0
- Dependent Repositories: 1
- Downloads: 25 Last month
-
Rankings:
- Stargazers count: 3.683%
- Forks count: 5.604%
- Dependent packages count: 7.31%
- Average: 17.182%
- Dependent repos count: 22.088%
- Downloads: 47.224%
- Maintainers (1)
conda-forge.org: herbie-data
Herbie is a python package that downloads recent and archived numerical weather prediction (NWP) model output from different cloud archive sources. Its most popular capability is to download HRRR model data. NWP data in GRIB2 format can be read with xarray+cfgrib. Much of this data is made available through the NOAA Open Data Dissemination (NODD) Program (formerly the Big Data Program) which has made weather data more accessible than ever before.
- Homepage: https://github.com/blaylockbk/Herbie
- Licenses: MIT
- Latest release: 2022.9.0.post1 (published almost 4 years ago)
- Last Synced: 2026-04-01T13:27:53.003Z (5 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 1
- Downloads: 64,099 Total
-
Rankings:
- Dependent repos count: 24.103%
- Stargazers count: 24.852%
- Forks count: 26.733%
- Average: 31.807%
- Dependent packages count: 51.54%
Dependencies
- cfgrib >=0.9.9.1
- metpy >=1.3.0
- numpy >=1.22.3
- pandas >=1.4.1
- requests >=2.27.1
- toml >=0.10.2
- xarray >=2022.3.0
- cartopy *
- cfgrib *
- matplotlib *
- metpy *
- numpy *
- pandas *
- pygrib *
- toml *
- xarray *
- actions/cache v3 composite
- actions/checkout v3 composite
- conda-incubator/setup-miniconda v2 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- pytest <8 test
- actions/checkout v4 composite
- actions/setup-python v5 composite
- pypa/gh-action-pypi-publish release/v1 composite
- beautifulsoup4
- cartopy
- cfgrib
- eccodes
- geos
- matplotlib
- metpy
- numpy
- pandas
- proj
- pyproj
- pytest
- pytest-cov
- python
- requests
- scikit-learn
- toml
- xarray
- cartopy >=0.22
- cfgrib >=0.9.10.4
- curl
- dask
- eccodes
- geos
- herbie-data
- jupyter
- jupyterlab
- matplotlib >=3.5.3
- metpy
- netcdf4
- numpy >=1.25
- pandas >=2.0
- pip
- pygrib >=2.1.4
- pylint
- pyproj >=3.6
- python >=3.11
- rclone
- requests >=2.31
- s3fs
- scikit-learn
- toml
- xarray >=2023.7
- zarr
Score: 22.821715736897808