aepipeline indir=<Input Directory> outdir=<Output Directory> steminputs=<Stem for input files> entry_stage=<Entry stage> exit_stage=<Exit stage> instrument=<Instrument>
This task duplicates most of the Suzaku pipeline (not trend data). It allows the user to run all or part of the pipeline processing and to vary the calibration files and filtering (screening) criteria used. A number of other pipeline processing parameters can also be changed.
The pipeline is divided into 2 stages:
entry_stage
and exit_stage
parameters.
HXD Stage 1 consists of the following steps:
XIS Stage 1 consists of the following steps:
The data screening (Stage 2) is identical to that in the production Suzaku pipeline, when default parameters are used. For details on the default screening applied to the XIS and HXD events (respectively), see:
To change the screening criteria from the default, use the xis[0-3]_expr
, hxd_{pse,gso,pin}_expr
, xis[0-3]_grade
and xis[0-3]_psum_grade
parameters.
aepipeline allows the processing of data on an instrument by instrument basis. This is controlled by the instrument
parameter. Possible values are:
The input to aepipeline is specified using (at minimum) the indir
parameter. This should be specified as the top level sequence directory, e.g.:
aepipeline indir=/path/to/100039010 ...
Paths to specific housekeeping and satellite data files can be specified using the attitude
, housekeeping
, extended_housekeeping
, makefilter
, orbit
and timfile
parameters. But this should NOT be necessary if indir is specified correctly.
NOTE: Errors can occur if a subdirectory of a sequence directory is used for the indir
parameter or if the output is stored within the sequence directory.
An output report is produced with the name "<steminputs>_aepipeline_report.txt". This lists all processing done in any particular run of aepipeline. The production of this report is controlled by the report
parameter. (Default = "yes".) The level of detail of this report is controled by the chatter
parameter. (Default = "2", range 0 - 5.)
NOTE: Setting chatter to "3" or above can produce very large output reports.
The number of output files depends on both pipeline processing stage(s) and the instrument(s) selected. All output files are written to the directory specified by the outdir
parameter. The archive directory structure is NOT reproduced (i.e. all output files will be in a single directory).
The names of files produced are the same as those found in the HEASARC archive. However the usual "aeXXXXXXXXX" prefix, where "XXXXXXXXX" is the sequence number, can be replaced by a character string set by the stemoutputs
parameter. This defaults to the value set by the steminputs
parameter.
/path/to/805062010/
NOTE: Problems can arise if a sub-directory of the top level sequence directory is used.
CAUTION: If clobber
is set, and this directory already exists, then this task will overwrite files as needed in this directory.
/ae100039010\.att(\..+)?$/
against all files found in the indir
directory.
When doing this matching, aepipeline will prefer files that match the original archive directory structure over files with the same name that do not. For example, if the files:
/path/to/805062010/hxd/event_uf/ae805062010hxd_0_wel_uf.evt
/path/to/805062010/hxd/event_uf_2/ae805062010hxd_0_wel_uf.evt
both exist, aepipeline will use the first file, and not the second. If two files of the same name are found and neither one resides in an archive directory structure, aepipeline will exit with an error.
NOTE: The above file finding issues can be avoided if the downloaded archive data set is left "pristine", by specifying an output directory OUTSIDE of the input directory tree. This is strictly enforced as of V1.1.0 of aepipeline.
Stage 1: Re-calibrate unfiltered event files.
Stage 2: Start from existing unfiltered event files.
Stage 1: Produces calibrated unfiltered event files.
Stage 2: Produces screened event files.
More than one value may be specified at one time:
steminputs
will be used.
0 - Essentially nothing will be produced.
5 - Debugging mode with large quantities of output.
NOTE: Setting chatter=5
can generate a huge report file (see report
parameter) and a very large amount of terminal output. It is not recommended for general use.
NOTE: If set to 'no' and entry_stage
is set to 1, roughly 4 to 5 times the disk space will be required for output.
indir
. A value of "EULER" will use fixed Euler angles for the attitude of the satellite (see ea1
, ea2
, ea3
parameters).
indir
.
indir
.
indir
.
indir
.
indir
.
1: use internal function in interpolation (TI to aetime).
2: use telemetry aetime, and simply add sub_aetime.
3: use telemetry aetime, and interpolate event aetime
4: use astetool, aste_ti2time() with tim FITS file.
XISTIME - Generate GTI for the XIS burst option without approximation?
XISCOORD - Pointing type, KEY/USER.
XISCOORD - 1st XYZ-Euler angle (deg), used when attitude=EULER.
XISCOORD - 2nd XYZ-Euler angle (deg), used when attitude=EULER.
XISCOORD - 3rd XYZ-Euler angle (deg), used when attitude=EULER.
XISCOORD - R.A. of the sky reference position, used when pointing=USER.
XISCOORD - DEC. of the sky reference position, used when pointing=USER.
XISCOORD - Roll angle of the sky reference, used when pointing=USER.
XISCOORD - Correct aberration.
XISPUTPIXELQUALITY - Flag to enable SCI pixel quality bits.
XISPI - Flag to enable charge trail correction.
XISPI - Flag to enable CTI correction.
XISPI - Flag to enable CTI correction for SCI.
XISPI - Flag to enable smoothing the PHA to PI relation around edge.
XISPI - Time margin in second to consider AE-temp is valid.
XISPI - Minimum value in degC to consider AE-temp is valid.
XISPI - Maximum value in degC to consider AE-temp is valid.
XISPI - Flag to randomize PHAS[0].
XISPI - Flag if the constant split threshold method is applied.
(yes: constant split threshold, no: the "energy" dependent split)
XISPI - Value of the split threshold, when the constant method is selected.
CLEANSIS - Run yes or no.
CLEANSIS - Search cell size in units of pixels.
CLEANSIS - The LOG of the Poisson probability threshold for rejecting a pixel.
CLEANSIS - Zero background cutoff threshold.
SAA_HXD == 0 && T_SAA_HXD>436 && ELV>5 && DYE_ELV>20 && ANG_DIST<1.5 && S0_DTRATE<3 && AOCU_HK_CNT3_NML_P==1
xis0_expr
. "DEFAULT" uses the production pipeline values:
SAA_HXD == 0 && T_SAA_HXD>436 && ELV>5 && DYE_ELV>20 && ANG_DIST<1.5 && S1_DTRATE<3 && AOCU_HK_CNT3_NML_P==1
xis0_expr
. "DEFAULT" uses the production pipeline values:
SAA_HXD == 0 && T_SAA_HXD>436 && ELV>5 && DYE_ELV>20 && ANG_DIST<1.5 && S2_DTRATE<3 && AOCU_HK_CNT3_NML_P==1
xis0_expr
. "DEFAULT" uses the production pipeline values:
SAA_HXD == 0 && T_SAA_HXD>436 && ELV>5 && DYE_ELV>20 && ANG_DIST<1.5 && S3_DTRATE<3 && AOCU_HK_CNT3_NML_P==1
xis0_expr
. "DEFAULT" uses the production pipeline values:
SAA_HXD==0 && T_SAA_HXD>500 && TN_SAA_HXD>180 && ELV>5 && ANG_DIST<1.5 && AOCU_HK_CNT3_NML_P==1 && COR>6 && HXD_HV_W0_CAL>700 && HXD_HV_W1_CAL>700 && HXD_HV_W2_CAL>700 && HXD_HV_W3_CAL>700 && HXD_HV_T0_CAL>700 && HXD_HV_T1_CAL>700 && HXD_HV_T2_CAL>700 && HXD_HV_T3_CAL>700
NOTE: aepipeline will create "Course", "Normal" and "Fine" clock mode PIN screened event files using the criteria above (or the user-specified value for hxd_pin_expr
) AND'd with the following clock mode selections:
HXD_WPU_CLK_RATE == 0
HXD_WPU_CLK_RATE == 1
HXD_WPU_CLK_RATE > 1
But the "Fine" and "Course" modes have not been used onboard Suzaku as of yet.
xis0_expr
. "DEFAULT" uses the production pipeline values:
SAA_HXD==0 && T_SAA_HXD>500 && TN_SAA_HXD>180 && ELV>5 && ANG_DIST<1.5 && HXD_DTRATE<3 && AOCU_HK_CNT3_NML_P==1 && COR>6 && HXD_HV_W0_CAL>700 && HXD_HV_W1_CAL>700 && HXD_HV_W2_CAL>700 && HXD_HV_W3_CAL>700 && HXD_HV_T0_CAL>700 && HXD_HV_T1_CAL>700 && HXD_HV_T2_CAL>700 && HXD_HV_T3_CAL>700
NOTE: aepipeline will create "Course", "Normal" and "Fine" clock mode GSO screened event files using the criteria above (or the user-specified value for hxd_gso_expr
) AND'd with the following clock mode selections:
HXD_WPU_CLK_RATE == 0
HXD_WPU_CLK_RATE == 1
HXD_WPU_CLK_RATE > 1
But the "Fine" and "Course" modes have not been used onboard Suzaku as of yet.
xis0_expr
. "DEFAULT" uses the production pipeline values:
SAA_HXD==0 && T_SAA_HXD>500 && TN_SAA_HXD>180 && ELV>5 && ANG_DIST<1.5 && AOCU_HK_CNT3_NML_P==1 && COR>6 && HXD_HV_W0_CAL>700 && HXD_HV_W1_CAL>700 && HXD_HV_W2_CAL>700 && HXD_HV_W3_CAL>700 && HXD_HV_T0_CAL>700 && HXD_HV_T1_CAL>700 && HXD_HV_T2_CAL>700 && HXD_HV_T3_CAL>700
NOTE: If the PSE file created with aepipeline will be used to correct for deadtime in the PIN and/or GSO screened event files, the expression for hxd_pse_expr
MUST include all time covered by the PIN and/or GSO expressions (hxd_pin_expr
and hxd_gso_expr
parameters).
xis0_grade
xis0_grade
xis0_grade
xis0_psum_grade
xis0_psum_grade
xis0_psum_grade
aepipeline indir=/data/100039010 outdir=/data/100039010_reproc entry_stage=1 exit_stage=2 steminputs=ae100039010 instrument=ALL
aepipeline indir=/data/100039010 outdir=/data/100039010_reproc entry_stage=2 exit_stage=2 steminputs=ae100039010 instrument=XIS1
aepipeline indir=/data/100039010 outdir=/data/100039010_reproc entry_stage=2 exit_stage=2 steminputs=ae100039010 instrument=XIS1 xis1_grade="0:0"
None, but see help for individual parameters above.
April 2014