FXTSoft v2.0 documentation
fxtlcmath help
Command help for fxtlcmath in the FXTSoft v2.0 release.
NAME
fxtlcmath -- Apply scaled two-input arithmetic to aligned FXT light curves.
USAGE
fxtlcmath infile1=first.lc infile2=second.lc outfile=sum.lc operation=add fxtlcmath infile1=source.lc infile2=background.lc outfile=net.lc operation=sub scale2=0.125 fxtlcmath infile1=first.lc infile2=second.lc outfile=ratio.lc operation=div scale1=1 scale2=1
DESCRIPTION
fxtlcmath requires identical row counts, TIME, TIMEDEL, and timing-reference metadata. It does not interpolate or rebin. Define A=scale1*RATE1 and B=scale2*RATE2; operation selects A+B, A-B, A*B, or A/B. Errors are propagated directly from the two independent input errors.
Addition and subtraction require convertible units and express the result in the first input unit. Multiplication and division write the derived unit. Blank units are dimensionless. A finite exact zero denominator produces paired RATE=NaN and ERROR=NaN; NANZERO records those bins and NANBINS records every invalid output bin.
When both inputs contain FRACEXP, the output uses the per-bin minimum. GTIs are intersected. A one-sided FRACEXP or GTI is an error. QUALITY is combined by bitwise OR, treating a missing input column as zero. The output RATE table is rebuilt with only the chainable light-curve columns.
PARAMETER SUMMARY
| Parameter | Type | Mode | Default / range | Purpose |
|---|---|---|---|---|
infile1 | s | q | required | First input RATE light curve |
infile2 | s | q | required | Second input RATE light curve |
outfile | s | q | required | Output arithmetic light curve |
operation | s | q | required | Arithmetic operation: add|sub|mul|div |
scale1 | r | h | 1.0 | Finite scale applied to infile1 RATE |
scale2 | r | h | 1.0 | Finite scale applied to infile2 RATE |
clobber | b | h | yes | Overwrite an existing output file |
verbose | i | h | 1; range 0 .. 2 | Logging verbosity |
mode | s | h | ql | Query/learn mode |
PARAMETERS
- infile1
- First input RATE light curve and the source of retained non-RATE extensions.
- infile2
- Second exactly aligned RATE light curve.
- outfile
- Output arithmetic light curve. It must differ from both input paths.
- operation
add,sub,mul, ordiv, case-insensitive.- scale1
- Finite dimensionless coefficient applied to the first rate. Default:
1.0. - scale2
- Finite dimensionless coefficient applied to the second rate. Default:
1.0. - clobber
- Overwrite an existing output. Default:
yes. - verbose
- Logging verbosity from 0 to 2. Default:
1. - mode
- HEASoft query/learn mode. Default:
ql.
The shared alignment reader checks TIMEPIXR in addition to TIME and TIMEDEL. Missing TIMEPIXR means 0.5; explicit values must lie between 0 and 1 and match across inputs. The strict interface also rejects equivalent bin boundaries encoded with different time labels; it never interpolates or rebins to reconcile them.
SEE ALSO
fxtlccorr, fxtsrcproducts, lcmath
Manual page updated
2026-11-04