windkit.wind.wind_direction

windkit.wind.wind_direction(u, v)[source]

Calculate wind directions from wind vectors.

Parameters:
  • u (np.ndarray, xr.DataArray) – U and V wind vectors.

  • v (np.ndarray, xr.DataArray) – U and V wind vectors.

Returns:

wd – Wind direction

Return type:

np.ndarray, xr.DataArray