wradlib.clutter.filter_window_distance

wradlib.clutter.filter_window_distance(img, rscale, fsize=1500, tr1=7)

2d filter looking for large reflectivity gradients.

This function counts for each bin in img the percentage of surrounding bins in a window of half size fsize which are not tr1 smaller than the central bin. The window is defined using geometrical distance.

Parameters:
  • img (array_like) – 2d polar data to which the filter is to be applied
  • rscale (float) – range [m] scale of the polar grid
  • fsize (int) – Half-size [m] of the square window surrounding the central pixel
  • tr1 (float) – Threshold value
Returns:

output (array_like) – an array with the same shape as img, containing the filter’s results.

See also

filter_gabella_a - Original version of the filter

filter_gabella_b - filter using a echo area