xdas.signal.sliding_mean_removal#

xdas.signal.sliding_mean_removal(da, wlen, window='hann', pad_mode='reflect', dim='last', parallel=None)[source]#

Sliding mean removal.

Parameters:
  • da (DataArray) – The data that sliding mean should be removed.

  • wlen (float) – Length of the sliding mean.

  • window (str, optional) – Tapering window used, by default “hann”

  • pad_mode (str, optional) – Padding mode used, by default “reflect”

  • dim (str, optional) – The dimension along which to remove the sliding mean, by default “last”

  • parallel (bool or int, optional) – Number of threads to use. True uses all cores, False uses one, an int uses that many, None defers to the global xdas configuration. Default is None.

Returns:

The data with sliding mean removed.

Return type:

DataArray

Notes

Splits on data discontinuities along dim.