
Wind Speed and Direction
wind_speed_direction.Rd
Calculation of the wind speed and direction based on the u and v wind components.
Value
A list of "4D" arrays containing:
- `windspeed`
wind speed (m/s) in [lon, lat, lev, time] dimensions.
- `winddir`
the wind direction in degrees from north in [lon, lat, lev, time] dimensions.
Examples
# Example data
data("ERA5_pl")
u <- ERA5_pl$ua
v <- ERA5_pl$va
ws_wd <- wind_speed_direction(u, v, nthreads = 1)