A&A 411, L123-L126 (2003)
DOI: 10.1051/0004-6361:20031260
1 - C.E.S.R.,
9 avenue du Colonel Roche, 31028 Toulouse, France
2 -
University of Birmingham, Edgbaston, Birmingham, B15 2TT, UK
Received 17 July 2003 / 18 August 2003
Abstract
A key tool in the package of software available for the analysis
of data from the SPI spectrometer of Integral is the SPIROS system
developed at the University of Birmingham. Although intended
primarily for the analysis of point sources and for the extraction
of spectral information, SPIROS has many additional capabilities.
The software is described with particular emphasis on the most
widely used modes of operation and on the relationship to other
imaging and data reduction techniques.
Key words: coded masks - imaging - software
Astronomical images are often of fields consisting of
(or at least dominated by) a number of sources which are
essentially points. Their angular size is much smaller than the
resolution of current instrumentation
- frequently by a factor more than 1010.
At gamma-ray energies the number of such sources
is usually small.
In these circumstances the model with a minimum number of
parameters that is consistent with the data will consist of a list of
the positions of those sources with their intensities. For an instrument
with spectroscopic capabilities like INTEGRAL/SPI, a description of the
variation of those intensities with photon energy, and perhaps with time,
must be added. In general it is when a minimum number of parameters is
sought that each of these may be obtained with the highest
precision, so in these circumstances point source searching
and fitting is the preferred data analysis technique.
The technique of "Iterative Removal of Sources'' (IROS, Hammersley et al. 1984) has been widely used for coded mask instruments. A simple image of the field of view is made using a mapping technique which is optimised for finding a source assuming that the data can be explained by only that source, plus background. The mapping gives the approximately location and intensity of the source, which are then improved by maximising a measure of the goodness of fit. The residuals of the fit are used as the input for a further image reconstruction and source search. The parameters of the two source model are refitted and if the fit represents a significant improvement on the original one the process is continued with more and more sources.
SPIROS is a programme which implements this algorithm for the SPI
spectrometer of INTEGRAL, a coded mask imaging instrument with a
detector array comprising 19 high-purity Germanium detectors
giving an angular resolution of about 2.5
over a field of
view of 16
(Vedrenne et al. 2003). SPIROS
operates within the ISDC software environment (Courvoisier et al. 2003).
The SPI instrument differs from most coded mask instrument for which IROS has been used because
SPIROS operates on data which have been already binned by (pseudo-) detector, by pointing, and by energy (strictly "pulse height'') bin. In most modes it treats data from one energy bin at a time, although a group of input energy bins can be combined to form one. It also reads files containing attitude information, integration times, etc., and a file containing one or more background models.
Considering, then, a particular energy, for a given set of
assumed source positions, the expected count in detector (or
pseudo-detector) d during pointing p is
The possibility that the background is a combination of components
which vary in different ways between pointings and from detector
to detector can be included in this formalism by treating those
components much like sources:
The objective is then to find the model (the combination of Siand, if required, Fi') which, best explains the observed data (the count rates Pdp) in the "Maximum Likelihood" (ML) sense.
In the general case where the number of counts per bin may be
small, as can be the case when short exposures or narrow energy
bins are being considered, then the relevant
statistic is (Cash 1979) :
If the counts are large, Gaussian statistics can be assumed and
one can minimise the
statistic
SPIROS can be run either using the general ML approach or using
and the assumption that
.
The
latter is faster and more efficient in those cases where it can
validly be used. Note that the user must beware of the dangers of
adopting the
statistic where it is not valid because for
low counts per bin there is a significant probability that
Pdp=0. The infinite weights that would result are avoided
by ignoring such data, but this introduces a bias, as does the
incorrect weight given to other bins with low, but non-zero
counts.
Usually the background has to be treated as an unknown, but some constraining assumptions are necessary - with np pointings and nd detectors, it is obviously not possible at the same time to obtain information about sources in the field of view and make independent estimates of the background in each of the nd np combinations of detector d and pointing p.
SPIROS reads in one or more (ni', in general) background
models which are sets of Bdp values, generated for a specific data set by an
independent programme (called "spiback''). Sometimes the model
components may be absolute (when they are based on data preceding
or following an observation, or from energy bands just above and
below the region of interest, for example). Sometimes they are
simply tracers of a time variation with arbitrary scaling. The
simplest case would be background which is uniform and constant,
corresponding to a single i' component in which all the B have
the same value. Other possibilities are components which depend on
time or from detector to detector in a specific way, or which
follow tracers of expected background contributions (for example
the veto shield count rate is a measure of the particle flux, the
rate of out of range events in the germanium detectors is a
measure of high energy particles...).
In its existing form SPIROS has provides for the following possibilities:
A basic mapping operation consists of considering each pixel in
the image successively, placing a test source at that position and
establishing the intensity that it would have in order to best
match the observed data, along with the uncertainty in that
intensity. Sources found in previous iterations, or read in from a
catalogue, are either subtracted out from the data ()
or
taken into account in the analysis (ML). For source searching
the intensities and uncertainties evaluated on a comparatively
coarse grid (e.g. 0.5
)
can be used. A smoothed
linear interpolation is then used to fill in estimates on a finer
pitch.
The source selected for potential addition to the list of sources is that which has the highest value of intensity/uncertainty.
Before accepting a new source as real, a simultaneous optimisation of its position and reoptimisation of all the other sources that do not have good catalogued positions is performed (Sect. 6 below). The procedure used is an iterative one with a descent along the line of maximum slope.
The IROS algorithm searches the space for a solution consistent with the data according to the following rules:
The procedure is very similar to the CLEAN method used in radio astronomy (Högbom 1974; Schwarz 1978), except that in CLEAN (i) position optimisation is not normally performed, (ii) the point in the map with the highest absolute value is chosen, so iterations can add negative components to the image, (iii) only a fraction of the intensity of a source is subtracted. The resulting image will usually have a relatively large number of non-zero pixels, whereas with IROS, there is just one per source. CLEAN can be considered as an exploration of the multi-dimensional space considered above, with no positivity constraint and without the fitting stage.
The IROS algorithm differs from many image reconstruction techniques in that the possible source positions are not restricted to a fixed grid of pixel positions.
In a different mode, SPIROS is used for the extraction of spectral information. This requires an input catalogue, which may simply be a list of known sources or which may be the result of a previous run of SPIROS in imaging mode. In each energy bin in turn, the combination of source intensities (and, if required, of background parameters) which best matches the data is found. The method is as described in Sect. 3.
In this way one obtains for each source a spectrum analogous to a "Pulse Height'' spectrum in that off-diagonal terms in the energy response matrix are not taken into account. However other aspects of the instrument response (detector photopeak efficiency variation with energy, for example) have been corrected for. For sources with conventional continuum spectra, this measure is already a very good estimate of the input spectrum. However for definitive results, a programme such as XSPEC (Arnaud 1996) needs to be used to take into account the off-diagonal terms in the response of the combination, SPI+SPIROS. XSPEC-compatible response matrices for this step have been derived using Monte Carlo simulations of observations of monoenergetic sources at 100 different energies.
Optionally, the sources may be treated as having a finite extent. For example it is possible to treat each source as a Gaussian function and find the width which best matches the data.
Extracting a light curve (intensity as a function of time) for each of the sources in an input catalogue is directly analogous to the extraction of pulse height spectra.
Although SPIROS is intended for fitting of point sources, it does have a mode in which one solves simultaneously for the intensities of the fluxes in each pixel of an image, allowing map of diffuse emission to be generated. Such inverse problems are notoriously unstable if the number of pixels is high and the coding is not ideal. Thus instead of a simply multiplying by the inverse of the coding matrix, it is modified by the addition of a diagonal Wiener term or some other smoothing constraint matrix, giving a stabilising effect by allowing the diagonal terms to dominate.
![]() |
Figure 1:
An image of Cygnus X-1 obtained by using double and triple events. The energy range is 100-700 keV, but most of the events are >300 keV.
Contours are at intervals of 4![]() ![]() |
Open with DEXTER |
![]() |
Figure 2:
As Fig. 1 for single events. Note
that the intensity scale is not the same: contour
intervals are 14![]() ![]() |
Open with DEXTER |
Results obtained with Spiros can be seen in other articles in this issue and elsewhere - see, for example, Bouchet et al. (2003).
As an example of a slightly non-standard use of Spiros, Fig. 1 shows an image obtained using only events interacting in 2 or 3 detectors. For such events there is no information about which of the 2 or 3 detectors corresponds to the first interaction. The source is well identified and located, though with significance lower than in the corresponding single event image (Fig. 2).
The form in which the IROS algorithm is implemented within SPIROS handles for the first time the situation where no simplifying assumptions can made about position independence of the recorded mask shadow. By using the instrument response characterised by a generalised matrix and an object-oriented programme structure, additional sophistication can be introduced as necessary and as the knowledge of the instrument improves.
Acknowledgements
The development of SPIROS was supported by a grant from PPARC. The work has benefited from inputs from many members of the Integral SPI Data Analysis Group (ISDAG) and the Integral Science Data Centre (ISDC).