wradlib.dp.linear_despeckle(data, ndespeckle=3, copy=False)

Remove floating pixels in between NaNs in a multi-dimensional array.

Warning

This function changes the original input array if argument copy is set to default (False).

Parameters
• data (numpy.ndarray) – Note that the range dimension must be the last dimension of the input array.

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

• copy (bool) – If True, the input array will remain unchanged.

Deprecated since version 1.7: This will be removed in 2.0. Use wradlib.util.despeckle instead.