wradlib.util.filter_window_polar#
- wradlib.util.filter_window_polar(img, wsize, fun, rscale, random=False)[source]#
Apply a filter of an approximated square window of half size fsize on a given polar image img.
- Parameters:
img (
numpy.ndarray
) – 2d array of values to which the filter is to be appliedwsize (
float
) – Half size of the window centred on the pixel [m]fun (
str
) – name of the 1d filter fromscipy.ndimage
rscale (
float
) – range [m] scale of the polar gridrandom (
bool
) – True to use random azimuthal size to avoid long-term biases.
- Returns:
output (
numpy.ndarray
) – Array with the same shape as img, containing the filter’s results.