fit_tscan Intermediate Example¶
Intermediate usage example for fit_tscan utility. Yon can find example file from TRXASprefitpack-example fit_tscan subdirectory.
Go to
oscsub directory offit_tscandirectory.In
oscsub directory, you can findexample_osc_1.txt,example_osc_2.txt,example_osc_3.txt,example_osc_4.txtfiles. These examples are generated from Library example, fitting with time delay scan (model: sum of exponential decay and damped oscillation).
Finding oscillation component¶
Before fitting with oscillation, first find oscillation component.
Type
fit_tscan -hThen it prints help message. You can find detailed description of arguments in the utility section of this document.Type
fit_tscan example_osc --num_file 4 --mode decay --irf g --fwhm_G 0.1 -t0 0 0 0 0 --tau 0.5 20 2000 --no_base -o decay --method_glb ampgoAfter fitting process is finished, you can see both fitting result plot and report for fitting result in the console. Upper part of plot shows fitting curve and experimental data. Lower part of plot shows residual of fit (data-fit).
You can find oscillation feature in residual panel of time scan 1.

Fitting with oscillation Feature¶
Guessing initial lifetime and period for oscillation feature.
Type
fit_tscan example_osc --num_file 4 --mode both --irf g --fwhm_G 0.1 -t0 0 0 0 0 --tau 0.5 10 1000 --tau_osc 1.5 --period_osc 0.5 --no_base -o osc --method_glb ampgo. In this example, we change fitting mode toboththat is add convolution of damped oscillation and instrumental response function component. Moreover we set initial lifetime--tau_oscand period--period_oscfor such component.After fitting process is finished, you can see oscillation feature is well fited in residual panel of time scan 1.

Description for additional Output file in osc directory.¶
phase_example_osc.txtcontains phase factor of each oscillation component in each time delay scanfit_decay_example_osc.txtcontains decay part of fitting curve of time delay scanfit_osc_example_osc.txtcontains oscillation part of fitting curve of time delay scan