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


omqualitymap (omqualitymap-1.5) [xmmsas_20230412_1735-21.0.0]

Setting quality-image pixels (Program mode 1)

When the parameter mode is set to setqualityimage) or SETQUALITYIMAGE, the program works as follows:

  1. Load the image from the Primary fits file extension in the input image file (parameter imageset).
  2. Load the 16-bit 2-d quality-array from the QUALITY fits file extension in the input image file.
  3. Load the x and y image coordinates (XPOS and YPOS columns), the raw-count rates (RATE column) and the source quality-flags (QFLAG column) from the input source-list file (parameter srclistset).

  4. Set bit number 5 of all the pixels in the quality-image that lie within the central-enhancement region (see section 8.6).

  5. Set bit number 7 of all the pixels in the quality-image that lie close to an image edge or corner of the OM detector (see section 8.7).

  6. Loop through the list of sources and for any one that has a raw count-rate of at least 60 counts/sec

  7. Create the output file (parameter outset that will store the modified image (the output file can have the same name as the input file).

XMM-Newton SOC -- 2023-04-16