wradlib.classify.filter_gabella_a#
- wradlib.classify.filter_gabella_a(obj, wsize, tr1, *, cartesian=False, radial=False)[source]#
- wradlib.classify.filter_gabella_a(obj: DataArray, **kwargs)
First part of the Gabella filter looking for large reflectivity gradients.
This function checks for each pixel in
imghow many pixels surrounding it in a window ofwsizeare bytr1smaller than the central pixel.- Parameters:
obj (
numpy.ndarray) – radar image to which the filter is to be appliedwsize (
int) – Size of the window surrounding the central pixeltr1 (
float) – Threshold valuecartesian (
bool) – Specify if the input grid is Cartesian or polarradial (
bool) – Specify if only radial information should be used
- Returns:
output (
numpy.ndarray) – an array with the same shape asimg, containing the filter’s results.
See also
Examples