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


psfgen (psfgen-1.7.1) [xmmsas_20230412_1735-21.0.0]


Example 6: create multiple PSFs

psfgen supplies a way to create multiple PSFs with different photon energies in a single call. This is useful when the user is interested in for example comparing different energy band PSFs at a particular position. To do this, supply energy with a list instead of a single value, e.g.:

psfgen image=source.fits coordtype=eqpos x=256.345 y=-34.209 output=source_psf.fits energy='600 2000 10000'

The file 'source_psf.fits' will contain 4 images, a PSF with energy 600eV, one at 2000eV, one at 10000eV and their linear combination. The combined PSF is stored in the first extension and the individual energy PSFs in the subsequent extensions. The PSFs can be viewed using the command ds9 'source_psf.fits[0]' 'source_psf.fits[1]' 'source_psf.fits[2]' 'source_psf.fits[3]'.



XMM-Newton SOC -- 2023-04-16