HETG/ACIS-S/TE
- acis_process_events
rand_pix_size='0'
badpixfile='bpix1'
We turn off pixel randomization. Exposures with gratings are
typically long enough to remove any aspect sub-pixel systematics
which might be present in short observations. We supply the
observation-specific bad pixel file.
- dmcopy
infile='evt1_0[events][grade=0,2,3,4,6,status=0,energy<12000]'
We filter on good grade, good status, and remove high energy
(usually background) events.
- dmcopy
infile='evt1_1[events][@flt1]'
In a separate step, we filter on the good-time-intervals in the
"flt1" file.
- destreak
filter='yes'
This removes artifacts from CCD S4.
- tgdetect
fixedcell='6'
We use the cell size recommended for multiple close sources.
- tg_create_mask
- tg_resolve_events
- tgextract
extract_background='yes'
We extract background spectra, even though background is usually
negligible for HETGS. This can be important, however, for assessing
contamination by nearby sources.
- aglc
This is an ISIS program for extracting light curves from HETG/ACIS
data (or LETG/ACIS). It handles exposures per chip, and can also
bin by phase.
- asphist
An aspect histogram is made for each CCD.
- pset ardlib
AXAF_ACIS4_BADPIX_FILE='bpix1[BADPIX4]'
AXAF_ACIS5_BADPIX_FILE='bpix1[BADPIX5]'
AXAF_ACIS6_BADPIX_FILE='bpix1[BADPIX6]'
AXAF_ACIS7_BADPIX_FILE='bpix1[BADPIX7]'
AXAF_ACIS8_BADPIX_FILE='bpix1[BADPIX8]'
AXAF_ACIS9_BADPIX_FILE='bpix1[BADPIX9]'
The ardlib parameter file needs to have the observation-specific bad
pixels set.
- mkgrmf
We make grating rmfs for -1 and +1 orders, for both grating types
(MEG and HEG).
- mkgarf
pbkfile='pbk0'
maskfile='msk1'
We make arfs for -1 and +1 orders, for both grating types, and give
the observation-specific parameters necessary for computing the
"dead-area" factor.
- dmarfadd
- Summary plots are made by ISIS scripts.
HETG/ACIS-S/TE with "findzo"
This is similer to the HETGS/ACIS-S/TE case,
only we do not use tgdetect to find the zero order centroid. This is
because, by inspection, we have determined that zero order was blocked or
cratered. We use the ISIS program, "findzo" which intersects the MEG trace
with the ACIS frame-shift streak.
- tg_create_mask
use_user_pars='yes'
sA_zero_y='4139.14'
sA_zero_x='4040.77'
Here we use the findzo position in tg_create_mask. (The specific
values are replaced with whatever findzo computed.)
HETG/ACIS-S/CC
- acis_process_events
apply_cti='no'
calc_cc_times='yes'
apply_tgain='yes'
eventdef=')ccgrdlev1'
rand_pix_size='0'
badpixfile='bpix1'
- dmcopy
infile='evt1_0[events][grade=0,2,3,4,6,status=0,energy<12000]'
- dmcopy
infile='evt1_1[events][@flt1]'
- destreak
We run destreak even in cc-mode, but the appropriateness of this has
been questioned.
- tgdetect
fixedcell='6'
We can use tgdetect in CC-mode if the zero order region has not been
blocked. There will still be a bright point to locate.
- tg_create_mask
- tg_resolve_events
osipfile='none'
osort_hi='0.3'
osort_lo='0.2'
The gain calibration in CC-mode is often not as good as in timed
exposure, and we do not have any chip-y dependent CTI correction
applied. Hence we do not use the order sorting table ("osip") and
we specify a generous "flat" order sorting region.
- tgextract
- aglc
- asphist
Run for each CCD.
- pset ardlib
To set observation-specific bad-pixel files.
- mkgrmf
Run for -1 and +1 orders, for both MEG and HEG gratings.
- mkgarf
pbkfile='pbk0'
maskfile='msk1'
osipfile='CALDB'
Run for -1 and +1 orders for each CCD and grating. Note that we
specify the osip file for the ARF, even though we did not use it
for order-sorting.
- dmarfadd
- Summary plots are made by ISIS scripts
LETG/ACIS-S/TE
- acis_process_events
rand_pix_size='0'
badpixfile='bpix1'
- dmcopy
infile='evt1_0[events][grade=0,2,3,4,6,status=0,energy<12000]' \
- dmcopy
infile='evt1_1[events][@flt1]' \
- destreak
filter='yes'
- tgdetect
fixedcell='6'
- tg_create_mask
- tg_resolve_events
- tgextract
extract_background='yes'
- aglc
- asphist
- pset ardlib
- mkgrmf
- mkgarf
pbkfile='pbk0'
maskfile='msk1'
- dmarfadd
- Summary plots are made by ISIS scripts
LETG/ACIS-S/CC
see HETG/ACIS/CC
LETG/ACIS-S/TE with findzo
see HETG/ACIS-S/TE with findzo
LETG/HRC-S
- hrc_process_events
infile='evt0[events][pha=0:254,status=xxxxxx00xxxx0xxx0000x000x00000xx,@flt1]'
badpixfile='bpix1'
We apply the recommended pha and status filters, filter by the time
intervals in the "flt1" file, and specify the observation-specific bad
pixel file.
- tgdetect
fixedcell='6'
We use the cell size recommended for multiple close sources.
- tg_create_mask
- tg_resolve_events
eventdef=')stdlev1_HRC'
- tgextract
infile='evt2[(tg_lam,pi)=region($CALDB/data/chandra/hrc/bcf/tgmask2/letgD1999-07-22pireg075_N0001.fits)]'
extract_background='yes'
We apply a CALDB filter to reduce background.
- tg_bkg
This sums the background components in the pha file output by tgextract.
- dmtype2split
outfile='pha2_bg_-1[SPECTRUM],pha2_bg_1[SPECTRUM]'
This produced "Type I" pha files holding the background spectra.
- dmextract
outfile='lc'
infile='evt2[tg_part=3,tg_m=-1,1, \
(tg_r,tg_d)=region($CALDB/data/chandra/hrc/bcf/tgmask2/letgD1999-07-22regN0002.fits\
[tg_srcid=1,tg_part=3,tg_m=-1,1,rowid=SOURCE])][bin time=::1000]'
We compute a light curve for LETG/HRC-S data within the "bow-tie"
region background, which was also applied by default in tgextract.
- dmextract
outfile='lc_bg'
infile='evt2[tg_part=3,tg_m=-1,1,\
(tg_r,tg_d)=region($CALDB/data/chandra/hrc/bcf/tgmask2/\
letgD1999-07-22regN0002.fits[tg_srcid=1,tg_part=3,tg_m=-1,1,\
rowid=BACKGROUND_UP,BACKGROUND_DOWN])][bin time=::1000]'
This extracts the background light curve.
- asphist
dtffile='dtf1'
This is done for each HRC-S chip, using the observation-specific
dead-time correction file.
- pset ardlib
AXAF_HRC-S_BADPIX_FILE='bpix1'
We set the observation-specific bad pixel files necessary for making
responses.
- mkgrmf
This is done for each order of interest. For LETGS, we make up to
8th order.
- mkgarf
This is done for each detector element and order of interest.
- dmarfadd
The grating arf chip components are summed.
- Summary plots are made by ISIS scripts