XMM-Newton SAS Home Page
XMM-Newton Science Analysis System


specgroup (specgroup-1.7.1) [xmmsas_20230412_1735-21.0.0]


Setting bad channels

The quality of spectral channels may be set to bad by choosing the appropriate option. If set bad, channels will not be considered when grouping channels with one of the statistical methods. However, if a range or regular binning is specified which includes these bins then this will take precedence and the quality of these channels will be set to good.

The options are:


\begin{code}{\em specgroup spectrumset=srcspec.ds setbad=CCF
}\end{code}

in which case the channels to exclude from spectral fitting will be read from a calibration file.


\begin{code}{\em specgroup spectrumset=srcspec.ds setbad='0:10,790:799'
}\end{code}

in which case the channels from 0 to 10 and 790 to 799 will be set bad.


\begin{code}{\em specgroup spectrumset=srcspec.ds setbad='0:0.2,10.0-15.0' units=KEV
}\end{code}

in which case the channels with energy between 0 and 0.2 keV or 10 and 15 keV will be set to bad.


\begin{code}{\em specgroup spectrumset=srcspec.ds setbad=no
}\end{code}

in which case no channels will be excluded before the spectrum is grouped.



XMM-Newton SOC -- 2023-04-16