HETG/ACIS-S/TE

  1. 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.
  2. 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.
  3. dmcopy infile='evt1_1[events][@flt1]' In a separate step, we filter on the good-time-intervals in the "flt1" file.
  4. destreak filter='yes' This removes artifacts from CCD S4.
  5. tgdetect fixedcell='6' We use the cell size recommended for multiple close sources.
  6. tg_create_mask
  7. tg_resolve_events
  8. 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.
  9. 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.
  10. asphist An aspect histogram is made for each CCD.
  11. 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.
  12. mkgrmf We make grating rmfs for -1 and +1 orders, for both grating types (MEG and HEG).
  13. 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.
  14. dmarfadd
  15. 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.
  1. 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

  1. acis_process_events apply_cti='no' calc_cc_times='yes' apply_tgain='yes' eventdef=')ccgrdlev1' rand_pix_size='0' badpixfile='bpix1'
  2. dmcopy infile='evt1_0[events][grade=0,2,3,4,6,status=0,energy<12000]'
  3. dmcopy infile='evt1_1[events][@flt1]'
  4. destreak We run destreak even in cc-mode, but the appropriateness of this has been questioned.
  5. 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.
  6. tg_create_mask
  7. 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.
  8. tgextract
  9. aglc
  10. asphist Run for each CCD.
  11. pset ardlib To set observation-specific bad-pixel files.
  12. mkgrmf Run for -1 and +1 orders, for both MEG and HEG gratings.
  13. 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.
  14. dmarfadd
  15. Summary plots are made by ISIS scripts

LETG/ACIS-S/TE

  1. acis_process_events rand_pix_size='0' badpixfile='bpix1'
  2. dmcopy infile='evt1_0[events][grade=0,2,3,4,6,status=0,energy<12000]' \
  3. dmcopy infile='evt1_1[events][@flt1]' \
  4. destreak filter='yes'
  5. tgdetect fixedcell='6'
  6. tg_create_mask
  7. tg_resolve_events
  8. tgextract extract_background='yes'
  9. aglc
  10. asphist
  11. pset ardlib
  12. mkgrmf
  13. mkgarf pbkfile='pbk0' maskfile='msk1'
  14. dmarfadd
  15. 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

  1. 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.
  2. tgdetect fixedcell='6' We use the cell size recommended for multiple close sources.
  3. tg_create_mask
  4. tg_resolve_events eventdef=')stdlev1_HRC'
  5. 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.
  6. tg_bkg This sums the background components in the pha file output by tgextract.
  7. dmtype2split outfile='pha2_bg_-1[SPECTRUM],pha2_bg_1[SPECTRUM]' This produced "Type I" pha files holding the background spectra.
  8. 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.
  9. 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.
  10. asphist dtffile='dtf1' This is done for each HRC-S chip, using the observation-specific dead-time correction file.
  11. pset ardlib AXAF_HRC-S_BADPIX_FILE='bpix1' We set the observation-specific bad pixel files necessary for making responses.
  12. mkgrmf This is done for each order of interest. For LETGS, we make up to 8th order.
  13. mkgarf This is done for each detector element and order of interest.
  14. dmarfadd The grating arf chip components are summed.
  15. Summary plots are made by ISIS scripts