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

FXTSoft v2.0 documentation

fxtsrc_addspec_compare help

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

← Back to Command Reference

NAME

fxtsrc_addspec_compare -- Compare fxtsrcproducts combined outputs with HEASoft addspec outputs.

USAGE

fxtsrc_addspec_compare ourspha=src_combined.pha addspecpha=addspec.pha outfile=summary.json
fxtsrc_addspec_compare ourspha=src.pha addspecpha=addspec.pha oursbak=src.bak addspecbak=addspec.bak oursrsp=src.rsp addspecrsp=addspec.rsp

DESCRIPTION

fxtsrc_addspec_compare writes a JSON comparison between fxtsrcproducts combined products and HEASoft addspec or ftaddrmf outputs. PHA and background spectra are compared by channel counts. Folded responses are expanded to dense matrices before comparison.

PARAMETER SUMMARY

ParameterDefault / valuesSummary
ourspharequiredfxtsrcproducts combined source PHA
addspecpharequiredHEASoft addspec source PHA to compare against
oursbakNONEfxtsrcproducts combined background PHA, or NONE
addspecbakrequired when oursbak is setHEASoft addspec background PHA
oursrspNONEfxtsrcproducts folded RSP, or NONE
addspecrsprequired when oursrsp is setHEASoft addspec/ftaddrmf folded RSP
outfileaddspec_compare_summary.jsonOutput JSON summary path
clobberyes/no; default yesOverwrite an existing output JSON file
case Free-form comparison label written to the summary
rsp_atol9.5367431640625e-07Absolute tolerance for dense folded RSP comparison
verbose1Logging verbosity: 0=warning/error, 1=normal info, 2=debug

PARAMETERS

ourspha
fxtsrcproducts combined source PHA. Required.
addspecpha
HEASoft addspec source PHA to compare against. Required.
oursbak
fxtsrcproducts combined background PHA, or NONE. Default: NONE.
addspecbak
HEASoft addspec background PHA. Required when oursbak is not NONE.
oursrsp
fxtsrcproducts folded RSP, or NONE. Default: NONE.
addspecrsp
HEASoft addspec or ftaddrmf folded RSP. Required when oursrsp is not NONE.
outfile
Output JSON summary path. Default: addspec_compare_summary.json.
clobber
Overwrite an existing output JSON file. Default: yes.
case
Free-form comparison label written to the summary. Default: empty string.
rsp_atol
Absolute tolerance for dense folded-RSP comparison. Default: 9.5367431640625e-7.

SEE ALSO

fxtsrcproducts, fxtrmfmerge, fxtarfmerge

Manual page updated

2026-11-04