xoa.filter.erode_coast
- xoa.filter.erode_coast(data, until=1, kernel=None, xdim=None, ydim=None)[source]
Just like
erode_mask()
but specialized for the horizontal dimensions- Parameters:
data (xarray.DataArray) – Array of at least 2 dimensions, that are supposed to be horizontal.
until (array_like, int) – Either a minimal mask, or a max number of iteration.
kernel – Defaults to a
shapiro
kernel. In this case,xdim
andydim
can be set to the horizontal dimensions, otherwise they are inferred.xdim (None) – Name of the X dimension, which is infered by default.
ydim (None) – Name of the Y dimension, which is infered by default.
- Returns:
xarray.DataArray – Data array similar to input array, with its eroded along x and y dimensions.
See also
erode_mask
,sharpiro_kernel