s-l-f f file-name
where file-name is your choice of file to which to write the information. Remember to reset the output to your screen subsequently (use s-l-f t).
The key commands here are fit-gaussian-model and calculate-gaussian-model, f-g-m and c-g-m respectively.
In non-interactive mode, the dialog might proceed as follows:
>> f-g-m
1 baseline regions currently defined
Type intervals, one at a time, EOF to finish
Current units are km/s
# [ -30.15, 10.02] -30 15
# Exit
Estimates of Amp.,Width(FWHM) and Pos'n for each line
Line at a time, EOF to finish
Current units are km/s
Line 1: [ -2.4 8.7 -7.0] -2.2 9. -8
Line 2: -0.3 25 -8
Line 3: Exit
No of Iterations = 4 Final SUMSQ = 0.1725E+01
Parameters of current gaussian model
N Amp. Width (km/s) Pos'n (km/s)
1 -2.152 7.66 -7.04
2 -0.277 22.02 -4.64
Baseline calculated - Pushed into stack
..
>> c-g-m
Unknown velocity frame: R
Line or range of lines to model? (EOF to finish) [ 1, 1] 1,2
Line or range of lines to model? (EOF to finish) [ 1, 2] Exit
What happened here was I used f-g-m to fit the velocity range
surrounding with two Guassian components as specified. Then I used
c-g-m to calculate the curve corresponding to these components
(which is placed at the top of the stack) and then plotted it on the
same axes as for the spectrum. The result of this is shown in
Figure
.
Specx Cookbook Reduction of millimetre wave data