wradlib.util.UtilMethods.despeckle#

UtilMethods.despeckle(**kwargs)[source]#

Remove floating pixels in between NaNs in a multidimensional array.

Parameters

obj (xarray.DataArray) – input array

Keyword Arguments

n (int) – (must be either 3 or 5, 3 by default), Width of the window in which we check for speckle

Returns

out (xarray.DataArray) – output array