get_shifted_traces
- get_shifted_traces(res: Dataset, center_λ: float | None = None, main_irf_nr: int = 0) DataArray [source]
Shift traces by the position of the main
irf
.- Parameters:
res (xr.Dataset) – Result dataset from a pyglotaran optimization.
center_λ (float | None) – Center wavelength (λ in nm). Defaults to None.
main_irf_nr (int) – Index of the main
irf
component when using anirf
parametrized with multiple peaks. Defaults to 0.
- Returns:
Traces shifted by the ``irf``s location, to align the at 0.
- Return type:
xr.DataArray
- Raises:
ValueError – If no known concentration was found in the result.