FXTSoft v2.0 documentation
fxtpsfmap help
Command help for fxtpsfmap in the FXTSoft v2.0 release.
NAME
fxtpsfmap -- Generate PSF size map from exposure map
USAGE
fxtpsfmap expmap=expmap.fits outfile=psfmap.fits energy=2.0 eef=0.5 filt=1
fxtpsfmap expmap.fits psfmap.fits 2.0 0.5 1
fxtpsfmap expmap=expmap.fits outfile=psfmap.fits energy=2.0 eef=0.5 (auto-detect filter from file)
DESCRIPTION
'fxtpsfmap' generates a PSF (Point Spread Function) size map based on an input exposure map. The tool calculates the PSF radius at each position in the exposure map, accounting for off-axis angle variations.
The tool reads calibration files (EEF - Encircled Energy Fraction) from CALDB for different emission lines, interpolates them to the specified energy, and creates a map showing the PSF size (in arcseconds) at each position for the given enclosed energy fraction.
This is useful for source detection, photometry aperture selection, and understanding spatial resolution variations across the field of view.
PARAMETER SUMMARY
| Parameter | Default / values | Summary |
|---|---|---|
expmap | required | Input exposure map file |
outfile | required | Output PSF map file |
energy | required | Effective energy in keV |
eef | required | Enclosed Energy Fraction (0 < eef <= 1) |
filt | -1 | Filter ID (0:open, 1:thin, 2:medium, 3:hole). If not specified, read from input file FILTER keyword |
clobber | yes | Overwrite existing output file (yes/no) |
verbose | 1 | Logging verbosity: 0=warning/error, 1=normal info, 2=debug |
mode | ql | Query/learn mode |
PARAMETERS
expmap [file name]
Input exposure map FITS file. The DETNAM and optionally FILTER keywords will be read from this file.
outfile [file name]
Output PSF map FITS file. The output map will have the same dimensions and WCS as the input exposure map, with pixel values representing the PSF radius in arcseconds.
energy [float]
Effective energy in keV for PSF calculation. The PSF size varies with energy.
eef [float]
Enclosed Energy Fraction (0 < eef ≤ 1). Defines the radius that contains this fraction of total energy. Common values: 0.5 (half-energy radius), 0.8, 0.9.
filt [integer, optional]
Filter ID (0:open, 1:thin, 2:medium, 3:hole). If not specified, the tool will attempt to read the FILTER keyword from the input exposure map file. If FILTER is missing or invalid, the tool will warn and default to thin (1).
clobber [yes/no]
Overwrite existing output file? Default is "yes".
EXAMPLES
Example 1: Auto-detect filter from exposure map file
>fxtpsfmap expmap=exposure.fits outfile=psfmap.fits energy=2.0 eef=0.5
Example 2: Specify filter manually
>fxtpsfmap expmap=exposure.fits outfile=psfmap.fits energy=2.0 eef=0.5 filt=1
Example 3: Using positional arguments
>fxtpsfmap exposure.fits psfmap.fits 2.0 0.5 1
Example 4: Different enclosed energy fractions
>fxtpsfmap expmap=exposure.fits outfile=psfmap_50.fits energy=1.5 eef=0.5
>fxtpsfmap expmap=exposure.fits outfile=psfmap_90.fits energy=1.5 eef=0.9
OUTPUT
The output PSF map is a FITS image with the same dimensions and coordinate system as the input exposure map. Each pixel value represents the PSF radius in arcseconds at that location for the specified energy and enclosed energy fraction.
The output header includes:
- BUNIT = 'arcsec' - Physical unit of the PSF size
- ECF = input eef value
- Copied keywords from input exposure map (DETNAM, FILTER, coordinate system, etc.)
- History records documenting the tool version and parameters used
NOTES
1. The PSF size varies with off-axis angle - sources near the optical axis have smaller PSFs than those at larger off-axis angles.
2. The PSF size also varies with energy - higher energies generally have smaller PSFs due to better focusing properties of the X-ray optics.
3. The effective optical axis position is determined from the exposure map by finding the pixel with maximum exposure.
4. The tool uses calibration files from CALDB containing measured PSFs at different energies and off-axis angles.
BUGS
SEE ALSO
fxtpsfgen, fxteefgen, fxtexpogen, fxtarfgen
Manual page updated
2026-11-04