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


eimsimprep (eimsim-2.4.2) [xmmsas_20211130_0941-20.0.0]

Sky masks for individual exposures

Creation of count-rate images from many superposed PSFs has been found to be the part of the simulations procedure which takes the longest time. It is therefore desirable not to attempt to add sources to the image unless they are likely to make a significant contribution to it - ie there is no point in simulating an image of a source at -30 dec when the 1/2-degree field of view is centred on +20 dec; one may as well save oneself the trouble. This source-screening is done by preparing a mask image and only processing those sources which lie within `live' areas of the mask.

Each mask is made from the exposure map for that instrument and energy band. Exposure maps are required inputs to eimsimprep (see section 5) in order to delineate the edges of the CCDs and of the field of view. If the exposure value is non-zero at the location of a source, then this source should clearly be among those used to make the count-rate image. The initial step in making the mask is therefore to set all pixels for which the exposure is non-zero to TRUE. However, one is to consider that a source which lies only a little way off the edge of the exposure may still make some contribution to the count-rate image due to the wings of its PSF. The TRUE area of the mask is therefore extended some little distance into the zero-exposure region. The width of this padding is set via the parameter padsizearcsec.

The algorithm to add the pad is as follows. First, the initial mask (from the non-zero pixels of the exposure map) is made. Then all edge pixels are identified - ie, all those for which the central pixel of a 9x9 square is TRUE but at least one of the eight neighbours is not. Finally, for each of these edge pixels, a circular blob of padsizearcsec radius is added to the final mask.

NOTE! These masks are NOT the same as the detection masks made by such tasks as emask during source detection.

XMM-Newton SOC -- 2021-11-30