XMM-Newton Science Analysis System
ommosaic (ommosaic-2.11) [xmmsas_20230412_1735-21.0.0]
Ommosaic contains a test-harness that can check any of the following things:
- That a list of sky images derived from a master image have been properly aligned and stacked.
- That a list of unrotated images derived from a master image have been properly aligned and stacked.
- That a list of sky-images derived from a master sky-image have been properly stacked.
- That a list of unrotated images derived from a master sky image have been properly stacked.
Due to time constraints, only the two first of these tests are done when the package is built. The latter two
can be done by editing the program createtest.cc in the directory test.
A program createst.cc does the following
- Creates a 256x256 test image file (test.fits), with a random background (1-500) and a random number of point-sources
(10-100) at random positions on the image.
- A master unrotated image file (test1.fits) is cloned from test.fits and FITS header keywords such as WINDOWX0,
WINDOWY0 are added to it.
- 10 Unrotated-images files are cloned from test1.fits, and the FITS keywords WINDOWX0 and WINDOWY0 are given
random small offsets.
- A master sky image file (test2.fits) is cloned from test.fits and FITS header keywords such as CRPIX,
CRVAL1 are added to it.
- 10 Sky-images files are cloned from test2.fits, and the FITS keywords CRPIX1 and CRPIX2 are given
random small offsets.
- Ommosaic is run on test1.fits and test2,fits to produce output files test3.fits and test4.fits.
- A program called checkoutput.cc compares test3.fits with test1.fits- it checks that the image dimensions
are the same as well as each corresponding image pixels. Any differences (beyond rounding errors, etc) are reported
and the test is deemed to have failed.
- checkooutput.cc then compares test4.fits with test2.fits, and does the same tests as before.
For program development testing the number of images can be increased and the image dimensions, etc, changed.
XMM-Newton SOC -- 2023-04-16