![]() |
![]() |
|
2-D PSF à la carte
IntroductionAs of SAS v.10, a full 2-D parametrisation of the EPIC PSF ("2-D PSF" hereafter) as a function of instrument, energy, off-axis angle and azimuthal angle has been introduced, covering the whole field-of-view. It models the PSF spokes and the large-scale azimuthal variations, and includes an additional Gaussian core, which accounts for (at most) 2% of the enclosed energy flux in the MOS cameras. This version is not fully scientifically validated, and some areas of the parameter space have still to be explored and/or refined.The CCF constituents describing the 2-D PSF are XRT[123]_XPSF_0011.CCF and later. The CCF extension containing the parameters describing (part of) the analytical form of the PSF is ELLBETA_PARAMS. A full description of the 2-D PSF and its current limitations is provided in the CCF release note. It is assumed in the rest of the thread that the reader is familiar with the content of this document. How to extract the 2-D parameters from the CCFAs all CCF constituents, the 2-D PSF CCF is a FITS file. Its content can be accessed through standard FTOOLS. The easiest way to visualise the content of a FITS file is through the FITS file viewer fv. The following image shows the content of the ELLBETA_PARAMS extension of the XRT1_XPSF_0011.CCF file (the XRT2* and XRT3* files have the same structure) as visualised by fv.
Fig.1: fv view of the 2-D PSF CCF for XRT1. Left panel: the ELLBETA_PARAMS extension: Right panel: the content of the PARAMS column, once the function Expand under the Modify menu is activated. Legenda: ENERGY: the value E0 of the energy grid node; THETA: the value θ0 of the off-axis grid node; PHI: the value φ0 of the azimuthal angle grid node (currently the 2-D PSF parametrisation is not dependent on the azimuthal angle): PARAMS: the parameters describing the King+Gaussian function envelope of the 2-D PSF: 1: the King function core radius r0 (in arcseconds); 2: the King function power-law slope α; 3: the King function (also the Gaussian function) ellipticity ε; 4: the Gaussian Full Width Half Maximum (in arcseconds); 5: the ratio N between the Gaussian and the King function peak values Users are recommended to read the fv manual to learn how to use it. However, its Graphical User Interface is rather straightforward, once a file is read with the command: fv XRT1_XPSF_0011.CCF & FITS files can be also accessed through command-line driven FTOOLS. The following example shows how to display on the standard output the value of the power-law slope of the King function corresponding to the following input values: E0=100 eV; θ0=0.00261 radians; and φ0=0:
ftabpar fitsfile=XRT1_XPSF_0011.CCF+71 column=4 row=4 element=2
where 71 is the number of the ELLBETA_PARAMS extension in
the CCF, and the interpretation of the other parameters
in ftabpar
is left
as an exercise to the user. There are several different ways to achieve the same goal
(using other FTOOLS such as
fdump).
The method shown above is - as far as the writer's experience can tell - the most robust
to use in scripting.
#
How to generate a PSF image for arbitrary [E0, θ0, φ0]calviewSAS includes a specific GUI tool to visualise CCF constituents: calview. Fig.3 shows the main calview window, which appears upon (C-shell syntax):
setenv SAS_CCF ccf.cif
Fig.3: the main calview window. In Fig.4 we show two examples of the 2-D PSF generated through calview for different choices of the parameters E0 and θ0. Note that the input values in this example do not correspond to any of the predefined energy or off-axis angle grid nodes. calview interpolates between the closest points in the available grid.
Fig.4: Examples of 2-D PSF generated by calview. Left panel: Instrument=EMOS1, Energy=500, Theta=120; Right panel: Instrument=EMOS2, Energy=1750, Theta=600. In both cases: Accuracy Level=ELLBETA.
The PSF files produced by
calview
are in FITS format, and can therefore be saved on the local disk, or manipulated with
standard FTOOLS
or ds9 (indeed
calview
automatically runs
ds9
on them). However, these files are produced with a standard size, and cannot
be customised to reproduce the exact PSF corresponding to the position of
a specific source. psfgenThe command-line task psfgen has been specifically designed with this purpose in mind. By running:
psfgen energy=2500 theta=600 xsize=1000 ysize=1000 \ the user generates a 1000x1000 pixels FITS image mos1_psf.img corresponding to the MOS1 2-D PSF for E0=2500 eV and θ0=10 arcminutes (=600 arcseconds). By running: psfgen image=mos1.img energy="100 2000 4500" output=mos1_psf.img level=ELLBETA the user generate a FITS image mos1_psf.img corresponding to the linear combination (with equal weights) of MOS1 PSFs corresponding to E0=100, 2000, and 4500 eV and the MOS1 field-of-view imaged in mos1.img (this image having been created by xmmselect or evselect, and thus containing the correct DSS). By running:
psfgen image=mos2.img instrument='M2' ccf=ccf.cif energy="100" region="(DETX, DETY) IN circle(0, 0, 200)" \ the user generates a FITS image mos2_psf.img of the MOS2 PSF at 100eV corresponding to the circular region in detector coordinates: (DETX, DETY) IN circle(0, 0, 200) and rotated by 45 degrees. Users can find more information on the usage of psfgen in the on-line SAS documentation
Last Updated: 16 April 2010 |
| Copyright 2012© European Space Agency. All rights reserved. |