FIT_BSC fits synthetic spectra to observed spectra in BSC_DATA:
IDL> fit_bsc,bsc_index,bsc_data,fit_index,fit_data,chan=chan
In the above call, the fitted results are returned in the new structures
FIT_INDEX and FIT_DATA for the channel specified by the keyword CHAN.
If CHAN is not specified, then all channels will be fit (not recommended).
The FIT_DATA structure contains two additional fields:

The FIT_INDEX structure contains an additional .FIT field that contains important fit information (parameters fit, number of iterations, chi squared, etc).
FIT_BSC accepts the following optional keywords:


For example, to fit a Ca XIX spectrum at UT='09:04' use:
IDL> fit_bsc,index,data,findex,fdata,chan=3,tstart='09:04'
To fit a blueshifted secondary component:
IDL> fit_bsc,index,data,findex,fdata,chan=3,tstart='09:04',/blue