sloop.filters.erode_coast

sloop.filters.erode_coast(da, kernel=3, niter=1)[source]

Erode the coast using a local average

Parameters
  • da (xarray.DataArray) – Data array to erode.

  • kernel (int, dict, tuple, optional) – Size of kernel in X and Y directions.

Return type

xarray.DataArray.