wradlib.classify.classify#

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

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.

Keyword Arguments:

threshold (float) – 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.