xoa.filter.erode_mask

xoa.filter.erode_mask(data, until=1, kernel=None)[source]

Erode the horizontal mask using smoothing

Missing values are filled with the smoothed field in a iterative way. Two cases:

  • Erode a fixed number of times.

  • Erode the data mask until there is no missing value where a given horirizontal mask is False.

Parameters:
Returns:

xarray.DataArray – Data array similar to input array, with its eroded along x and y dimensions.

See also

erode_coast, sharpiro_kernel