FXTSoft v2.0 Command Reference
Select a command for its parameters and worked examples.
Installed public command index
fxtcheckfxtcoordfxttimecorrfxtparticleidentifyfxtbadpixfxthotpixfxtgtigenfxtgticorrfxtgradefxtootestfxtbaryfxtchainfxtarfgenfxtbkggenfxtbkgmapfxtcaldb-updatefxte2pifxteefgenfxtexpogenfxtimagefxtlccorrfxtlcmathfxtpicalfxtplotgradefxtpsf(deprecated)fxtpsfgenfxtpsfmapfxtpsfmdcopyfxtregmaskfillfxtrmfgenfxtsrcdetfxtsrcproductsfxttool-updatefxtarfmergefxtevtmergefxtexpomergefxtimgmergefxtobsmergefxtrmfmergefxtspecmerge
Core tasks
fxtcheck core · C++
Checks the HEADAS and CALDB environment, finds FXT event files in an observation directory, and lists them.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
indir | f | a | — | Input directory |
clobber | b | h | yes | Overwrite existing output file (if outfile!=NONE)?(yes/no) |
history | b | h | yes | Write HISTORY keywords in output file?(yes/no) |
chatter | i | h | 1 | Chatter Level |
fxtcoord core · C++
Adds or updates detector, focal-plane, and sky coordinates in an FXT event file.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
evtfile | f | a | — | Name of the input Event FITS file |
outfile | f | a | — | Name of the output Event FITS File or DEFAULT for standard name |
attfile | f | a | — | Name of the attitude Event FITS file |
teldef | f | h | CALDB | Name of FXT teldef calibration file or CALDB |
clobber | b | h | yes | Overwrite existing output file (if outfile!=NONE)?(yes/no) |
history | b | h | yes | Write HISTORY keywords in output file?(yes/no) |
chatter | i | h | 1 | Chatter Level |
fxttimecorr core · C++
Corrects TM-mode event times and detector rows, removes low-channel row noise, and reconciles event and attitude GTIs.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
evtfile | f | a | — | Name of the input Event FITS file |
outfile | f | a | DEFAULT | Name of the output Event FITS File or DEFAULT for standard name |
attfile | f | a | — | Name of the attitude Event FITS file |
teldef | f | h | CALDB | Name of FXT teldef calibration file or CALDB |
ra | r | a | -1 | Source RA (degrees) |
dec | r | a | -91 | Source DEC (degrees) |
readout | r | h | 236.8 | total readout time in Counts |
resolution | i | h | 3 | half position resolution (in pixel) |
waitrd | i | h | 6 | waiting time (in pixel) |
clobber | b | h | yes | Overwrite existing output file (if outfile!=NONE)?(yes/no) |
history | b | h | yes | Write HISTORY keywords in output file?(yes/no) |
chatter | i | h | 1 | Chatter Level |
fxtparticleidentify core · C++
Identifies and removes particle-induced tracks, showers, and instrumental-effect events in FXT data.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
evtfile | f | a | — | Name of the input Calibration Event FITS file |
outfile | f | a | — | Name of the output Event FITS File |
searchwidth | i | h | 3 | Search width of particle cluster |
bkgnum | i | h | 5 | Background threshold |
efrac | r | h | 0.3 | Minimum fraction of High Energy particles (>12keV) to all |
xlength | i | h | 11 | Minimum length along X caused by instrumental effect |
ylength | i | h | 11 | Minimum length along Y caused by instrumental effect |
particlefile | f | h | NONE | Name of the output particle-induced Event FITS File |
clobber | b | h | yes | Overwrite existing output file (if outfile!=NONE)?(yes/no) |
history | b | h | yes | Write HISTORY keywords in output file?(yes/no) |
chatter | i | h | 1 | Chatter Level |
fxtbadpix core · C++
Flags events from known bad pixels using the applicable FXT bad-pixel calibration.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
evtfile | f | a | — | Name of the input Event FITS file |
outfile | f | a | NONE | Name of the output Event FITS file or NONE to overwrite the input file |
groundbpfile | f | h | CALDB | Name of the input BADPIX file or CALDB or NONE for none |
boardbpfile | f | h | CALDB | Name of the input on-board BADPIX file or CALDB or NONE for none |
userbpfile | f | h | NONE | Name of the user BADPIX file or NONE for none |
outbpfile | f | h | NONE | Name of the output Bad Pixel file or DEFAULT to use standard name or NONE for none |
clobber | b | h | yes | Overwrite existing output file (if outfile!=NONE)?(yes/no) |
history | b | h | yes | Write HISTORY keywords in output file?(yes/no) |
chatter | i | h | 1 | Chatter Level |
fxthotpix core · C++
Detects and flags transient hot or flickering pixels in an FXT event file.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
evtfile | f | a | — | Name of the input Event FITS file |
outfile | f | a | NONE | Name of the output Event FITS File or NONE to overwrite the input file |
bpfile | f | h | NONE | Name of the input Bad Pixel file |
outhpfile | f | h | NONE | Name of the output Hot Pixel file or NONE for none or DEFAULT for standard name |
cellsize | i | h | 5 | Search cell size in pixels |
binsize | i | h | 2000 | Bin size (seconds) for count image generation |
clobber | b | h | yes | Overwrite existing output file (if outfile!=NONE)?(yes/no) |
history | b | h | yes | Write HISTORY keywords in output file?(yes/no) |
chatter | i | h | 1 | Chatter Level |
fxtgtigen core · C++
Builds FXT good-time intervals from housekeeping and configured screening criteria.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
mkffile | f | a | — | Name of the input MKF FITS file |
module | s | a | fxta | Name of the module of FXT (fxta/fxtb) |
usrgtifile | f | h | NONE | Name of the user input GTI file (FITS format) or NONE for none |
evtfile | f | h | NONE | Name of the event file (its GTI extension will be used) |
outfile | f | a | DEFAULT | Name of the output GTI Event FITS file or DEFAULT for standard name |
expr | s | a | DEFAULT | Selection Expression for attitude and instrument HK or DEFAULT for standard (from CALDB) |
hkrangefile | s | h | CALDB | Name of the input fits HKRANGE file or CALDB |
prefr | r | h | 0.5 | Pre-Time Interval factor [0,1] |
postfr | r | h | 0.5 | Post-Time Interval factor [0,1] |
clobber | b | h | yes | Overwrite existing output file (if outfile!=NONE)?(yes/no) |
history | b | h | yes | Write HISTORY keywords in output file?(yes/no) |
chatter | i | h | 1 | Chatter Level |
fxtgticorr core · C++
Refines good-time intervals using counts per CCD frame and writes a GTI FITS file.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
evtfile | f | a | — | Name of the event file |
gtifile | f | a | — | Name of the GTI Event FITS file |
outfile | f | a | — | Name of the output GTI Event FITS file |
maxnumber | r | a | 0 | Maximum counts/frame value for clean |
clobber | b | h | yes | Overwrite existing output file (if outfile!=NONE)?(yes/no) |
history | b | h | yes | Write HISTORY keywords in output file?(yes/no) |
chatter | i | h | 1 | Chatter Level |
fxtgrade core · C++
Reconstructs FXT event patterns and assigns event grades from split-pixel signals.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
evtfile | f | a | — | Name of the input Calibration Event FITS file |
outfile | f | a | DEFAULT | Name of the output Event FITS File or DEFAULT for standard name |
pithresh | i | h | 0 | Use event pixels with PI greater than or equal to the split threshold |
covfile | f | h | CALDB | Name of the input E2PI configure file or CALDB (default=CALDB) |
clobber | b | h | yes | Overwrite an existing output file (yes/no) |
history | b | h | yes | Write HISTORY keywords in output file?(yes/no) |
chatter | i | h | 1 | Chatter Level |
fxtootest core · C++
Evaluates FXT out-of-time events and writes the corresponding event flags.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
evtfile | f | a | — | Name of the input Event FITS file |
outfile | f | a | DEFAULT | Name of the output Event FITS File or DEFAULT for standard name |
attfile | f | a | — | Name of the attitude Event FITS file |
seed | i | h | 0 | Input seed for random number generator |
teldef | f | h | CALDB | Name of teldef calibration file or CALDB |
clobber | b | h | yes | Overwrite existing output file (if outfile!=NONE)?(yes/no) |
history | b | h | yes | Write HISTORY keywords in output file?(yes/no) |
chatter | i | h | 1 | Chatter Level |
fxtbary core · Python
Applies solar-system barycentric time correction to an FXT event file.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
evtfile | f | a | — | Name of the input Event FITS file |
outfile | f | a | — | Name of the output Event FITS file |
orbitfile | f | a | — | Name of the input orbit file |
ephemfile | f | a | — | The JPL Ephemeris filename |
ra | r | a | -1 | Source RA (degrees) |
dec | r | a | -91 | Source DEC (degrees) |
fxtchain core · Python
Runs the standard FXT observation reduction chain from raw inputs to calibrated products.
No public system parameter template is supplied for this command.
Utilities and analysis tools
fxtarfgen official
The task attempts to update the input PHA in place: the SPECTRUM header receives an ANCRFILE reference to the generated ARF. If the PHA is read-only, a warning is issued and ARF generation continues without changing the PHA.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
specfile | s | q | — | Input PHA is updated with ANCRFILE; writable input required |
expfile | s | h | — | The exposure map file |
outfile | s | q | — | The output arf file |
aspcor | i | h | 0 | Apply aspect weighting (0/1; merged inputs force 1) |
extend | i | h | 0 | the source is extend? yes:1,no:0 |
srcx | r | h | -1 | Source x in original 1-based physical SKY; paired with srcy |
srcy | r | h | -1 | Source y in original 1-based physical SKY; paired with srcx |
psfcor | i | h | 1 | Point-source PSF-weighted region/exposure correction; disabled for extend=1 |
psfmodel | s | h | dual-beta | PSF correction model: dual-beta (default) or legacy |
evtfile | s | h | — | The cleaned event file when aspcor=1 |
mkffile | s | h | — | The MKF attitude file when aspcor=1 |
weight | s | h | aspect | Attitude weighting mode: aspect or event |
thetabin | r | h | 0.05 | Theta histogram bin width in arcmin; <=0 means no binning |
regfile | s | h | — | Optional DS9/CIAO-style source region file |
clobber | b | h | yes | Overwrite existing output file? (yes/no) |
verbose | i | h | 1 | Logging verbosity |
arfcorr | s | h | auto | Time-dependent ARF factor: auto, required, or none |
respctx | s | h | — | Merged response context JSON; defaults to FITS RESPCTX |
mode | s | h | ql | Query/learn mode |
srcmodel | s | h | uniform | Extended-source brightness model: uniform, gaussian, beta, or image |
srcsigma | r | h | 0.0 | Gaussian sigma in arcsec (FWHM/2.35482); positive and finite |
srcrc | r | h | 0.0 | Beta core radius rc in arcsec (beta=2/3); positive and finite |
srccut | r | h | 5.0 | Cutoff multiple of sigma or rc (not arcsec); positive and finite |
srcmap | s | h | — | Relative source flux-per-pixel image with celestial WCS for srcmodel=image |
resp_pos | s | h | region | Point-source response position: region, centroid, or max |
fxtarfmerge official
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.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
arffiles | s | q | — | Input ARF files, comma-separated or @listfile |
outfile | s | q | — | Output merged ARF file |
weightmode | s | h | exposure | Weight mode: exposure (default), equal, coverage, or weights |
weights | s | h | NONE | Weights, comma-separated or @listfile |
specfiles | s | h | NONE | Input PHA files in ARF order (required for exposure or coverage weights) |
clobber | b | h | yes | Overwrite existing output file (yes/no) |
verbose | i | h | 1 | Logging verbosity |
mode | s | h | ql | Query/learn mode |
fxtbkggen official
For normmethod=imghe, first choose a source-free monitor region from the cleaned IMG events and extract an ungrouped, unsubtracted PI COUNTS PHA. Supply that spectrum with imgspecfile. Prefer a large valid region within DETX=3:382, DETY=3:382, excluding detected sources and bad/hot pixels or columns. The monitor region need not be the scientific source-extraction region. Do not select the lowest-count patch in the high-energy image. Ensure residual source/sky counts are negligible in the chosen band, including hard-source wings or diffuse emission. The PHA area metadata must describe the region actually retained after masks and detector-edge exclusions.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
infile | s | q | — | input the spectral file extracted from the cleaned frame store area events |
outfile | s | q | — | output file name of the instrumental background spectrum |
clobber | b | h | yes | Overwrite existing output file (yes/no) |
dateobs | s | h | AUTO | Missing DATE-OBS fallback (YYYY-MM-DDThh:mm:ss); AUTO reads the spectrum |
dateend | s | h | AUTO | Missing DATE-END fallback (YYYY-MM-DDThh:mm:ss); AUTO reads the spectrum |
grade | s | h | AUTO | Missing grade selection fallback (0:12); AUTO reads the spectrum |
datamode | s | h | AUTO | Missing DATAMODE fallback (FF); AUTO reads the spectrum |
normmethod | s | h | fsa | Particle normalization: fsa or imghe |
imgspecfile | s | h | NONE | PHA from a source-free cleaned FF IMG region; hidden unless normmethod=imghe |
hemin | r | h | 9.0 | IMGHE E2PI lower endpoint in keV; hidden unless normmethod=imghe |
hemax | r | h | 10.0 | IMGHE E2PI upper endpoint in keV exclusive; limited by the input E2PI table; hidden unless normmethod=imghe |
heareascal | s | h | AUTO | Effective particle monitor/template area fraction or AUTO; hidden unless normmethod=imghe |
heregion | s | h | NONE | Existing DS9 IMG extraction region for provenance only; hidden unless normmethod=imghe |
verbose | i | h | 1 | Logging verbosity |
mode | s | h | ql | Query/learn mode |
fxtbkgmap official
The command queries CALDB for the E2PI calibration appropriate to infile. It maps each energy endpoint through the E2PI rule ELOW <= energy < EHIGH, then integrates the PHA COUNTS for the explicit CHANNEL values from the lower endpoint PI through the channel immediately below the upper endpoint PI. Thus the requested energy interval is half-open: [emin, emax).
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
infile | s | q | — | Input instrumental background spectrum from fxtbkggen |
expfile | s | q | — | Input non-vignetted exposure map |
outfile | s | q | — | Output instrumental background map |
emin | r | h | 0.5 | Lower energy endpoint in keV |
emax | r | h | 10.0 | Upper energy endpoint in keV |
bkgimgpixels | s | h | AUTO | Reference detector area in pixels or AUTO from spectrum BACKSCAL |
clobber | b | h | yes | Overwrite existing output file |
verbose | i | h | 1 | Logging verbosity |
mode | s | h | ql | Query and learn mode |
fxtcaldb-update official
Synchronize, inspect, and verify the public EP/FXT CALDB through anonymous HTTPS, without an IHEP account, access token, or interactive login.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
command | s | q | install | CALDB updater command: install, status, check, verify, or rollback |
source | s | h | https://epfxt.ihep.ac.cn/downloads/caldb | Anonymous HTTPS base URL containing CALDB releases |
ref | s | h | latest | latest/current or stable CALDB release ID caldb-vX.Y-YYYYMMDD[-rN] |
install_root | s | h | — | Target CALDB_v2.0 installation root |
state_dir | s | h | — | Private updater state, staging, and backup directory |
validate | b | h | yes | Validate checksums and FITS files before installation |
dry_run | b | h | no | Resolve and plan the installation without changing files |
allow_downgrade | b | h | no | Allow an explicitly pinned older release (requires install_root) |
verbose | i | h | 1 | Logging verbosity |
mode | s | h | ql | Query/learn mode |
fxte2pi official
The task loads the default FXT E2PI calibration from CALDB and uses the same channel-bin convention as the legacy tool: an energy is assigned to the first channel whose ELOW/EHIGH interval contains that energy. Values outside the calibration range are reported as PI channel 0.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
energy | s | q | — | Input energy in keV; use comma-separated values for multiple energies |
verbose | i | h | 1 | Logging verbosity |
mode | s | h | ql | Query/learn mode |
fxteefgen official
'fxteefgen' generates EEF (Encircled Energy Fraction) curves based on detector, filter, position, and energy parameters. The EEF curve represents the fraction of energy contained within a given radius from the center of a point source, which is essential for aperture photometry and understanding PSF characteristics.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
det | s | q | — | detector (fxta/fxtb) |
filter | s | q | — | filter (thin/medium/hole) |
rawX | r | q | — | the rawX position of eef center |
rawY | r | q | — | the rawY position of eef center: |
energy | r | q | — | the energy of eef |
outfile | s | q | — | the name of the output eef file |
clobber | b | h | yes | Overwrite existing output file (yes/no) |
verbose | i | h | 1 | Logging verbosity |
mode | s | h | ql | Query/learn mode |
fxtevtmerge official
fxtevtmerge merges a list of FXT event files into one event file. It is also used as a stage helper by fxtobsmerge.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
evtfiles | s | q | — | Input event files, comma-separated or @listfile |
infile | s | h | NONE | Alias for evtfiles |
outfile | s | q | — | Output merged event FITS file |
clobber | b | h | yes | Overwrite existing output file |
verbose | i | h | 1 | Logging verbosity |
mode | s | h | ql | Query/learn mode |
fxtexpogen official
fxtexpogen generates exposure maps that account for bad pixels and columns, pointing variations, and telescope vignetting.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
evtfile | s | q | — | The input event file |
mkffile | s | q | — | The mkf file |
outfile | s | q | — | The output exposure map file |
energy | r | h | 1.5 | Average energy in keV; values outside CALDB vignetting nodes use the nearest endpoint |
specweight | i | h | 0 | Use spectrum-weighted exposure map (0/1) |
hires | i | h | 0 | Use high-resolution and/or enlarged-FOV sky projection (0/1) |
hirescale | r | h | 1.0 | Sky-pixel resolution scale; pixel size is divided by hirescale when hires=1 |
fovscale | r | h | 1.0 | Sky field-of-view scale; RA/Dec width is multiplied by fovscale when hires=1 |
projmethod | s | h | bilinear | High-resolution method: bilinear or polygon; noninteger hirescale uses polygon |
area_scale | b | h | no | Whether to apply scaling to the effective area (yes/no) |
edgecovermask | i | h | 0 | mask edge occluded range for merging |
clobber | b | h | yes | Overwrite existing output file (if outfile!=NONE)?(yes/no) |
use_clustering | b | h | yes | Use clustering to accelerate computation (yes/no) |
ra_threshold | r | h | 2.0 | RA/DEC angular distance threshold for clustering (arcsec) |
pa_threshold | r | h | 0.01 | Roll angle difference threshold for clustering (deg) |
specfile | s | h | — | The input spectrum file when specweight=1; use NONE to weight by event energies |
speccol | s | h | ENG | Energy column used when specweight=1 and specfile is empty |
emin | r | h | 0.3 | Lower energy limit in keV; samples outside vignetting nodes use the nearest endpoint |
emax | r | h | 10.0 | Upper energy limit in keV for spectrum weighting |
badpixsize | s | h | auto | RAW bad-pixel mask width: auto from recorded STATUS screening or explicit 3/5 |
verbose | i | h | 1 | Logging verbosity |
outmode | s | h | both | Compute/write exposure maps: both/vign/novign (case-insensitive) |
mode | s | h | ql | Query/learn mode |
fxtexpomerge official
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.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
outdir | s | q | — | Output directory |
evtfiles | s | h | NONE | Input event files used to generate exposure maps before merging |
mkffiles | s | h | NONE | Input MKF files used to generate exposure maps before merging |
expfiles | s | h | NONE | Input exposure map files to merge |
ra | s | h | auto | Output center RA in degrees or auto |
dec | s | h | auto | Output center Dec in degrees or auto |
width | s | h | auto | Output sky width in degrees or auto |
height | s | h | auto | Output sky height in degrees or auto |
pixsize | s | h | auto | Output pixel size in arcsec or auto |
tile_size | i | h | 2048 | Exposure tile size in pixels |
prefix | s | h | expo | Output filename prefix |
energy | r | h | 1.5 | Mono energy in keV for generated exposure maps |
expomaskfrac | r | h | 0.1 | Per-input fraction of center exposure; merged maps skip the mask; <=0 disables |
clobber | b | h | yes | Overwrite existing output files |
verbose | i | h | 1 | Logging verbosity |
mode | s | h | ql | Query/learn mode |
fxtimage official
fxtimage bins screened event files into images and provides image arithmetic, exposure correction, OoT subtraction, smoothing, and RGB displays. It accepts screened events or existing FITS images; event screening must be completed first, for example with xselect.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
mode | s | h | bin | Operation mode: bin, rate, oot, smooth, rgb, add, sub, mul, or div |
evtfile | s | h | — | Input event FITS file for mode=bin |
imgfile | s | h | — | Input image FITS file for mode=rate, oot, smooth, add, sub, mul, or div |
imgfile2 | s | h | — | Second input image FITS file for mode=add, sub, mul, or div |
expfile | s | h | — | Input exposure map for mode=rate |
ootfile | s | h | — | Input OoT image for mode=oot |
redfile | s | h | — | Input red-channel image for mode=rgb |
greenfile | s | h | — | Input green-channel image for mode=rgb |
bluefile | s | h | — | Input blue-channel image for mode=rgb |
outfile | s | q | — | Output file |
emin | r | h | — | Minimum energy in keV for mode=bin |
emax | r | h | — | Maximum energy in keV for mode=bin; inclusive for ENG or ENERGY |
xcol | s | h | X | Event X column for mode=bin |
ycol | s | h | Y | Event Y column for mode=bin |
energycol | s | h | auto | ENG, ENERGY, or PI; auto selects in that order |
xmin | r | h | 0.5 | Minimum inclusive X bin edge for mode=bin |
xmax | r | h | 600.5 | Maximum exclusive X bin edge for mode=bin |
ymin | r | h | 0.5 | Minimum inclusive Y bin edge for mode=bin |
ymax | r | h | 600.5 | Maximum exclusive Y bin edge for mode=bin |
binsize | r | h | 1.0 | Image bin size for mode=bin; bounds must span an integer number of bins |
ra | r | h | — | Output TAN center right ascension in degrees for mode=bin; pair with dec |
dec | r | h | — | Output TAN center declination in degrees for mode=bin; pair with ra |
pixsize | r | h | — | TAN projection scale in arcsec for mode=bin; inferred from event WCS when blank |
outcounts | s | h | NONE | Optional thresholded counts output for mode=rate |
outexp | s | h | NONE | Optional thresholded exposure output for mode=rate |
maskfile | s | h | NONE | Optional exposure mask output for mode=rate |
expfrac | r | h | 0.15 | Exposure cut as fraction of max exposure for mode=rate |
expmin | r | h | — | Absolute minimum exposure for mode=rate |
scale | r | h | 0.0023 | Scale factor for mode=oot |
ascale | r | h | 1.0 | Scale factor applied to imgfile in generic arithmetic |
bscale | r | h | 1.0 | Scale factor applied to imgfile2 in generic arithmetic |
outunit | s | h | AUTO | Output BUNIT policy: AUTO, NONE, or an explicit BUNIT label |
method | s | h | gauss | Smoothing method: gauss or box |
sigma | r | h | 2.0 | Gaussian sigma for mode=smooth |
boxsize | i | h | 3 | Boxcar size for mode=smooth |
vmin | r | h | — | RGB lower display cut |
vmax | r | h | — | RGB upper display cut |
clobber | b | h | yes | Overwrite existing output files (yes/no) |
verbose | i | h | 1 | Logging verbosity |
fxtimgmerge official
The tool reads multiple FXT image and exposure-map pairs, builds a common sky WCS that covers all input pointings, reprojects each pair to that grid, and sums them into merged image and exposure products.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
imgfiles | s | q | — | Input image files, comma-separated or @listfile |
expfiles | s | q | — | Input exposure map files, comma-separated or @listfile |
outimg | s | q | — | Output merged image FITS file |
outexp | s | q | — | Output merged exposure FITS file |
ra | r | h | -999.0 | Output image center RA in degrees; -999 = auto from inputs |
dec | r | h | -999.0 | Output image center Dec in degrees; -999 = auto from inputs |
xpix | i | h | 0 | Output image X dimension in pixels; 0 = auto from inputs |
ypix | i | h | 0 | Output image Y dimension in pixels; 0 = auto from inputs |
pixsize | r | h | 0.0 | Output pixel size in arcsec; 0 = use input file pixel scale |
padding | i | h | 5 | Extra padding pixels around merged sky footprint |
interp | s | h | bilinear | Compatibility setting; heterogeneous WCS uses exact area-overlap reprojection |
outrateimg | s | h | NONE | Optional output merged count-rate FITS file; use NONE to skip |
expmin | r | h | 1.0 | Minimum exposure threshold in input exposure maps; pixels below it are ignored |
clobber | b | h | yes | Overwrite existing output files (yes/no) |
verbose | i | h | 1 | Logging verbosity |
mode | s | h | ql | Query/learn mode |
fxtlccorr official
fxtlccorr requires aligned source and background bins. It converts background RATE and ERROR to the source RATE unit, calculates RATE_out = RATE_src - alpha * RATE_bkg, and propagates errors in quadrature. RATE units must be declared and compatible. alpha is a rate multiplier: with AUTO, the tool uses a unique rate-domain manifest match or BACKSCAL_src / BACKSCAL_bkg. Each RATE already includes its own exposure normalization, so EXPOSURE is not multiplied again.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
srcfile | s | q | — | Input source-region light curve |
bkgfile | s | q | — | Input background-region light curve |
outfile | s | q | — | Output background-corrected light curve |
alpha | s | h | AUTO | Background rate multiplier; AUTO uses manifest or BACKSCAL ratio |
errmethod | s | h | auto | Error method: auto uses trusted Poisson counts; input uses ERROR; gehrels requires trusted counts |
scaling_manifest | s | h | NONE | Manifest with matching source/background pair and rate_alpha |
clobber | b | h | yes | Overwrite an existing output file (yes/no) |
verbose | i | h | 1 | Logging verbosity |
mode | s | h | ql | Query/learn mode |
fxtlcmath official
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.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
infile1 | s | q | — | First input RATE light curve |
infile2 | s | q | — | Second input RATE light curve |
outfile | s | q | — | Output arithmetic light curve |
operation | s | q | — | 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 (yes/no) |
verbose | i | h | 1 | Logging verbosity |
mode | s | h | ql | Query/learn mode |
fxtobsmerge official
combine=none retains the default detector/filter groups. With combine=images, requested image families are also summed within each readout mode under merged/ff/, merged/pw/, or merged/tm/. With combine=spectra response=yes, each source's per-observation PHA, background, ARF and RMF bundles are combined under merged/MODE/srcproducts/ using fxtspecmerge checkfilter=no. Every input spectrum must still match its own responses, channel grid and selections. Cross-group physical/image regions require identical event WCS; use FK5 or ICRS regions when grids differ. combine=all combines only the requested image and spectral families and does not enable response extraction automatically.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
inputmode | s | h | obs | Input source mode: obs, events, images, mixed, or slew |
indirlist | s | h | NONE | Input observation directories, comma-separated or @listfile; use NONE for manual file lists |
evtfiles | s | h | NONE | Input event files, comma-separated or @listfile |
mkffiles | s | h | NONE | Input MKF attitude files, comma-separated or @listfile |
attfiles | s | h | NONE | Input attitude files, comma-separated or @listfile |
orbitfiles | s | h | NONE | Input orbit files, comma-separated or @listfile |
expr | s | h | DEFAULT | GTI screening expression for raw event/FSA preparation; DEFAULT uses the selected CALDB HK expression |
imgfiles | s | h | NONE | Input image files, comma-separated or @listfile |
expfiles | s | h | NONE | Input exposure-map files, comma-separated or @listfile |
expofiles | s | h | NONE | Alias for expfiles; input exposure-map files, comma-separated or @listfile |
autoexp | b | h | yes | Generate exposure maps from events and MKF files (yes/no) |
expenergy | r | h | 1.5 | Mono energy in keV used by fxtexpogen when autoexp=yes |
emin | r | h | — | Minimum image energy in keV; blank leaves this end unbounded |
emax | r | h | — | Maximum image energy in keV; ENG/ENERGY inclusive and PI uses CALDB E2PI endpoints |
outdir | s | q | — | Output run directory; final products are written under outdir/merged |
mode | s | h | auto | Merge mode: auto, small, large, or slew |
ra | s | h | auto | Output center RA in degrees, or auto to infer from input coverage |
dec | s | h | auto | Output center Dec in degrees, or auto to infer from input coverage |
width | s | h | auto | Output sky width in degrees, or auto to cover input footprint |
height | s | h | auto | Output sky height in degrees, or auto to cover input footprint |
pixsize | s | h | auto | Output pixel size in arcsec, or auto to infer from FITS WCS |
expomaskfrac | r | h | 0.1 | Per-input fraction of center exposure; merged maps skip the mask; <=0 disables |
bkgimgpixels | s | h | AUTO | AUTO derives the image-area denominator from particle-spectrum BACKSCAL; a positive number overrides it |
bkgemin | r | h | 0.5 | Particle-background minimum energy in keV (inclusive) |
bkgemax | r | h | 10.0 | Particle-background maximum energy in keV (exclusive) |
normmethod | s | h | fsa | Merged particle-spectrum normalization: fsa or imghe |
heregion | s | h | NONE | Source-free FK5/ICRS IMG monitor region for merged high-energy normalization |
hemin | r | h | 9.0 | IMGHE E2PI normalization lower endpoint in keV |
hemax | r | h | 10.0 | IMGHE E2PI normalization upper endpoint in keV (exclusive); limited by the input E2PI table |
products | s | h | all | Requested product families: all or comma-separated reproject,evt,img,expo,bkg,rate,response |
combine | s | h | none | Cross-group aggregation: none, images, spectra, or all; default none |
datamodes | s | h | all | Datamodes to include in directory or grouped file discovery: all or comma-separated FF,PW,TM,DF,DT,DS; DF selects the FF group |
forcechain | b | h | no | Rerun the installed fxtchain to exitstage=2 from raw UF inputs (yes/no); requires inputmode=obs with indirlist |
resume | b | h | no | Reuse completed manifest stages when hashes and parameters match (yes/no) |
dryrun | b | h | no | Write a separate planned-output JSON without creating science products (yes/no) |
manifest | s | h | auto | Manifest path, or auto to write fxtobsmerge_manifest.json in outdir |
mergepolicy | s | h | strict | Compatibility policy for stage gates: strict, warn, or force |
caldb_policy | s | h | strict | CALDB provenance policy for resume: strict, warn, or ignore |
keepintermediate | b | h | yes | Keep stage intermediate products (yes/no) |
validate | b | h | yes | Run built-in product validation and record results (yes/no) |
response | b | h | no | Run fxtsrcproducts source-product orchestration after event merge (yes/no) |
sources | s | h | — | JSON source list for fxtsrcproducts; required when response=yes and srcregion=NONE |
spectral_mode | s | h | stack_then_merge | Spectral response strategy: stack_then_merge only (per-observation responses; compatible stacking or joint fit) |
srcregion | s | h | NONE | Source region for optional spectral stack products |
bkgregion | s | h | NONE | Background region for optional spectral stack products |
psfcor | i | h | 1 | PSF correction switch for optional point-source ARF generation |
clobber | b | h | yes | Overwrite existing output files (yes/no) |
verbose | i | h | 1 | Logging verbosity |
fxtpical official
fxtpical assigns calibrated event energies and PI channels to FF, PW, and TM data, correcting for position-dependent gain, Charge Transfer Inefficiency (CTI), and changes in gain with time.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
evtfile | s | q | — | The input evt file |
outfile | s | q | — | The output evt file |
clobber | b | h | yes | Overwrite existing output file (if outfile!=NONE)?(yes/no) |
gain_extrapolation | s | h | caldb | Gain/CTI extrapolation outside CALDB date nodes (caldb/hold/linear) |
verbose | i | h | 1 | Logging verbosity |
mode | s | h | ql | Query/learn mode |
fxtplotgrade official
Plot event grade fractions, selecting the reference from PICALVER or retained processing history, and otherwise using T18V2; PNG output is saved only when an output filename is supplied.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
evtfile | s | q | — | The input event file |
outfile | s | h | NONE | Optional output PNG file (NONE disables saving; specify each run) |
plotbins | i | h | 100 | Maximum number of equal-count energy bins |
show | b | h | yes | Display the plot window?(yes/no) |
clobber | b | h | yes | Overwrite existing output file (if outfile!=NONE)?(yes/no) |
verbose | i | h | 1 | Logging verbosity |
mode | s | h | ql | Query/learn mode |
fxtpsfgen official
'fxtpsfgen' generates PSF (Point Spread Function) files based on detector, filter, position, and energy parameters. The PSF characterizes how a point source of light spreads out in the detector due to the telescope optics and detector response.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
det | s | q | — | detector (fxta/fxtb) |
filter | s | q | — | filter (thin/medium/hole) |
rawX | r | q | — | the rawX position of psf center |
rawY | r | q | — | the rawY position of psf center |
energy | r | q | — | the energy of psf |
outfile | s | q | — | the name of the output psf image file |
clobber | b | h | yes | Overwrite existing output file (yes/no) |
verbose | i | h | 1 | Logging verbosity |
mode | s | h | ql | Query/learn mode |
infile | s | h | NONE | Input image/FITS file for SKY-coordinate PSF generation |
ra | r | h | — | Sky right ascension in degrees; provide with dec |
dec | r | h | — | Sky declination in degrees; provide with ra |
psfcontext | s | h | NONE | Frozen response context JSON for COMPOSITE PSF generation |
imageid | s | h | NONE | COMPOSITE image identifier; valid only with psfcontext |
fxtpsfmap official
'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.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
expmap | s | q | — | Input exposure map file |
outfile | s | q | — | Output PSF map file |
energy | r | q | — | Effective energy in keV |
eef | r | q | — | Enclosed Energy Fraction (0 < eef <= 1) |
filt | i | h | -1 | Filter ID (0:open, 1:thin, 2:medium, 3:hole). If not specified, read from input file FILTER keyword |
clobber | b | h | yes | Overwrite existing output file (yes/no) |
verbose | i | h | 1 | Logging verbosity |
mode | s | h | ql | Query/learn mode |
fxtpsfmdcopy official
fxtpsfmdcopy is the upgraded replacement for the deprecated fxtpsf command. Use fxtpsfmdcopy in new scripts; the fxtpsf compatibility name will be removed in a future release.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
outdir | s | h | . | Output directory for copied PSF metadata files |
psffile | s | h | auto | Input PSF calibration file or auto |
eeffile | s | h | auto | Input EEF calibration file or auto |
manifest | s | h | NONE | Output JSON manifest path; NONE skips output |
clobber | b | h | no | Overwrite existing output files |
verbose | i | h | 1 | Logging verbosity |
mode | s | h | ql | Query/learn mode |
model | s | h | 2beta | PSF model family: 2beta or legacy |
det | s | h | all | Detector selection: all/fxta/fxtb |
fxtregmaskfill official
fxtregmaskfill creates source or exclusion masks from image-coordinate or WCS-aware sky-coordinate regions and writes masks on the same pixel grid as the input image. It accepts DS9 region files, fxtsrcdet-style FITS source tables, or JSON source lists.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
imgfile | s | q | — | Input image FITS file |
srcfile | s | q | — | Input DS9 image region file, FITS source table, or sources.json |
maskout | s | q | — | Output source mask FITS; 1=source/hole, 0=keep |
validmaskout | s | q | — | Output valid analysis mask FITS; 1=valid, 0=source/outside |
basemask | s | h | NONE | Optional input exposure/FOV mask; nonzero pixels are eligible |
maskscale | r | h | 1.0 | Multiplicative scale applied to source-region radii |
fill | b | h | no | Write filled image outfile (yes/no) |
outfile | s | h | NONE | Filled output image when fill=yes |
method | s | h | constant | Fill method: constant, nan, dist, poisson, global, poly, or bilint |
fillvalue | r | h | 0.0 | Constant fill value when method=constant |
bkginner | r | h | 1.0 | Inner local-background radius scale for dist/poisson/poly |
bkgouter | r | h | 2.5 | Outer local-background radius scale for dist/poisson/poly |
randseed | i | h | 0 | Random seed for dist/poisson/global; 0 uses non-deterministic seed |
manifest | s | h | fxtregmaskfill_manifest.json | Output JSON manifest path, or NONE to skip |
clobber | b | h | yes | Overwrite existing output files (yes/no) |
verbose | i | h | 1 | Logging verbosity |
mode | s | h | ql | Query/learn mode |
fxtrmfgen official
fxtrmfgen generates an OGIP-style response matrix file for EP-FXT spectral analysis. The response matrix maps photon energy to detector channel and is used by XSPEC together with an ARF.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
specfile | s | q | — | Input PHA is updated with RESPFILE; writable input required |
outfile | s | q | — | The output response file |
rmfmode | s | h | quarterly | RMF source mode (quarterly/nodes) |
clobber | b | h | yes | Overwrite existing output file (if outfile!=NONE)?(yes/no) |
verbose | i | h | 1 | Logging verbosity |
mode | s | h | ql | Query/learn mode |
fxtrmfmerge official
fxtrmfmerge combines compatible EP/FXT RMF files using scalar weights, or energy-dependent ARF-times-exposure weights in weightmode=arf_exposure. In inputmode=spec, the task uses each PHA spectrum observation time and detector information to resolve the corresponding CALDB RMF with the same rules used by fxtrmfgen. In inputmode=rmf, the task merges explicitly supplied RMF files. MATRIX and EBOUNDS energy columns are normalized to keV (missing units default to keV). The input channel grid, finite non-negative MATRIX values, sparse group spans, and DETCHANS consistency are validated before an OGIP-classified, checksummed RMF is published atomically. CALDB-selected MATRIX extension numbers are retained.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
inputmode | s | h | spec | Input mode: spec or rmf |
specfiles | s | h | NONE | Input spectrum files, comma-separated or @listfile |
rmffiles | s | h | NONE | Input RMF files, comma-separated or @listfile |
outfile | s | q | — | Output merged RMF file |
weightmode | s | h | exposure | Weight mode: exposure, coverage, equal, weights, or arf_exposure |
weights | s | h | NONE | Weights, comma-separated or @listfile |
arffiles | s | h | NONE | ARF files used by weightmode=arf_exposure |
exposures | s | h | NONE | Exposure weights used by weightmode=arf_exposure |
allow_scalar | b | h | no | Allow diagnostic scalar averaging of distinct RMFs (not for science fitting) |
caldb_root | s | h | NONE | Optional CALDB root override |
caldb_config | s | h | NONE | Optional CALDB config override |
clobber | b | h | yes | Overwrite existing output file (yes/no) |
verbose | i | h | 1 | Logging verbosity |
mode | s | h | ql | Query/learn mode |
fxtspecmerge official
fxtspecmerge combines compatible OGIP PHA spectra on the same CHANNEL grid. It is intended for source spectra, FSA count spectra, and the floating-point background spectra produced by fxtbkggen. Input files are never changed. The output retains floating-point COUNTS; explicit STAT_ERR columns are propagated using independent-input variance addition. Shared template, calibration, and other cross-channel covariance is not represented by the marginal STAT_ERR column and is recorded in HISTORY rather than claimed to be removed. The OGIP POISSERR=T, STAT_ERR=0 keyword-only placeholder is accepted; a true STAT_ERR column or nonzero error keyword with POISSERR=T is rejected.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
infiles | s | q | — | Input PHA files, space/comma-separated or @listfile |
sumtype | s | h | TIME | Spectrum combination mode: TIME or AREA |
outfile | s | q | — | Merged PHA output; prefix with ! to overwrite |
backfiles | s | h | NONE | Optional ordered background PHA list, NONE, or % for PHA BACKFILE |
arffiles | s | h | NONE | Optional ordered ARF list, NONE, or % for PHA ANCRFILE |
rmffiles | s | h | NONE | Optional ordered RMF/RSP list, NONE, or % for PHA RESPFILE |
clobber | b | h | no | Overwrite existing output files (yes/no) |
bkgmethod | s | h | ASCA | Background combination: AUTO, TIME, ASCA, COUNTS, or WEIGHTED |
checkfilter | b | h | yes | Require matching FILTER across input spectra |
verbose | i | h | 1 | Logging verbosity |
mode | s | h | ql | Query and learn mode |
fxtsrcdet official
detmethod selects the source-detection method. The default wavdetect value runs the multiscale wavelet path; mldetect runs likelihood fitting. The aliases ciao, erosita, and esass select the corresponding methods.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
detmethod | s | h | wavdetect | Detection backend: wavdetect or mldetect; aliases ciao erosita and esass |
imgfile | s | h | — | Input counts image FITS file |
expofile | s | h | NONE | Input exposure map FITS file or NONE |
infile | f | a | — | CIAO-style input counts image FITS file |
expfile | f | h | — | CIAO-style input exposure map FITS file; blank means none |
outfile | f | a | — | Output source-table FITS file |
regfile | f | h | — | Output DS9 region file |
sigfile | s | h | . | Output significance-map FITS file |
scellfile | f | a | — | Output source-cell label image FITS file; blank means none |
imagefile | f | a | — | Output reconstructed source image FITS file; blank means none |
defnbkgfile | f | a | — | Output normalized background FITS file; blank means none |
psffile | f | a | — | Optional PSF-size map from fxtpsfmap; blank means none. Main counts/rates are not EEF-corrected. |
extoutfile | s | h | NONE | Optional extended-source table FITS file or NONE |
extregfile | s | h | NONE | Optional extended-source DS9 region file or NONE |
bkgfile | s | h | NONE | Optional background-map FITS file or NONE |
bkginput | f | h | — | CIAO-style input background map; blank means none |
maskfile | s | h | NONE | Optional detection-mask FITS file or NONE |
boxlist | s | h | AUTO | AUTO or FITS candidates; X/Y zero-based; wavdetect SRCDET X/Y and X_IMA/Y_IMA one-based; priority X/Y then X_IMA/Y_IMA then RA/DEC |
autopipeline | s | h | esass | AUTO pipeline: esass or fxtsrcdet compatibility; dual images require esass |
boxsize | i | h | 4 | ERBOX half-size in image pixels |
boxnruns | i | h | 3 | ERBOX compression runs |
boxlikemin | r | h | 6.0 | Minimum ERBOX detection likelihood |
boxmaskfrac | r | h | 0.55 | Minimum valid ERBOX aperture fraction |
bkgscut | r | h | 1e-4 | ERBACKMAP PSF surface cut |
bkgmlmin | r | h | 6.0 | Minimum likelihood for ERBACKMAP source masking |
bkgmaxcut | r | h | 0.5 | Minimum retained detector fraction |
bkgfitmethod | s | h | smooth | ERBACKMAP fit method: smooth or spline |
bkgsnr | r | h | 40.0 | ERBACKMAP adaptive-smoothing target SNR |
bkgnfitrun | i | h | 3 | Spline clipping iterations |
bkgexcesssigma | r | h | 1000.0 | Spline residual clipping threshold in sigma |
bkgnsplinenodes | i | h | 36 | Spline spatial bins per dimension |
bkgdegree | i | h | 2 | Spline degree |
bkgsmoothflag | b | h | yes | Use a smoothing spline |
bkgsmooth | r | h | 30.0 | Initial ERBACKMAP smoothing sigma or spline smoothing value |
localboxoutfile | s | h | NONE | Optional single local SRCLIST path; requires eSASS boxlist=AUTO bkgfile=AUTO |
boxoutfile | s | h | NONE | Optional single map SRCLIST path or NONE |
diagnosticfile | s | h | NONE | Optional single FXT diagnostics path for autopipeline=esass |
bkgoutfile | s | h | NONE | Optional background FITS: A then B paths or . for module names |
cheesemask | s | h | NONE | Optional cheese-mask FITS: A then B paths or . for module names |
srcmap | s | h | NONE | Optional fitted source model FITS: A then B paths or . for module names |
residfile | s | h | NONE | Optional residual FITS: A then B paths or . for module names |
psfmodel | s | h | CALDB | PSF model: CALDB or GAUSS or COMPOSITE (mldetect point sources only) |
psfcontext | s | h | NONE | Frozen imaging-response context JSON for COMPOSITE |
energy | r | h | 1000.0 | PSF energy in eV |
detnam | s | h | AUTO | Detector name or AUTO |
filter | s | h | AUTO | Filter name or AUTO |
psfinterp | s | h | nearest | FXT CALDB PSF interpolation: nearest or linear with boundary clamping |
psfsigma | r | h | 2.0 | Gaussian PSF sigma in image pixels |
scales | s | a | 2.0 4.0 | Detection scales in image pixels; CIAO whitespace comma colon and semicolon separators are accepted |
sigthresh | r | h | 1e-06 | Detection significance threshold |
expmin | r | h | 0.0 | Optional absolute exposure floor; 0 disables this FXT-only filter |
corrtype | s | h | mexhat | Detection kernel type: mexhat; gauss is incompatible with required significance calibration |
bkgradius | r | h | 2.5 | Background annulus inner-radius factor |
falsesrc | r | h | -1.0 | Allowed false sources per scale; <=0 disables adaptive thresholding |
bkgsigthresh | r | h | 0.001 | Background-cleansing threshold; sigma if >1 else probability |
sigmamode | s | h | ciao | Sigma calculation mode: ciao keeps wavdetect-aligned behavior; effarea applies the experimental effective-area correction |
expthresh | r | h | 0.1 | CIAO-style relative exposure threshold after exposure-map normalization |
ellsigma | r | h | 3.0 | Ellipse scaling for fxtsrcdet source-pixel R/ROTANG output |
maxiter | i | h | 2 | Maximum source-cleansing iterations (positive integer) |
iterstop | r | h | 0.0001 | Fractional stopping threshold for cleansing-mask changes |
likemin | r | h | 8.0 | Minimum per-source detection likelihood |
extlikemin | r | h | 6.0 | Minimum extent likelihood |
fitposition | b | h | yes | Fit subpixel source positions after boxlist coordinates are converted to internal zero-based pixels; no keeps converted positions fixed and fits rates only |
fitextent | b | h | yes | Test extent; no fixes external EXT and disables twostage |
extentmodel | s | h | beta | Extent model: beta or gauss/gaussian |
extmin | r | h | 1.5 | Minimum tested extent in image pixels |
extmax | r | h | 40.0 | Maximum tested extent in image pixels |
nmaxfit | i | h | 3 | Maximum simultaneous sources per fit cluster |
multrad | r | h | 15.0 | Neighbour control; POINTING preserves upstream scutrad path |
cutrad | r | h | 15.0 | Fit radius; below 1 upstream passes multrad to EEF radius |
fitbackend | s | h | mldetect | Fit backend: mldetect likelihood core (based on eROSITA/eSASS ermldet 1.35); GPL-3.0-or-later Python core or legacy regression; dual images require mldetect |
fitmaxiter | i | h | 50 | Maximum mldetect optimizer iterations |
nmulsou | i | h | 2 | Maximum split components per input source |
twostage | b | h | yes | Second-stage split after extent trigger; disabled when fitextent=no |
splitthresh | b | h | no | Apply a source-splitting threshold; requires nmulsou >= 2 |
splitthreshval | r | h | 30.0 | Source-splitting threshold value |
splitthreshcol | s | h | LIKE | Threshold column: explicit LIKE RATE or SCTS; no score fallback |
psfthreshold | r | h | 0.15 | Minimum in-mask PSF fraction |
maskthreshold | r | h | 0.0 | Minimum valid fraction for FXT fit and wide source-map regions |
extlike_slope | s | h | 0,0 | Extent-likelihood intercept and slope |
srccoverage | r | h | 0.8 | Minimum valid-pixel fraction in the source support |
bkgcoverage | r | h | 0.6 | Minimum valid-pixel fraction in the background support |
residualsigthresh | r | h | 3.5 | Residual-pass detection threshold; sigma if >1 else one-sided probability |
residualfalsesrc | r | h | -1.0 | Residual-pass false-source rate per scale; <=0 disables adaptive thresholding |
residualscalemax | r | h | 3.0 | Maximum scale used by the residual weak-source pass |
fxtrecovery | b | h | no | Enable fxtsrcdet-only weak-source recovery passes outside CIAO wavdetect semantics (yes/no) |
srcclass | s | h | all | Primary source-table class: point, extended, or all |
extentcheck | b | h | no | Enable srcextent-style extended-source post-check (yes/no) |
extentthresh | r | h | 5.0 | Minimum extent significance for confirmed extended sources |
extentmincounts | i | h | 15 | Minimum source counts for extent classification |
extentpsfblur | r | h | 0.0 | Additional PSF sigma blur in image pixels for extent classification |
exptime | r | h | 0.0 | Source livetime for detection/background normalization; rates use count-weighted expfile seconds when supplied |
bkgtime | r | h | 0.0 | Livetime in seconds for a predetermined background map; 0 means match exposure |
outputinfix | f | h | — | Optional output filename infix |
sigcalfile | f | h | AUTO | Required significance calibration file; AUTO and CALDB require FXT CALDB SRCDETSIGCAL, CIAO explicitly selects wtsimresult.fits, NONE is rejected |
interdir | f | h | . | Accepted for CIAO wavdetect compatibility; no intermediate stack is written |
bkgerrinput | b | h | no | CIAO-style switch; yes reads errors from DataModel block 2 (normally FITS extension 1) |
log | b | h | no | Write fxtsrcdet.log as well as stdout (yes/no) |
verbose | i | h | 1 | Logging verbosity: 0=warning/error; 1=normal info; 2=debug |
clobber | b | h | no | Overwrite existing outputs (yes/no) |
mode | s | h | ql | Query/learn mode |
fxtsrcproducts official
fxtsrcproducts creates spectra, light curves, images, and response products from merged FXT events and their response information. Use a TOML configuration to specify the workflow, or the parameter interface when config=NONE or is omitted. Compatible completed stages can be reused with resume=yes.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
evtfile | s | q | — | Context-aware merged event file used as the user-facing container |
rspctx | s | q | — | Response context JSON produced from the context-aware event merge |
sources | s | q | — | JSON source specification with srcregion and optional bkgregion |
config | s | h | NONE | Optional TOML workflow configuration; NONE keeps the legacy parameter interface |
outdir | s | q | — | Output source-products directory |
response | b | h | yes | Run per-atom RMF/ARF command generation after xselect products (yes/no) |
response_mode | s | h | context_merged | Response mode; context_merged is required for merged events |
expfiles | s | h | NONE | Optional exposure-map files, comma-separated or @listfile, matched to response atoms |
stack | s | h | auto | Stack mode: yes/auto, jointfit, combined, or no/none |
fallback | s | h | jointfit | Fallback when response compatibility fails: jointfit or fail |
datamodes | s | h | FF,PW | Comma-separated datamodes to process; MVP supports FF,PW and skips TM |
coverage_mode | s | h | auto | Source coverage mode: auto, attitude, exposure, or obs_gti |
coverage_tstep | r | h | 1.0 | Maximum source-coverage attitude sampling step in seconds |
coverage_accuracy | s | h | standard | Spatial coverage sampling accuracy: fast, standard, or precise |
coverage_grid | i | h | 16 | Spatial coverage grid samples per axis |
coverage_minfrac | r | h | 0.01 | Minimum valid area fraction for a time sample to enter SRCGTI |
coverage_warnfrac | r | h | 0.1 | Warn when mean valid area fraction is below this value |
arf_mode | s | h | auto | ARF mode: auto, aspect, exposure, or none |
arf_weight | s | h | aspect | Aspect ARF weighting mode: aspect or event |
arf_thetabin | r | h | 0.05 | Aspect ARF theta-bin width in arcmin |
backscal_policy | s | h | source_effarea | BACKSCAL policy: source_effarea or region_area |
background_policy | s | h | local_sky | Background policy: local_sky or none |
background_region | s | h | auto | Background region mode: auto, manual, or none |
bkg_inner_factor | r | h | 2.5 | Inner radius factor for auto annulus background regions |
bkg_outer_factor | r | h | 5.0 | Outer radius factor for auto annulus background regions |
bkg_min_area_ratio | r | h | 5.0 | Minimum auto-background area divided by source area |
lc_binsizes | s | h | 1 | Comma-separated light-curve bin sizes in seconds; first bin keeps the legacy .lc name |
bexpscale | r | h | 1000.0 | Compatibility value 1000 only; background exposure is not rescaled |
products | s | h | spectrum,curve,image | Comma-separated xselect products to extract: spectrum, curve, image |
response_kernel | s | h | xselect | Extraction kernel; xselect is used for PHA/LC/image extraction |
xspec_smoke | b | h | yes | Write XSPEC joint-fit smoke-test script (yes/no) |
xspec_run | b | h | no | Run XSPEC smoke test after writing script (yes/no) |
xspec_run_mode | s | h | script_tty | XSPEC run mode: stdin, atscript, or script_tty |
subtract_background | b | h | no | Write background-subtracted light curves after response generation (yes/no) |
group_min_counts | i | h | 0 | Group spectra to this minimum count threshold; 0 disables grouping |
resume | b | h | no | Reuse successful compatible stage manifests and outputs (yes/no) |
dryrun | b | h | no | Write scripts and manifest without running xselect/response commands (yes/no) |
keepintermediate | b | h | yes | Keep rebuildable XSELECT scripts and source/background GTIs (yes/no); dryrun always keeps them |
clobber | b | h | yes | Overwrite existing output files (yes/no) |
verbose | i | h | 1 | Logging verbosity |
bkgmethod | s | h | asca | Background combination method: auto, time, asca, counts, or weighted |
lc_errmethod | s | h | auto | Light-curve error method: auto, input, or gehrels |
mode | s | h | ql | Query/learn mode |
fxttool-update official
Check, install, validate, or roll back FXT software components over anonymous HTTPS.
| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
command | s | q | install | Updater command: install, status, check, verify, or rollback |
component | s | h | caldb_tools | Component to update |
source | s | h | https://epfxt.ihep.ac.cn/downloads/fxttools | Anonymous HTTPS release repository |
ref | s | h | latest | Release identifier or latest |
install_root | s | h | — | Installed platform prefix (HEASoft or standalone FXT); defaults to HEADAS |
layout | s | h | auto | Installation layout; standard or single requires install_root |
state_dir | s | h | — | Private updater state directory |
validate | b | h | yes | Validate release metadata and installed files |
dry_run | b | h | no | Plan without changing files |
verbose | i | h | 1 | Logging verbosity: 0 warnings/errors; 1 concise operations; 2 diagnostics |
mode | s | h | ql | Query/learn mode |
Deprecated compatibility aliases
fxtpsf deprecated alias
Deprecated compatibility entry. fxtpsf is kept temporarily for existing scripts and will be removed in a future release. Use the upgraded replacement fxtpsfmdcopy for all new work.
fxtpsfmdcopy. It emits a deprecation warning on every invocation. Deprecated compatibility alias; will be removed in a future release. Use fxtpsfmdcopy.| Parameter | Type | Mode | Default | Description |
|---|---|---|---|---|
outdir | s | h | . | Output directory for copied PSF metadata files |
psffile | s | h | auto | Input PSF calibration file or auto |
eeffile | s | h | auto | Input EEF calibration file or auto |
manifest | s | h | NONE | Output JSON manifest path; NONE skips output |
clobber | b | h | no | Overwrite existing output files |
verbose | i | h | 1 | Logging verbosity |
mode | s | h | ql | Query/learn mode |
model | s | h | 2beta | PSF model family: 2beta or legacy |
det | s | h | all | Detector selection: all/fxta/fxtb |
Development and support tools
fxtbkgmerge support
Not installed for routine use.
fxtchain_merged support
Not installed for routine use.
fxtfsaclean support
Not installed for routine use.
fxtsrc_addspec_compare support
Not installed for routine use.
fxtsrcmaskfill support
Not installed for routine use. Use fxtregmaskfill instead.
Retired command names
fxtasparfgen absorbed
Functionality is provided by fxtarfgen.
fxtsrcdet2 absorbed
Functionality is provided by fxtsrcdet.