windkit.wind.wind_speed_and_direction
- windkit.wind.wind_speed_and_direction(u, v)[source]
Calculate wind speed and wind direction from wind vectors.
- Parameters:
u (numpy.ndarray, xarray.DataArray) – U and V wind vectors.
v (numpy.ndarray, xarray.DataArray) – U and V wind vectors.
- Returns:
speed (numpy.ndarray, xarray.DataArray) – Wind speed.
direction (numpy.ndarray, xarray.DataArray) – Wind direction.