Skip to content

How can I get geopotential height and wind data at all pressure levels in HRRR for a specific location? #150

Answered by blaylockbk
blaylockbk asked this question in Q&A
Discussion options

You must be logged in to vote

Getting data from a specific location isn't super efficient with GRIB2 data and Heribe, but it can be done. It requires downloading the full HRRR grid for each variable you want.

Download subsets of GRIB2 files.

from herbie import Herbie

H = Herbie('2023-01-01', product="prs", fxx=1)

Note: Hopefully you have a good internet connection to help the download speed.

# Download subset of file with all geopotential heights
ds_hgt = H.xarray(
    searchString="HGT:.* mb:",
    verbose=True,
    remove_grib=False,  # Set to false to retain the file locally. (We don't want to redownload it next time)
)
ds_hgt

# Download subset of file with all U and V winds
ds_wind = H.xarray(
    searchString="…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@blaylockbk
Comment options

blaylockbk Jan 13, 2023
Maintainer Author

Answer selected by blaylockbk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant