sup3r.preprocessing.derivers.utilities.transform_rotate_wind#
- transform_rotate_wind(ws, wd, lat_lon)[source]#
Transform windspeed/direction to u and v and align u and v with grid
- Parameters:
ws (Union[np.ndarray, da.core.Array]) – 3D array of high res windspeed data (spatial_1, spatial_2, temporal)
wd (Union[np.ndarray, da.core.Array]) – 3D array of high res winddirection data. Angle is in degrees and measured relative to the south_north direction. (spatial_1, spatial_2, temporal)
lat_lon (Union[np.ndarray, da.core.Array]) – 3D array of lat lon (spatial_1, spatial_2, 2) Last dimension has lat / lon in that order
- Returns:
u (Union[np.ndarray, da.core.Array]) – 3D array of high res U data (spatial_1, spatial_2, temporal)
v (Union[np.ndarray, da.core.Array]) – 3D array of high res V data (spatial_1, spatial_2, temporal)