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

FXTSoft v2.0 documentation

fxtarfmerge help

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

← Back to Command Reference

NAME

fxtarfmerge -- Merge multiple EP/FXT ARF response files

USAGE

fxtarfmerge arffiles=@arf.lst outfile=merged.arf specfiles=@pha.lst
fxtarfmerge arffiles=@arf.lst outfile=merged.arf weightmode=equal
fxtarfmerge arffiles=@arf.lst outfile=merged.arf weightmode=exposure specfiles=@pha.lst
fxtarfmerge arffiles=@arf.lst outfile=merged.arf weightmode=coverage specfiles=@pha.lst
fxtarfmerge arffiles=@arf_weights.lst outfile=merged.arf weightmode=weights

DESCRIPTION

fxtarfmerge combines compatible EP/FXT ARF files by applying one scalar weight to the SPECRESP column of each input file. The default weightmode=exposure reads EXPOSURE from the matching PHA files in the same order as the ARFs and normalizes those values before merging. When the input exposures differ, the command records a warning and the exposure-weighted result is intentional. Set weightmode=equal explicitly when equal weighting is scientifically intended; that mode does not require specfiles. The input ARFs must share the same physical ENERG_LO and ENERG_HI grid. Energy units are converted to keV and effective-area units to cm**2; files without these column units use those same defaults for compatibility. Non-finite, reversed, or unordered grids and effective areas are rejected. The merged output is written as an OGIP-style SPECRESP table with checksums through an atomic output transaction.

Learned PFILES values remain effective for parameters that are not supplied on the command line. If a local PFILES entry already stores weightmode=equal, that explicit learned choice is retained; pass weightmode=exposure to request exposure weighting explicitly.

Input ARFs must have matching telescope, instrument, detector, filter, data mode and grade selection when declared. Partially missing identity metadata is rejected. Cross-detector spectrum and response coaddition is available through the explicit fxtspecmerge sumtype=AREA workflow.

PARAMETER SUMMARY

ParameterDefault / valuesSummary
arffilesrequiredInput ARF files, comma-separated or @listfile
outfilerequiredOutput merged ARF file
weightmodeexposureWeight mode: exposure (default), equal, coverage, or weights
weightsrequired for weightmode=weights unless arffiles list has two columnsWeights, comma-separated or @listfile
specfilesrequired by default and for weightmode=exposure or coverageInput PHA files, in the same order as arffiles, used for exposure or coverage weights
clobberyesOverwrite existing output file (yes/no)
verbose1Logging verbosity: 0=warning/error, 1=normal info, 2=debug
modeqlQuery/learn mode

PARAMETERS

arffiles [string]
Input ARF files, comma-separated or provided through an @listfile. For weightmode=weights, an @listfile may contain two columns: file name and weight.

outfile [file name]
Name of the merged ARF output file.

(weightmode=exposure) [string]
Weighting method: exposure (default), equal, coverage, or weights. The default exposure mode requires specfiles; use weightmode=equal explicitly for an unweighted merge.

(weights=NONE) [string]
Explicit weights, comma-separated or provided through an @listfile. This parameter is required when weightmode=weights unless the arffiles @listfile contains two columns: file name and weight.

(specfiles=NONE) [string]
Input PHA spectra, listed in the same order as arffiles, used to read and normalize EXPOSURE weights or source-valid coverage weights from SRCGTI, GTI, or COVERAGE. GTI and COVERAGE.DT values are converted to seconds and overlapping GTI intervals are counted once. This parameter is required when weightmode=exposure or weightmode=coverage.

(clobber=yes) [boolean]
Overwrite an existing output file.

EXAMPLES

fxtarfmerge arffiles=@arf.lst outfile=merged.arf specfiles=@pha.lst
fxtarfmerge arffiles=@arf.lst outfile=merged.arf weightmode=equal
fxtarfmerge arffiles=@arf.lst outfile=merged.arf weightmode=exposure specfiles=@pha.lst
fxtarfmerge arffiles=@arf.lst outfile=merged.arf weightmode=coverage specfiles=@pha.lst
fxtarfmerge arffiles=@arf_weights.lst outfile=merged.arf weightmode=weights

Manual page updated

2026-11-04