foxes.utils.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: numpy.ndarray

The wind direction array