EP-FXT Science Data Center / Users Guide v2.0 · 2026-11-04

FXTSoft v2.0 documentation

fxtexpomerge help

Command help for fxtexpomerge in the FXTSoft v2.0 release.

← Back to Command Reference

NAME

fxtexpomerge -- Merge FXT exposure maps on a common sky grid, optionally generating them first.

USAGE

fxtexpomerge expfiles=@expo.lst outdir=merged ra=180 dec=0 width=2 height=2 pixsize=auto
fxtexpomerge evtfiles=@evt.lst mkffiles=@mkf.lst outdir=expo energy=1.5

DESCRIPTION

fxtexpomerge accepts two input paths. If expfiles are supplied, it merges those existing exposure maps onto a common sky grid. If evtfiles and mkffiles are supplied instead, it first generates one exposure map per event input with fxtexpogen, then merges the generated maps. The per-observation maps remain in outdir; the final product is prefix_merged.fits, or prefix_<tile>_merged.fits for a tiled output.

The output sky center and size default to auto and are inferred from the union of the exposure-map footprints. Any of ra, dec, width, and height may be supplied to override that part of the inferred geometry.

In exposure-map merge mode, every input must explicitly provide VIGNAPP. All values must agree; mixing vignetted and non-vignetted exposure maps is rejected before any output is created. Merged tiles propagate the common value, record merge provenance in FITS headers, and contain valid CHECKSUM and DATASUM cards.

Exposure inputs must use one unit convention: an unscaled time unit equivalent to s, or an unscaled area-time unit equivalent to cm**2*s. Scaled or unsupported units are rejected. The merge keeps only tiles with a non-zero input sky footprint; this sparse tile set is intentional, so downstream rate/net products must receive matching count and exposure tile IDs.

PARAMETER SUMMARY

ParameterDefault / valuesSummary
expfiles Input exposure maps, comma-separated or @listfile; enables merge mode.
evtfiles Input event files used to generate exposure maps before merging.
mkffiles Input MKF files used to generate exposure maps before merging.
outdirrequiredOutput directory.
raautoSky center RA in degrees, or auto to infer from input footprints.
decautoSky center Dec in degrees, or auto to infer from input footprints.
widthautoSky width in degrees, or auto to cover input footprints.
heightautoSky height in degrees, or auto to cover input footprints.
pixsizeautoPixel size in arcsec, or auto to infer from WCS.
tile_size2048Tile edge length in pixels.
expomaskfrac0.1Per-input fraction of center exposure; already merged maps are not masked.
prefixexpoOutput prefix for merged exposure tiles.
energy1.5Mono energy in keV for exposure generation.
clobberyesOverwrite existing output files.
verbose1Logging verbosity: 0=warning/error, 1=normal info, 2=debug
modeqlQuery/learn mode

PARAMETERS

expfiles
Input exposure maps, comma-separated or @listfile. When supplied, merge mode is used.
evtfiles, mkffiles
Input event and MKF files, comma-separated or @listfile. The command generates per-observation exposure maps and then merges them.
outdir
Output directory. Required.
ra, dec
Sky center in degrees, or auto to infer it from exposure-map footprints. Default: auto.
width, height
Sky size in degrees, or auto to cover the exposure-map footprints. Default: auto.
pixsize
Pixel size in arcsec, or auto to infer from exposure-map WCS. Default: auto.
tile_size
Tile edge length in pixels. Default: 2048.
expomaskfrac
For each input exposure map representing one observation, mask pixels below this fraction of that map's center exposure before summing. Maps with NMERGE>1, or MERGED without NMERGE, are kept without a second mask and produce a warning. Use <=0 to disable all exposure masks. Default: 0.1.
prefix
Output prefix for merged exposure tiles. Default: expo.
energy
Mono energy in keV used when generating exposure maps from events and MKF files. Default: 1.5.
clobber
Overwrite existing output files. Default: yes.

REPROJECTION

Exposure maps are reprojected as spatial exposure fields and weighted by the fractional output-pixel footprint before independent observations are summed. Integer-aligned grids are copied exactly. Other WCS transformations require the Python reproject package and fail without producing a mosaic when that backend is unavailable.

Rate products require an exposure tile for every requested count tile, matching TILEID, shape, WCS, and exposure unit. Extra exposure tiles outside the requested count footprint are ignored. Net-count products apply the same coverage, shape, WCS, and integrated-count unit checks to their count/background pairs; extra background tiles are ignored.

SEE ALSO

fxtobsmerge, fxtexpogen, fxtimage

Manual page updated

2026-11-04