Get U/V windspeeds over time at a single grid point #79
Unanswered
jacob-roth
asked this question in
Q&A
Replies: 1 comment 1 reply
|
Hi @jacob-roth. Thanks for your question. Download a timeseries of Data, only getting the U and V winds at 500 mb. import pandas as pd
from herbie import Herbie, fast_Herbie_xarray
DATES = pd.date_range('2022-05-25', periods=6, freq='1H')
ds = fast_Herbie_xarray(
DATES=DATES,
searchString='(?:U|V)GRD:500 mb',
model='hrrr',
product='prs',
fxx=0
)Get the nearest point to Minneapolis minneapolis = (-93.25, 44.98) # (lon, lat)
ds_at_point = ds.herbie.nearest_points(points=minneapolis)
ds_at_point = ds_at_point.squeeze() # I did squeeze because we only requested one pointMake a plot of the timeseries ds_at_point.u.plot(label='u', marker='.')
ds_at_point.v.plot(label='v', marker='.')
plt.legend()I plotted the latitude/longituge of the nearest point on a map. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi! I came across Herbie from HRRR while trying to collect windpseed data at a single location over time. Is this possible to do in Herbie? I'm new to the 2D latlon coordinates referenced here and was wondering if there would be an easy way of gathering windspeed data (at a particular
mbpressure) over time at a single location, e.g., near Minneapolis. (The example referenced in a previous discussion here doesn't show up for me) Thanks!All reactions