Herbie: Retrieve NWP Model 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 the GRIB2 format can be read with xarray+cfgrib.

Some models Herbie can retrieve data from include:

  • High-Resolution Rapid Refresh (HRRR)

  • Rapid Refresh (RAP)

  • Global Forecast System (GFS)

  • National Blend of Models (NBM)

  • Rapid Refresh Forecast System - Prototype (RRFS)

  • ECMWF open data forecast products (ECMWF)

  • Real-Time/Un-Restricted Mesoscale Analysis (RTMA/URMA)

  • and others.

Installation#

The easiest way to install Herbie and its dependencies is with Conda.

conda install -c conda-forge herbie-data

More details at 🐍 Installation.

Capabilities#

Herbie helps you discover and use data from many different numerical weather models and sources.

_images/mermaid-capabilities.png

Specifically, Herbie can

  • Locate GRIB2 files in the cloud.

  • Explore the content of those files.

  • Download data to your computer.

  • Download subsets of the data.

  • Read the data with xarray.

  • Accessors to help with plotting.

  • Accessors for extracting data.

Using Herbie looks something like this…

from herbie import Herbie

# Create 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 the GRIB2 file contents
H.inventory()

# Download the full GRIB2 file
H.download()

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

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

More details at πŸ‘¨πŸ»β€πŸ’» Tutorials in the User Guide.