TRXASprefitpack.thy.thy module#

TRXASprefitpack.thy.thy.gen_theory_data(e, peaks, A, fwhm_G, fwhm_L, peak_shift, out=None)[source]#

voigt broadening theoretically calculated lineshape spectrum if out is not none: It will make out_thy.txt: txt file for rescaled and boroadend calc spectrum out_thy_stk.txt: txt file for rescaled and shifted calc peaks

Parameters
  • e (numpy_1d_array) – energy (unit: eV)

  • A (float) – scaling parameter

  • fwhm_G (float) – full width at half maximum of gaussian shape (unit: eV)

  • fwhm_L (float) – full width at half maximum of lorenzian shape (unit: eV)

  • peak_shift (float) – discrepency of peak position between expt data and theoretically broadened spectrum

  • out (string) – prefix for output txt file [optional]

Returns

voigt broadened calc spectrum

Return type

numpy_1d_array