FSP_PROC is a general routine for doing spectral fits. detector is a string
variable containing the detector name, cfile is the input file name, the
format for an input file is given in /ys/ucon/soft/mctiernan/spectral_data_format,
ofile is an output file name. tyspec denotes the type of spectrum you want
to fit (try doc_library, 'fsp_proc' for a complete list). fit_pars is the
structure containing the results. Optional parameters:
sc_par is a structure containing spectrometer channel info, ch_dta is a
structure containing the data for each channel, pfile is the name for an
output plot file, sdel is an array of channels you'd like to delete,
flux_corr is any correction to the overall flux you might want to make,
nsigmas tells you how many sigmas above background a ``good'' channel will
be (default is 3.0), noplot suppresses screen plots.
IDL> FSP_PROC, detector, cfile, ofile, tyspec, fit_pars