FXTSoft v2.0 documentation
fxtchain help
Command help for fxtchain in the FXTSoft v2.0 release.
NAME
fxtchainUSAGE
fxtchain [-h] indir=<indir> outdir=<outdir> [exitstage=<exitstage>] [module=<module>] [datamode=<datamode,...>] [datatype=<datatype,...>] [binsize=<binsize>] [ra=<ra>] [dec=<dec>] [grade=<grade>] [expr=<expr>] [usergtifile=<usergtifile>] [userbpfile=<userbpfile>] [srcffregion=<srcffregion>] [srcpwregion=<srcpwregion>] [srctmregion=<srctmregion>] [bkgffregion=<bkgffregion>] [bkgpwregion=<bkgpwregion>] [bkgtmregion=<bkgtmregion>] [outputlist=<outputlist>] [savetmp=<savetmp>] [-V]
DESCRIPTION
Run the standard FXT reduction workflow from the input observation directory. It executes fxttimecorr when needed, fxtpical, fxtbadpix, fxthotpix, fxtgrade, fxtgtigen, XSELECT, fxtexpogen, fxtarfgen, and fxtrmfgen in sequence, then saves the requested products in the output directory.PARAMETERS
- indir[string]
- The input directory, where input files are stored, it's a multi-level directory structure. fxtchain requires this directory to be specified to the level of <obsID>, for example, indir=./202409/10216766310
- outdir[string]
- Directory for output products. The task creates it if needed; you need permission to create the directory and write its files.
- (exitstage)[int]
- The exit stage, this parameter is used to control the termination of the pipeline, with optional values of 1 and 2. Value 1 signifies the termination of the pipeline after generating clean event data, while value 2 indicates the generation of higher-level products. The default parameter value is 1.
- (module) [string]
- The value of module, this parameter is used to define a module filter. When this parameter is assigned a value, the filter is enabled. Only EVT files with modules that match the parameter value will be processed. The optional values for the parameter are 'a' and 'b', for example, module=a
- (datamode) [string]
- The value of datamode, the parameter is used to define a datamode filter. When this parameter is assigned a value, the filter is enabled. Only EVT files with datamodes that match the parameter value will be processed. The optional values for the parameter are FF, PW, and TM (case-insensitive). Multiple values should be separated by commas, for example, datamode=FF,PW.
- (datatype) [string]
- The value of datatype, the parameter is used to define a datatype filter for selecting the file type to be processed. Its default value is evt, and other optional value is fsaevt. If multiple types need to be specified simultaneously, separate them with commas. for example, datatype=evt,fsaevt
- (binsize) [float]
- Bin size (seconds) for the light curve, default value is 1.
- (ra) [float]
- Source right ascension in degrees for TM mode. Supply both
raanddec. If the pair is omitted, the task usesRA_OBJ/DEC_OBJ, thenRA_PNT/DEC_PNTfrom the event header. - (dec) [float]
- Source declination in degrees for TM mode; use with
ra. The same header fallback applies when the coordinate pair is omitted. - (grade) [string]
- The value of grade, it is for missions with CCD detectors whose events are assigned a grade. The grade can be specified as a single number (eg 0), a range (eg 0:2 or 0-2), an upper limit (eg < 4), or a lower limit (eg > 3). Specifications should be separated by commas (eg 0,2-6) and enclosed in double quotes if given on the command line instead of when prompted.
- (expr) [string]
- The value of selection expression, it is for attitude and instrument HK or DEFAULT for standard (from CALDB). To avoid confusion caused by special characters such as "&", ">", etc., parameters should be enclosed in double quotes, for example, "ELV>-10"
- (usergtifile) [string]
- The path of the input GTI file (FITS format) or NONE for none
- (userbpfile) [string]
- The path of the user BADPIX file Or NONE for none
- (srcffregion) [string]
- The path of the region file. This region is used to define a source filter when the currently processed EVT file is in FF mode. The region filter is in ds9 format. Region filters for the filter region command can be created graphically via the plot image command, which spawns a ds9 session.
- (srcpwregion) [string]
- The path of the region file. This region is used to define a source filter when the currently processed EVT file is in PW mode. The region filter is in ds9 format. Region filters for the filter region command can be created graphically via the plot image command, which spawns a ds9 session.
- (srctmregion) [string]
- The path of the region file. This region is used to define a source filter when the currently processed EVT file is in TM mode. The region filter is in ds9 format. Region filters for the filter region command can be created graphically via the plot image command, which spawns a ds9 session.
- (bkgffregion) [string]
- The path of the region file. This region is used to define a background filter when the currently processed EVT file is in FF mode. The region filter is in ds9 format. Region filters for the filter region command can be created graphically via the plot image command, which spawns a ds9 session.
- (bkgpwregion) [string]
- The path of the region file. This region is used to define a background filter when the currently processed EVT file is in PW mode. The region filter is in ds9 format. Region filters for the filter region command can be created graphically via the plot image command, which spawns a ds9 session.
- (bkgtmregion) [string]
- The path of the region file. This region is used to define a background filter when the currently processed EVT file is in TM mode. The region filter is in ds9 format. Region filters for the filter region command can be created graphically via the plot image command, which spawns a ds9 session.
- (outputlist) [string]
- This parameter is used to control the generation of the output file list. When its value is 'yes' or 'Y', the list of output product files will be generated. When its value is 'no' or 'N', the file list will not be generated. The default value is 'N'.
- (savetmp) [string]
- This parameter is used to control whether to keep temporary files. When the value is 'Y' or 'yes', the temporary files will be retained. When the value is 'N' or 'no' or when it is unassigned, the temporary files will be removed.
- (-h) [string]
- help document
- (-V) [string]
- Version
EXAMPLES
-
>fxtchain -h -
>fxtchain -V -
>fxtchain indir=/data/obs/05100000036 outdir=/data/prod/05100000036 exitstage=1 expr="ELV>-10"
BUGS
SEE ALSO
Manual page updated
2026-11-04