Get U/V windspeeds over time at a single grid point #79
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 point Make 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. |
Beta Was this translation helpful? Give feedback.
-
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
mb
pressure) 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!Beta Was this translation helpful? Give feedback.
All reactions