wradlib.classify.classify

Contents

wradlib.classify.classify#

wradlib.classify.classify(data, *, threshold=0.0)[source]#
wradlib.classify.classify(data: DataArray, threshold=0.0)

Calculate probability of hmc-class for every data bin.

Parameters:
  • data (numpy.ndarray) – Array which is of size (hmc-class, data.shape), containing the weighted hmc-membership probability values.

  • threshold (float, optional) – Threshold value where probability is considered no precip, defaults to 0.

Returns:

  • idx (numpy.ndarray) – Array which is of (data.shape) containing the (sorted) index into the hydrometeor-class. No precip is added on the top.

  • vals (numpy.ndarray) – Array which is of (data.shape) containing the (sorted) probability scores. No precip is added on the top.