lisa.datautils.series_align_signal#
- lisa.datautils.series_align_signal(ref, to_align, max_shift=None)[source]#
Align a signal to an expected reference signal using their cross-correlation.
- Returns:
(ref, to_align) tuple, with to_align shifted by an amount computed to align as well as possible with ref. Both ref and to_align are resampled to have a fixed sample rate.
- Parameters:
ref (pandas.Series) – reference signal.
to_align (pandas.Series) – signal to align
max_shift (object or None) – Maximum shift allowed to align signals, in index units.