All Projects → blaylockbk → Herbie

blaylockbk / Herbie

Licence: MIT License
Python for downloading model data (HRRR, RAP, GFS, NBM, etc.) from NOMADS, NOAA's Big Data Program partners (Amazon, Google, Microsoft), ECMWF open data, and the University of Utah Pando Archive System.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Herbie

goes2go
Download and process GOES-16 and GOES-17 data from NOAA's archive on AWS using Python.
Stars: ✭ 77 (-16.3%)
Mutual labels:  download, xarray, big-data-program
grib
Golang GRIB2 parser
Stars: ✭ 41 (-55.43%)
Mutual labels:  grib, grib2
grib-rs
GRIB format parser for Rust
Stars: ✭ 23 (-75%)
Mutual labels:  grib, grib2
gcpy
Python toolkit for GEOS-Chem.
Stars: ✭ 34 (-63.04%)
Mutual labels:  xarray
image-downloader
A Nodejs module for downloading image to disk from a given URL
Stars: ✭ 61 (-33.7%)
Mutual labels:  download
Retrofit2Rxjava2Download
这是用Retrofit2和Rxjava2搭配封装的下载文件。
Stars: ✭ 19 (-79.35%)
Mutual labels:  download
pangeo-forge-recipes
Python library for building Pangeo Forge recipes.
Stars: ✭ 64 (-30.43%)
Mutual labels:  xarray
bookmate downloader
Download books as epub from bookmate.com
Stars: ✭ 38 (-58.7%)
Mutual labels:  download
wxee
A Python interface between Earth Engine and xarray for processing time series data
Stars: ✭ 113 (+22.83%)
Mutual labels:  xarray
multipart-download
Speed up download of a single file with multiple HTTP GET connections running in parallel
Stars: ✭ 29 (-68.48%)
Mutual labels:  download
youtube-dl-php
A quick and easy YouTube downloader/parser written in PHP.
Stars: ✭ 49 (-46.74%)
Mutual labels:  download
DownloadFile
Typecho文件下载插件,使下载的文件保持上传时的文件名。
Stars: ✭ 12 (-86.96%)
Mutual labels:  download
PyroGramBot
pluggable Telegram Bot based on Pyrogram
Stars: ✭ 168 (+82.61%)
Mutual labels:  download
hypothesis-gufunc
Extension to hypothesis for testing numpy general universal functions
Stars: ✭ 32 (-65.22%)
Mutual labels:  xarray
coursehunters-video-downloader
Download videos from coursehunt for free - application
Stars: ✭ 26 (-71.74%)
Mutual labels:  download
restee
Python package to call processed EE objects via the REST API to local data
Stars: ✭ 26 (-71.74%)
Mutual labels:  xarray
Treehouse-dl
Scipt allow download treehouse all videos and other stuff :3
Stars: ✭ 21 (-77.17%)
Mutual labels:  download
climate
The R climate package: an interface for downloading in-situ meteorological (and hydrological) dataset
Stars: ✭ 51 (-44.57%)
Mutual labels:  noaa-data
angular-material-datatransfer
A HTML5 datatransfer UI for handling upload and download of multiple simultaneous files.
Stars: ✭ 13 (-85.87%)
Mutual labels:  download
flox
Fast & furious GroupBy operations for dask.array
Stars: ✭ 42 (-54.35%)
Mutual labels:  xarray

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. NWP data is usually in GRIB2 format and 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 and download data from:

📔 Herbie Documentation

Install

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

or, create the provided conda environment.

Capabilities

  • Search different data sources for model output.
  • 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
      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.archive 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. In the later half of 2020, this data was made available through the NOAA Big Data Program. This package organizes and expands my original download scripts into a more coherent package with the ability to download HRRR and RAP model data from different data sources. It will continue to evolve at my own leisure.

I originally released this package under the name "HRRR-B" because it only dealt with the HRRR data set, but I have addeed ability to download RAP data. Thus, it was rebranded with the name "Herbie" as a model download assistant. For now, it is still called "hrrrb" on PyPI because "herbie" is already taken. Maybe someday, with some time and an enticing reason, I'll add additional download capabilities.

Pando HRRR Archive citation

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

Alternative Download Tools

As an alternative you can use rclone to download files from AWS or GCP. I quite like rclone. Here is a short rclone tutorial


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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].