xdas.signal.segment_mean_removal#

xdas.signal.segment_mean_removal(da, limits, window='hann', dim='last')[source]#

Piecewise mean removal.

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

  • limits (list of float) – The segments limits.

  • window (str, optional) – The tapering windows to apply at each window, by default “hann”.

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

Returns:

The data with segment means removed.

Return type:

DataArray