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

The wind direction array