select_irf_dispersion_center_by_index
- select_irf_dispersion_center_by_index(irf_dispersion: DataArray, main_irf_nr: int = 0) DataArray | float [source]
Select a subset of the IRF dispersion data where
irf_nr==main_irf_nr
.- Parameters:
irf_dispersion (xr.DataArray) – Data Variable from a result dataset which contains the IRF dispersion data.
main_irf_nr (int) – Index of the main
irf
component when using anirf
parametrized with multiple peaks. Defaults to 0.
- Returns:
DataArray only containing the IRF dispersion data for the main IRF.
- Return type:
xr.DataArray | float
- Raises:
ValueError – If
irf_nr
is not in the coordinates