FSP_11 is a general routine for doing spectral fits. inpf is a strarr
containing the detector response filenames, tyspec denotes the type of
spectrum you want to fit (try doc_library, 'fsp_11' for a complete list).
Data must be put in the proper fields of the structures fit_pars, sc_par
and
.
is the structure containing the results,
is a
structure containing spectrometer channel info,
is a structure
containing the data for each channel. Optional parameters:
is the name for an output file,
is the name for an output plot
file,
is an array of channels you'd like to delete,
is any
correction to the overall flux you might want to make,
tells you
how many sigmas above background a ``good'' channel will be (default is 3.0),
suppresses screen plots.
IDL> FSP_11, detector, inpf, tyspec, fit_pars, sc_par, ch_dta