2.3 Input Parameters (CLI And Python)¶
This page documents inputs for:
CLI:
runXstack(Xstack_scripts/Xstack_autoscript.py)Python API:
Xstack.Xstack.XstackRunner
Required Inputs¶
CLI¶
filelist(positional): text file listing PI files.
Python¶
pifile_lstarffile_lstrmffile_lstz_lst
Core Workflow Parameters¶
CLI argument |
Python argument |
Meaning |
Default |
|---|---|---|---|
|
|
Output file prefix |
|
|
|
Full-response weighting method: |
|
|
|
Prior photon index used by |
|
|
|
Integration range for |
|
|
|
CPU threads for shifting/stacking pipeline |
|
|
|
Truncate unreliable low-energy ARF/PI bins below threshold |
|
|
|
Treat sample as extended sources |
|
|
|
Stack multiple exposures of one target in observed frame (skip rest-frame/NH/background pre-scaling; use FLX response weighting) |
|
|
|
Save/reuse per-source rest-frame cache files ( |
|
Data And Background Parameters¶
CLI argument |
Python argument |
Meaning |
Default |
|---|---|---|---|
(auto from PI header) |
|
Background PI spectrum list |
|
(auto from |
|
Galactic NH list |
|
(not in CLI) |
|
Galactic absorption profile template file |
|
|
|
Number of groups for background-uncertainty estimation |
|
|
(preprocessed in CLI loader) |
Use one common RMF path for all sources |
|
Bootstrap Parameters¶
CLI argument |
Python argument |
Meaning |
Default |
|---|---|---|---|
|
|
Enable bootstrap mode |
|
|
|
Number of realizations |
|
|
|
Fraction of sources resampled in each realization |
|
Advanced Python-only Parameters¶
Python argument |
Meaning |
Default |
|---|---|---|
|
Source IDs stored in output metadata/logging |
auto index |
|
RMF used to define reference grids |
first RMF |
|
ARF used for reference input-energy grid |
first ARF |
Output Files¶
For non-bootstrap runs, Xstack writes:
<prefix>pi.fits(stacked PI spectrum)<prefix>bkgpi.fits(stacked background PI spectrum)<prefix>arf.fits<prefix>rmf.fits<prefix>fene.fits<prefix>runXstack.log
In bootstrap mode, each realization gets an index in the output names.
Stacked FITS outputs include command provenance in header HISTORY cards.
Same-target Mode Notes¶
When same_target=True:
rspwt_methodis effectively forced toFLX,do_cacheis ignored,output src/bkg
AREASCAL,BACKSCAL,CORRSCALare means of input values,a log warning is raised if
var(x/mean(x))is large for these scale keywords.