Auto-setting Energy Range to Fit

Note: These settings modify spex_erange. spex_erange can be an array of start/end energies. The energy intervals will be preserved if they are between the new low/high limits.

spex_fit_auto_erange - If set, automatically select upper limit for energy range to fit based on background-subtracted counts/bin. For energies > 10. keV, find the energy bin where the counts/bin becomes less than spex_fit_auto_emax_thresh, and set spex_erange upper limit to the lower edge of the bin.
(Prior to 30-Oct-2013, we used the count rate > .01 test, and rounded the energy up to the next multiple of 10.)

spex_fit_auto_emax_thresh - Threshold for automatically setting upper limit of energy range to fit. Default is 10.0 counts/bin.

spex_fit_auto_emin - If set, automatically select lower limit for energy range to fit. This applies only to RHESSI data:
   attenuator state A0: low limit is 4.0 keV.
   attenuator state A1 or A3: low limit is 6.0 keV.

Note: Normally for every parameter initialization method other than "current" or "default", the fit energy range is initialized from the interval you select as the basis for your parameter values. However, if spex_fit_auto_erange or spex_fit_auto_emin is set, they override the energy range transferred from a previous fit of an interval.