sads¶
- TRXASprefitpack.driver.sads(escan_time: ndarray, fwhm: float, eigval: ndarray, V: ndarray, c: ndarray, exclude: Tuple[int] | None = None, irf: str | None = 'g', eta: float | None = None, intensity: ndarray | None = None, eps: ndarray | None = None) Tuple[ndarray, ndarray, ndarray][source]¶
Calculate species associated difference spectrum from experimental energy scan data
- Parameters:
escan_time – time delay for each energy scan data
fwhm – full width at half maximum of instrumental response function
eigval – eigenvalue of rate equation matrix
V – eigenvector of rate equation matrix
c – coefficient to match initial condition of rate equation
exclude –
list of indices of species to exclude in SADS calculation
[0] : exclude first element
[-1] : exclude last element
[i1, i2, …, in] : exclude i1, i2, …, in
None : Do not exclude any element [default]
irf –
shape of instrumental response function [default: g]
’g’: normalized gaussian distribution,
’c’: normalized cauchy distribution,
’pv’: pseudo voigt profile \((1-\eta)g(t, {fwhm}) + \eta c(t, {fwhm})\)
eta – mixing parameter for pseudo voigt profile (only needed for pseudo voigt profile)
intensity – intensity of energy scan dataset
eps – standard error of data
- Returns:
Tuple of calculated species associated difference spectrum of each component, estimated error and retrieved intensity of energy scan from sads and model excited state components
Note
eigval, V, c should be obtained from solve_model
To calculate species associated difference spectrum of n excited state species, you should measure at least n+1 energy scan
Difference spectrum of ground state is zero, so ground state species should be excluded from rate equation or via exclude option.