The HRRR subhourly product has multiple values for wind. How do I get the one I want? #200
Answered
by
blaylockbk
blaylockbk
asked this question in
Q&A
Looking at the sub-hourly product, I was expecting to get 4 timesteps for each variable at each hour, but some variables have 8 timesteps instead. What are these and how do I get the 4 that I want? from herbie import Herbie
H = Herbie('2023-01-01', model='hrrr', product='subh', fxx=1)
H.inventory("VGRD:10 m")This is particularly problematic because if you read this with xarray, it looks like there are double the data at each step ds = H.xarray("VGRD:10 m")Which looks like there are double values at each 15 minute interval. import pandas as pd
pd.to_timedelta(ds.step) |
Answered by
blaylockbk
Jun 2, 2023
Replies: 1 comment
|
The solution is to craft your Here is a regex that gets both U and V winds for the instantaneous wind, excluding the grib messages with "ave". H.inventory("^:[U|V]GRD:10 m(?!.*ave)")And here is the opposite; the U and V winds for the 5-min averages at each 15-min interval. H.inventory("^:[U|V]GRD:10 m.*ave") |
0 replies
Answer selected by
blaylockbk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment





The solution is to craft your
searchStringto only get the data you want.Here is a regex that gets both U and V winds for the instantaneous wind, excluding the grib messages with "ave".
And here is the opposite; the U and V winds for the 5-min averages at each 15-min interval.