correct_real_space_drift#
- InSituDiffraction2D.correct_real_space_drift(shifts=None, time_axis=2, order=1, lazy_result=True)[source]#
Perform real space drift registration on the dataset.
- Parameters:
shifts (Signal1D) – shift vectors to register, must be in the shape of <N_time | 2>. If None, shift vectors will be calculated automatically
time_axis (int) – Index of time axis. Default is 2
lazy_result (bool, default True) – Whether to return lazy result.
order (int) – The order of the spline interpolation for registration. Default is 1
- Returns:
registered_data – Real space drift corrected version of the original dataset
- Return type: