| dofitplot | xray.xspectral | dofitplot |
dofitplot -- An IRAF script that runs fit and count_plot on an observed spectrum
dofitplot observed model print_table print_plot
This task computes the best predicted fit to the observed data spectrum using fit and then plots the best fit predicted and observed spectrum using count_plot.
The file name of the observed data sets on which the fit is to be performed. Normally these files have a "_obs.tab" extension. This extension need not be input explicitly. (See fit.)
The ASCII model descriptor. (See fit.)
Generate hardcopy of spectral table.
Generate hardcopy of plot.
The following example finds the best fit to the observed data set "snr" for a power law model with energy index in the range (3.0:8.0), and plots the observed and predicted spectral. No hard copies will be printed for either the table or the plot.
xs> dofitplot "snr" "abs(21:23)*pow(3.0:8.0)" no no
Execution time is dependent upon the number of "free" parameters defined for the fit.
fit, counts_plot