herbie-data
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.
Science Score: 77.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 12 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
✓Committers with academic emails
5 of 30 committers (16.7%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.3%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
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.
Basic Info
- Host: GitHub
- Owner: blaylockbk
- License: mit
- Language: Python
- Default Branch: main
- Homepage: https://herbie.readthedocs.io/
- Size: 163 MB
Statistics
- Stars: 634
- Watchers: 16
- Forks: 105
- Open Issues: 87
- Releases: 27
Topics
Metadata Files
README.md
<div align="center"

Herbie: Retrieve NWP Model Data 🏁
📘 Documentation | 💬 Discussions | ❔ Ask For Help
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.
Much of this data is made available through the NOAA Open Data Dissemination (NODD) program which has made weather data more accessible than ever before.
Installation
conda or mamba
The easiest way to instal Herbie and its dependencies is with Conda from conda-forge.
bash
conda install -c conda-forge herbie-data
You may also create the provided Conda environment, environment.yml.
```bash
Download environment file
wget https://github.com/blaylockbk/Herbie/raw/main/environment.yml
Modify that file if you wish.
Create the environment
conda env create -f environment.yml
Activate the environment
conda activate herbie ```
pip
Alternatively, Herbie is published on PyPI and you can install it with pip.
```bash
Latest published version
pip install herbie-data
~~ or ~~
Most recent changes
pip install git+https://github.com/blaylockbk/Herbie.git
Dependecies for extra features
pip install herbie-data[extra] ```
Keep in mind that Herbie does require the following dependencies that you will have to install yourself if you don't have them in your PATH:
uv
You can add Herbie to your project with the uv command:
bash
uv add herbie-data
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).
- Support for custom model templates with Herbie plugins.
```mermaid 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
```
Herbie Python
Herbie's Python API is used like this:
```python 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 )
Look at file contents
H.inventory()
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") ```
Herbie CLI
Herbie also has a command line interface (CLI) so you can use Herbie right in your terminal.
```bash
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 downloads model data from the following sources, but can be extended to include others:
- 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
Community
Having trouble using Herbie or have a question? ❔ GitHub Discussions/Ask For Help
Just want to talk about Herbie or have an idea? 💬 GitHub Discussions
See something that might be wrong? 🚑 GitHub Issues
Want to contribute? Great! I'd love your help.
- "Watch" this repo's discussions and issues.
- Participate in 💬 GitHub Discussions and answer questions.
- Share how you use Herbie in 🙌 GitHub Discussions/Show and tell
- Open an issue or file a pull request to make Herbie even better!
- Contribute to documentation.
- Test latest releases and report issues.
- Read the 👨🏻💻 Disclaimer & Contributing Guide
How to Cite and Acknowledge
If Herbie played an important role in your work, please tell me about it! Also, consider including a citation or acknowledgement in your article or product.
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 (Version 20xx.x.x) (https://doi.org/10.5281/zenodo.4567540)
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.
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 the later half of 2020, the HRRR dataset from 2014 to present was made available through the NODD Open Data Dissemination Program (formerly NOAA's Big Data Program). The latest version of 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, and it will continues to evolve.
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.
Thanks for using Herbie, and happy racing!
🏁 Brian
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
| Visualize Structure | Star History | PyPI Download Statistics
Owner
- Name: Brian Blaylock
- Login: blaylockbk
- Kind: user
- Location: Monterey, CA
- Website: http://home.chpc.utah.edu/~u0553130/Brian_Blaylock/home.html
- Twitter: blaylockbk
- Repositories: 45
- Profile: https://github.com/blaylockbk
Meteorologist
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
GitHub Events
Total
- Create event: 19
- Release event: 5
- Issues event: 50
- Watch event: 131
- Delete event: 4
- Issue comment event: 117
- Push event: 120
- Pull request review comment event: 5
- Pull request review event: 8
- Pull request event: 47
- Fork event: 28
Last Year
- Create event: 19
- Release event: 5
- Issues event: 50
- Watch event: 131
- Delete event: 4
- Issue comment event: 117
- Push event: 120
- Pull request review comment event: 5
- Pull request review event: 8
- Pull request event: 47
- Fork event: 28
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Brian Blaylock | b****k@g****m | 1,124 |
| Coat | a****t@a****r | 34 |
| Andreas Motl | a****l@p****g | 18 |
| karlwx | k****2@p****u | 15 |
| Brian Blaylock | b****r@n****l | 13 |
| Rafael Guedes | r****s@o****e | 12 |
| GabrielKS | 2****S | 4 |
| Haim Daniel | h****l@g****m | 4 |
| Nick Young | n****g@a****z | 3 |
| Tamas Weisz | w****a@g****m | 3 |
| Will Hobbs | 4****s | 3 |
| Raul Viera-Mercado | v****1@l****v | 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 |
| timothydonohue | t****m@a****i | 1 |
| joshuaeh | j****2@g****m | 1 |
| cyril | 3****s | 1 |
| Xuesong Wang | x****g@w****u | 1 |
| The Gitter Badger | b****r@g****m | 1 |
| Taylor Mandelbaum | m****r@g****m | 1 |
| Steve Nesbitt | s****t@i****u | 1 |
| Stephen Campbell | s****0@h****m | 1 |
| Hao Lyu | 2****u | 1 |
| Emmanuel Ferdman | e****n@g****m | 1 |
| Brian | = | 1 |
| David Landry | d****y@i****r | 1 |
| Alexander Rey | m****l@a****a | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 198
- Total pull requests: 137
- Average time to close issues: 2 months
- Average time to close pull requests: 20 days
- Total issue authors: 75
- Total pull request authors: 28
- Average comments per issue: 2.01
- Average comments per pull request: 0.98
- Merged pull requests: 113
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 39
- Pull requests: 54
- Average time to close issues: 9 days
- Average time to close pull requests: 8 days
- Issue authors: 26
- Pull request authors: 14
- Average comments per issue: 1.56
- Average comments per pull request: 0.74
- Merged pull requests: 38
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- blaylockbk (88)
- williamhobbs (10)
- jp2nyy (6)
- karlwx (5)
- amotl (4)
- byphilipp (3)
- dchassin (3)
- btickell (3)
- rafa-guedes (2)
- jahanbani (2)
- isodrosotherm (2)
- bryanguarente (2)
- cole-p (2)
- moptis (2)
- SaundersJE97 (2)
Pull Request Authors
- blaylockbk (96)
- karlwx (14)
- alcoat (9)
- amotl (6)
- dchassin (4)
- williamhobbs (4)
- neon-ninja (4)
- haim0n (3)
- vieramercado (3)
- cyrilbois (2)
- zamlty (2)
- fleegs79 (2)
- emmanuel-ferdman (2)
- timdonohue-aerology (2)
- sjcrz (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 3
-
Total downloads:
- pypi 12,144 last-month
-
Total dependent packages: 3
(may contain duplicates) -
Total dependent repositories: 3
(may contain duplicates) - Total versions: 31
- 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/
- License: MIT License Copyright (c) 2019-2024 Brian K. Blaylock Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
Latest release: 2025.7.0
published 8 months ago
Rankings
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.
- Documentation: https://blaylockbk.github.io/Herbie/_build/html/
- License: MIT
-
Latest release: 0.0.6
published over 4 years ago
Rankings
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
- License: MIT
-
Latest release: 2022.9.0.post1
published over 3 years ago
Rankings
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 *
- cartopy *
- cfgrib *
- metpy *
- numpy *
- pandas *
- pygrib *
- toml *
- xarray *
- actions/checkout v2 composite
- psf/black stable composite
- actions/checkout v3 composite
- actions/setup-python v3 composite
- 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