A variety of improvements to the ACIS data can be made to significantly lower contaminations by cosmic ray events and otherwise improve the dataset. Many (but not all) of these functions are currently performed by CXC in the production of Level 2 event files, however L2 files cannot be used if CTI correction is desired. This section also includes the critical choices of event grades and energies to be used in science analysis. Note: This page does not include recipes to detect telemetry saturation, FEP0 problems, and timestamp errors which may also affect ACIS data.
The most basic cleaning steps are to remove events with non-zero status, undesired grades, and non-physical energies:
dmcopy
Input: acis.evts[EVENTS][status=0, grade=0,2,3,4,6, energy=500:8000]
Output: acis1.evts
We remove stripes along Y axis along due amplifier boundaries (mainly Flight
Grade=64 events) and hot columns. Most of these selection criteria
are presented in a summary of bad events page.
We use FTOOL fselect rather than CIAO dmcopy because of the complexity
of the selection criteria. Repeated use of dmcopy should also work. We give two versions here: for the four ACIS-I chips and or the single
ACIS-S3 chip. New selections are needed for remaining ACIS-S chips,
and it is possible that the hot columns and stripes may depend on focal
plane temperature and cosmic ray intensity. New hot columns may emerge
in the future. Therefore, examine the image carefully and make adjustments
in the event selection as needed.
fselect [for ACIS-I]
Note 1: The selection criteria must be in a continuous line without
line-breaks.
Input: Merge1.evts
Output: Merge2.evts
Selection Expression:
ccd_id!=5&&ccd_id!=6&&ccd_id!=7&&ccd_id!=8&&ccd_id!=9&&
fselect [for ACIS-S3]
(chipx!=256||fltgrade!=8)&&(chipx!=257||fltgrade!=16)&&(chipx!=512||(fltgrade!=8&&fltgrade!=104))&&
(chipx!=513||(fltgrade!=16&&fltgrade!=208))&&(chipx!=768||fltgrade!=8)&&(chipx!=769||fltgrade!=16)&&
(ccd_id!=0||(chipx!=3&&chipx!=69&&chipx!=70&&chipx!=74&&chipx!=75&&chipx!=81&&chipx!=1010))&&
(ccd_id!=0||chipx!=1015||fltgrade!=64)&&
(ccd_id!=1||((chipx<301||chipx>306)&&(chipx<407||chipx>411)))&&
(ccd_id!=2||(chipx!=134&&chipx!=559&&chipx!=571&&chipx!=1018))&&
(ccd_id!=6||(chipx!=58&&chipx!=585&&chipx!=683))
Input: Merge1.evts
Output: Merge2.evts
Selection Expression:
ccd_id==7&&(chipx!=512||(fltgrade!=2&&fltgrade!=64))&&(chipx!=513||(fltgrade!=2&&fltgrade!=64))
Communications with CXC suggest that L1 to L2 processing at the CXC
includes the application of GTI tables in the flight timeline (FLT) file. A precise definition of the "bad" observation characteristics that are
represented by the FLT file's GTI tables has never been seen by this author.
A critical type of screening involves removal of flaring pixel events, which are sequences of 2-7 events occurring in sequential readout frames in a single (CHIPX,CHIPY) pixel. They are thought to occur when a particularly energetic (non-solar) cosmic ray particle creates an electron cloud that fills traps that take several seconds to decay. (Note that the initial CR impact was rejected on-board; only the slower release of charge may resemble real X-rays and be included in telemetry.) Experience shows that 2-4% of background events in ACIS-I may be flaring pixels. If they are not removed, they can combine with random background events to produce faint spurious astronomical sources in wavdetect. Fortunately, these spurious sources can be quickly recognized by their physically-implausible variability characteristics (~half of counts occurring within ~20 seconds).
T. Miyaji provides a stand-alone C program flagflare.c which produces a new
event FITS file with an additional column flagging flaring pixels It is available
in a small package with a Makefile, C program and README file as Flagflare.tar.gz.
Note 1: The observer must decide what criteria should be used to flag
and remove flaring pixels. For instance, 2 or 3 events at the same (CHIPX,CHIPY)
coordinates in sequential readout frames; 3 or 4 events in non-sequential frames
within 10-20 seconds; etc. See 'goflagflare.csh -h' for several flags implemented
in Miyaji's code. We have not studied the consequences of various flag levels
on real data.
Note 2: Indiscriminate removal of flaring pixels from cosmic ray hits
will also remove real source photons from strong sources. Y. Tsuboi has studied
this effect in the Orion Nebula field, which has ~1000 sources of different
brightnesses. She finds that, using Miyaji's standard flagging on a 50ks exposure,
a source with 0.002 cts/s will have 0-4 events flagged, a source with 0.02 cts/s
will have 3-100 events flagged, and a source with 0.1 cts/s will have ~1000
events flagged. This is consistent with expectations from the Poisson statistics
of photon arrival times. No organized software has been developed to separate
the background flaring pixels from these real source events flagged by the flaring
pixel algorithm.
It is important to realize that the removal of flaring pixels from a event
list will remove real photons from sources as well as spurious events from the
cosmic-ray-induced background. A study
by Y. Tsuboi indicates that roughly 5% of source photons, even at relatively
low flux levels. We therefore recommend that source detection (e.g. wavdetect)
be performed on the dataset cleaned of flaring pixels, but source extraction
be performed on the dataset prior to flaring pixel removal.
A simple procedure for implementing the removal of flaring pixels is:
/bulk/pkg/xray/bin/goflagflare.csh -h ;
read instructions
cp *.evt1.fits *_noflarecorr.evt1.fits ;
keep uncorrected file
mv *.evt1.fits temp_flagflare.fits ;
this file acquire new 'flare' column
/bulk/pkg/xray/bin/goflagflare.csh temp_flarflare.fits ; run the program
fselect ;
remove flagged events
Input: temp_flagflare.fits
Output: *_flarecorr.evt1.fits
Selection: flare<1
Run dmstat and ds9 on before/after files to examine changes