wradlib.util.filter_window_cartesian#

wradlib.util.filter_window_cartesian(img, wsize, fun, scale, **kwargs)[source]#

Apply a filter of square window size fsize on a given cartesian image img.

Parameters:
  • img (numpy.ndarray) – 2d array of values to which the filter is to be applied

  • wsize (float) – Half size of the window centred on the pixel [m]

  • fun (str) – name of the 2d filter from scipy.ndimage

  • scale (tuple) – tuple of 2 floats x and y scale of the cartesian grid [m]

Returns:

output (numpy.ndarray) – Array with the same shape as img, containing the filter’s results.