Added a BkgSpectrum class that will read in the 'BACKGROUND_UP' and 'BACKGROUND_DOWN' fields of an HETG spectrum. It also handles the 'BACKSCAL' parameter (in the fits header).
BkgSpectrum.bin_bkg will deal with notice and binning arrays.
Spectrum.assign_bkg allows one to assign a BkgSpectrum to a Spectrum object. From there forward, Spectum.bin_countswill use the keywords bkgsub and usebackscal to decide how to manage the background. These two keywords are passed through by the plotting functions.
Added a
BkgSpectrum
class that will read in the 'BACKGROUND_UP' and 'BACKGROUND_DOWN' fields of an HETG spectrum. It also handles the 'BACKSCAL' parameter (in the fits header).BkgSpectrum.bin_bkg
will deal with notice and binning arrays.Spectrum.assign_bkg
allows one to assign a BkgSpectrum to a Spectrum object. From there forward,Spectum.bin_counts
will use the keywordsbkgsub
andusebackscal
to decide how to manage the background. These two keywords are passed through by the plotting functions.