wavespectra.core.utils.uv_to_spddir#
- wavespectra.core.utils.uv_to_spddir(u, v, coming_from=False)[source]#
Converts (u, v) to (spd, dir).
- Parameters:
u (array) – eastward wind component.
v (array) – northward wind component.
coming_from (bool) – True for output directions in coming-from convention, False for going-to.
- Returns:
magnitudes. direc (array): directions (degree).
- Return type:
mag (array)