wradlib.classify.ClassifyMethods.filter_gabella_a

wradlib.classify.ClassifyMethods.filter_gabella_a#

ClassifyMethods.filter_gabella_a(**kwargs)[source]#

First part of the Gabella filter looking for large reflectivity gradients.

This function checks for each pixel in img how many pixels surrounding it in a window of wsize are by tr1 smaller than the central pixel.

Parameters:

obj (xarray.DataArray) – radar image to which the filter is to be applied

Keyword Arguments:
  • wsize (int) – Size of the window surrounding the central pixel

  • tr1 (float) – Threshold value

  • cartesian (bool) – Specify if the input grid is Cartesian or polar

  • radial (bool) – Specify if only radial information should be used

Returns:

out (xarray.DataArray) – an array with the same shape as img, containing the filter’s results.

Examples

See Clutter detection using the Gabella approach.