Herbie is a python package that downloads recent and archived numerical weather prediction (NWP) model output from different cloud archive sources. NWP data in GRIB2 format can be read with xarray+cfgrib. Much of this data is made available through the NOAA Big Data Program which has made weather data more accessible than ever before.
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) ✨ new in Herbie 0.0.10
- ECMWF Open Data Forecast Products ✨ new in Herbie 0.0.8
- National Blend of Models (NBM)
- Rapid Refresh Forecast System - Prototype (RRFS)
📓 Herbie Documentation
Install
Herbie requires cURL and Python 3.8+ with requests, numpy, pandas, xarray, and cfgrib. Optional packages are matplotlib, cartopy, and Carpenter Workshop.
pip install herbie-data
or
pip install git+https://github.com/blaylockbk/Herbie.git
You may also create the provided conda environment.
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
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.
✒ I wrote a paper about archiving HRRR data in the cloud
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 dealt 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 |
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.
Alternative Download Tools
As an alternative to Herbie, you can use rclone to download files from AWS or GCP. I quite like 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file herbie-data-0.0.10.tar.gz.
File metadata
- Download URL: herbie-data-0.0.10.tar.gz
- Upload date:
- Size: 41.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b587b940db0c3dfa1af74950ac7f8b2eb45e44aac50a9d771408f6690ff40b9
|
|
| MD5 |
ab22875e823adea2aaecf72910bfaccc
|
|
| BLAKE2b-256 |
e89f4bfd4091f24042a934bfc8ae081c7a232aefa3d51c91c13098f7d9c6fa90
|
File details
Details for the file herbie_data-0.0.10-py3-none-any.whl.
File metadata
- Download URL: herbie_data-0.0.10-py3-none-any.whl
- Upload date:
- Size: 45.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45dc56e975bbc37a4a759e940e217b7523a648dd404296ff07a3d1f1d61b9d0e
|
|
| MD5 |
18753b5cbe414326db5be27ae183ed63
|
|
| BLAKE2b-256 |
1353fc489e912b857e5b1b27c5bcd63b5541f4797cd7ea562dd26d26b7e4b5dc
|