pyart.util.compute_directional_stats#

pyart.util.compute_directional_stats(field, avg_type='mean', nvalid_min=1, axis=0)[source]#

Computes the mean or the median along one of the axis (ray or range)

Parameters:
  • field (ndarray) – the radar field data

  • avg_type (str) – the type of average: ‘mean’ or ‘median’

  • nvalid_min (int) – the minimum number of points to consider the stats valid. Default 1

  • axis (int) – the axis along which to compute (0=ray, 1=range)

Returns:

  • values (ndarray 1D) – The resultant statistics

  • nvalid (ndarray 1D) – The number of valid points used in the computation