foxes.utils.wind_dir.uv2wd

foxes.utils.wind_dir.uv2wd(uv, axis=-1)[source]

Calculate wind direction from wind vectors.

Parameters:
  • uv (numpy.ndarray) – The wind vectors, any shape

  • axis (int) – The axis which corresponds to (u, v) components

Returns:

wd – The wind direction array

Return type:

numpy.ndarray