3.8.2 FSP_11 [*]


next up previous contents
Next: 3.9 Routines for Image Up: 3.8 Routines for Calibration Previous: 3.8.1 FSP_PROC [*]

3.8.2 FSP_11 [*]

 

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
 


ydac@mssly1.mssl.ucl.ac.uk