Skip to main content

Herbie Logo

Herbie: Download Weather Forecast Model Data in Python 🏁

Access HRRR, GFS, RAP, GEFS, IFS and more!

PyPI - Python Version PyPI Conda Version DOI

Tests (Conda) Tests (Python) Documentation Status Ruff

Conda Downloads PyPI - Downloads PyPI - License

📚 Documentation | 💬 Discussions | ❔ Get Help


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)

  • HRRR - High Resolution Rapid Refresh (3km resolution)
  • HRRR-Alaska - Alaska version
  • GFS - Global Forecast System
  • GEFS - Global Ensemble Forecast System
  • 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
  • CFS - Climate Forecast System

Much of this data is made available through the NOAA Open Data Dissemination (NODD) program.

Other Models

  • ECMWF - ECMWF's IFS and AIFS Open Data Forecasts
  • 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:


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.

Blaylock B., J. Horel and S. Liston, 2017: Cloud Archiving and Data Mining of High Resolution Rapid Refresh Model Output. Computers and Geosciences. 109, 43-50. https://doi.org/10.1016/j.cageo.2017.08.005.

Herbie was then developed to access HRRR data from that archive and was first used on the Open Science Grid.

Blaylock, B. K., J. D. Horel, and C. Galli, 2018: High-Resolution Rapid Refresh Model Data Analytics Derived on the Open Science Grid to Assist Wildland Fire Weather Assessment. J. Atmos. Oceanic Technol., 35, 2213–2227, https://doi.org/10.1175/JTECH-D-18-0073.1.

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


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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

herbie_data-2025.11.1.tar.gz (9.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

herbie_data-2025.11.1-py3-none-any.whl (116.8 kB view details)

Uploaded Python 3

File details

Details for the file herbie_data-2025.11.1.tar.gz.

File metadata

  • Download URL: herbie_data-2025.11.1.tar.gz
  • Upload date:
  • Size: 9.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for herbie_data-2025.11.1.tar.gz
Algorithm Hash digest
SHA256 2781e122992df084ce09f0da40e054b5d1690118d99002eab25f9233a82680e3
MD5 ecc44a7d7da6924bed2babe004befe3d
BLAKE2b-256 c814a1fb1086bdceaaaab4d6f4ce24cce1edbe51d83446082f0e53d621f53b74

See more details on using hashes here.

Provenance

The following attestation bundles were made for herbie_data-2025.11.1.tar.gz:

Publisher: release_to_pypi.yml on blaylockbk/Herbie

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file herbie_data-2025.11.1-py3-none-any.whl.

File metadata

File hashes

Hashes for herbie_data-2025.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e69f82f14f6d3f5b1e3b63fbbce6adaeb2f98b19b5d6cdcea00024c1684a47c7
MD5 2b5e6ccfb63fc80fa65a3add2a3be1ad
BLAKE2b-256 21138352e9159b3c8ef293180019cc918d5b5bbaee064c51b73028eb6a22c650

See more details on using hashes here.

Provenance

The following attestation bundles were made for herbie_data-2025.11.1-py3-none-any.whl:

Publisher: release_to_pypi.yml on blaylockbk/Herbie

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

2026.3.0

2 files

2026.1.1

2 files

2026.1.0

2 files

2025.12.0

2 files

2025.11.3

2 files

2025.11.2

2 files

This release

2025.11.1 This release

2 files

2025.11.0

2 files

2025.10.1

2 files

2025.10.0

2 files

2025.7.0

2 files

2025.6.0

2 files

2025.5.0

2 files

2025.3.1

2 files

2025.3.0

2 files

2025.2.1

2 files

2025.2.0

2 files

2024.8.0

2 files

2024.7.1

2 files

2024.7.0

2 files

2024.5.0

2 files

2024.3.1

2 files

2024.3.0

2 files

2023.12.4

2 files

2023.12.3

2 files

2023.12.2

2 files

2023.12.1

2 files

2023.3.0

2 files

2022.9.0.post1

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page