foxes.utils.wind_dir.wdvec2wd

foxes.utils.wind_dir.wdvec2wd(wdvec, axis=-1)[source]

Calculate wind direction from wind direction vectors.

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

  • axis (int) – The axis which corresponds to (x, y) components

Returns:

wd – The wind direction array

Return type:

numpy.ndarray