Skip to main content

Herbie: Retrieve NWP Model Data 🏁

DOI Code style: black

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.

Herbie helps you discover, download, and read data from:

📓 Herbie Documentation

Installation

The easiest way to instal Herbie and its dependencies is within a Conda environment. I provided an environment.yml file that you may use or modify.

# Download environment file
wget https://github.com/blaylockbk/Herbie/raw/main/environment.yml

# Create the environment
conda env create -f environment.yml

# Activate the environment
conda activate herbie

Alternatively, Herbie is published on PyPI and you can install it with pip, but it requires some dependencies that you will have to install yourself:

  • Python 3.8, 3.9, or 3.10 (recommended)
  • cURL
  • Cartopy, which requires GEOS and Proj.
  • cfgrib, which requires eccodes.
  • Optional: wgrib2
  • Optional: Carpenter Workshop

When those are installed within your environment, then you can install Herbie with pip.

# Latest published version
pip install herbie-data

# ~~ or ~~

# Most recent changes
pip install git+https://github.com/blaylockbk/Herbie.git

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.
  • Plot data with Cartopy (very early development).
  graph TD;
      d1[(HRRR)] -.-> H
      d2[(RAP)] -.-> H
      d3[(GFS)] -.-> H
      d33[(GEFS)] -.-> H
      d4[(ECMWF)] -.-> H
      d5[(NBM)] -.-> H
      d6[(RRFS)] -.-> H
      H((Herbie))
      H --- .download
      H --- .xarray
      H --- .read_idx

      style H fill:#d8c89d,stroke:#0c3576,stroke-width:4px,color:#000000
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
)

# Download the full GRIB2 file
H.download()

# Download a subset, like all fields at 500 mb
H.download(":500 mb")

# Read subset with xarray, like 2-m temperature.
H.xarray("TMP:2 m")

Data Sources

Herbie downloads model data from the following sources, but can be extended to include others:

  • NOMADS
  • Big Data Program Partners (AWS, Google, Azure)
  • ECMWF Open Data Azure storage
  • University of Utah CHPC Pando archive
  • Local file system

History

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

In the later half of 2020, the HRRR dataset from 2014 to present was made available through the NOAA Big Data Program. Herbie organizes and expands my original download scripts into a more coherent package with the extended ability to download data for other models from many different archive sources.

I originally released this package under the name “HRRR-B” because it only worked with the HRRR dataset; the “B” was for my first-name initial. Since then, I have added the ability to download RAP, GFS, ECMWF, GEFS, RRFS, and others with potentially more models in the future. Thus, this package was renamed Herbie, named after one of my favorite childhood movie characters.

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.


Thanks for using Herbie, and happy racing!

🏁 Brian


👨🏻‍💻 Contributing Guidelines
💬 GitHub Discussions
🚑 GitHub Issues
🌐 Personal Webpage
🌐 University of Utah HRRR archive

Cite Herbie:

Blaylock, B. K., 2022: Herbie: Retrieve Numerical Weather Prediction
Model Data [Computer software]. https://doi.org/10.5281/zenodo.6526110.

P.S. If you like Herbie, check out my other repos:

  • 🌎 GOES-2-go: A python package to download GOES-East/West data and make RGB composites.
  • 🌡 SynopticPy: A python package to download mesonet data from the Synoptic API.
  • 🔨 Carpenter Workshop: A python package with various tools I made that are useful (like easy funxtions to build Cartopy maps).
  • 💬 Bubble Print: A silly little python package that gives your print statement's personality.
  • 📜 MET Syntax: An extension for Visual Studio Code that gives syntax highlighting for Model Evaluation Tools (MET) configuration files.

Note: Alternative Download Tools
As an alternative to Herbie, you can use rclone to download files from AWS or GCP. I love rclone. Here is a short rclone tutorial

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-2022.9.0.post1.tar.gz (52.6 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-2022.9.0.post1-py3-none-any.whl (49.3 kB view details)

Uploaded Python 3

File details

Details for the file herbie-data-2022.9.0.post1.tar.gz.

File metadata

  • Download URL: herbie-data-2022.9.0.post1.tar.gz
  • Upload date:
  • Size: 52.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.10.4

File hashes

Hashes for herbie-data-2022.9.0.post1.tar.gz
Algorithm Hash digest
SHA256 ad6a1671ca68a31e9decd29a76e566474287fb47f1fcb406b46065edbadc9bee
MD5 1a9f3e4a979bd42fe6f7d067270ca2b6
BLAKE2b-256 d966b26aa602c7c9c7f482a08ee8258457323f63e84e233c75d9656002781d2e

See more details on using hashes here.

File details

Details for the file herbie_data-2022.9.0.post1-py3-none-any.whl.

File metadata

  • Download URL: herbie_data-2022.9.0.post1-py3-none-any.whl
  • Upload date:
  • Size: 49.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.10.4

File hashes

Hashes for herbie_data-2022.9.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 a21391d9ef22fa64312bf0b75b622887838e7ba54e3f1b91a6d356939a66d2dd
MD5 56ad278defe8db98c301a5679ffd5cab
BLAKE2b-256 bd7513ba6b33a7efa1fff9f313af63319dfa0c9d564d20998d54987571ec9e14

See more details on using hashes here.

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

2025.11.1

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

This release

2022.9.0.post1 This release

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