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:
Returns:

  • speed (numpy.ndarray, xarray.DataArray) – Wind speed.

  • direction (numpy.ndarray, xarray.DataArray) – Wind direction.