TRXASprefitpack.thy package
Contents
TRXASprefitpack.thy package#
Module contents#
thy: subpackage for calculating broaded theoritical spectrum
- copyright
2021 by pistack (Junho Lee).
- license
LGPL3
- TRXASprefitpack.thy.gen_theory_data(e: numpy.ndarray, peaks: numpy.ndarray, A: float, fwhm_G: float, fwhm_L: float, peak_shift: float, out: Optional[str] = None) numpy.ndarray[source]#
voigt broadening theoretically calculated lineshape spectrum
- Parameters
e – energy (unit: eV)
A – scaling parameter
fwhm_G – full width at half maximum of gaussian shape (unit: eV)
fwhm_L – full width at half maximum of lorenzian shape (unit: eV)
peak_shift – discrepency of peak position between expt data and theoretically broadened spectrum
out – prefix for output txt file [optional]
- Returns
numpy ndarray of voigt broadened theoritical lineshape spectrum
Note
- If out is not none, It will makes
out_thy.txt: txt file for rescaled and boroadend calc spectrum
out_thy_stk.txt: txt file for rescaled and shifted calc peaks