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.
- observed = "" observed spectrum [root_obs.tab]
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.)
- model = "" spectral model descriptor
The ASCII model descriptor. (See fit.)
- print_table = "no" [boolean]
Generate hardcopy of spectral table.
- print_plot = "no" [boolean]
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.