- wradlib.classify.histo_cut(obj, *, upper_frequency=0.01, lower_frequency=0.01)#
- wradlib.classify.histo_cut(obj: DataArray, **kwargs)
Histogram based clutter identification.
This identification algorithm uses the histogram of temporal accumulated rainfall. It iteratively detects classes whose frequency falls below a specified percentage (1% by default) of the frequency of the class with the biggest frequency and remove the values from the dataset until the changes from iteration to iteration falls below a threshold. This algorithm is able to detect static clutter as well as shadings.
The tresholds for the upper frequency (clutter) and the lower frequency (shading) can be parameterized by the respective kwargs, upper_frequency/lower_frequency.
It is suggested to choose a representative time periode for the input precipitation accumulation. The recommended time period should cover one year.
numpy.ndarray) – uint8 array with pixels identified as clutter set to 1 and shadings set to 2. Remaining pixels set to 0. Users strictly relying on a boolean mask might have to explicitely cast to boolean (adding .astype(np.bool) on the return).