extract_irf_location

extract_irf_location(res: Dataset, center_λ: float | None = None, main_irf_nr: int | None = 0) float[source]

Determine location of the irf, which can be used to shift plots.

Parameters:
  • res (xr.Dataset) – Result dataset from a pyglotaran optimization.

  • center_λ (float | None) – Center wavelength (λ in nm)

  • main_irf_nr (int | None) – Index of the main irf component when using an irf parametrized with multiple peaks. If it is none None the location will be 0. Defaults to 0.

Returns:

Location of the irf

Return type:

float