xdas.signal.taper#
- xdas.signal.taper(da, window='hann', fftbins=False, dim='last', parallel=None)[source]#
Apply a tapering window along the given dimension.
- Parameters:
da (DataArray) – The data to taper.
window (str or tuple, optional) – The window to use, by default “hann”
fftbins (bool, optional) – Whether to use a periodic windowing, by default False
dim (str, optional) – Dimension along which to taper, 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 tapered data.
- Return type: