flasc.utilities.circular_statistics.calc_wd_mean_radial

flasc.utilities.circular_statistics.calc_wd_mean_radial#

flasc.utilities.circular_statistics.calc_wd_mean_radial(angles_array_deg, axis=0, nan_policy='omit')[source]#

Compute the mean wind direction over a given axis.

Assumes that the input angles are specified in degrees, and returns the mean wind direction in degrees. Wrapper for scipy.stats.circmean

Parameters:
  • angles_array_deg (numpy array) -- Array of angles in degrees

  • axis (int) -- Axis along which to calculate the mean Default is 0

  • nan_policy (str) -- How to handle NaN values. Default is 'omit'

Returns:

Mean wind direction in degrees

Return type:

np.array