wavespectra.core.utils.spddir_to_uv#

wavespectra.core.utils.spddir_to_uv(spd, direc, coming_from=False)[source]#

Converts (spd, dir) to (u, v).

Args:

spd (array): magnitudes to convert. direc (array): directions to convert (degree). coming_from (bool): True if directions in coming-from convention,

False if in going-to.

Returns:

u (array): eastward wind component. v (array): northward wind component.