pileest <eventfile> <outmap> <inreg> <outreg> <alpha> <maxpilefrac>
This tool creates an estimated pileup fraction image, given an event file.
It does so using a third order approximation for grade migration. If run
interactively, the user can create a circular pileup exclusion region. If not
run interactively, the best guess pileup exclusion region is created based on
the maxpilefrac
parameter. If an input region is also specified,
the tool will estimate the best input parameters for the Xspec 'pileup' model
for the combination of the input region and created pileup exclusion region.
The steps performed to create the estimated pileup fraction image are as follows:
extractor
ftool on eventfile
to
produce an un-binned image.
fboxcar
and ftimgcalc
tools and the frame time (TIMEDEL keyword
usually).
N' = N + N^2*(2-<alpha>)/2 + N^3*(2*<alpha>^2-9*<alpha>+9)/6
where N'
is the expected counts, N
is the
counts/3x3 pixels/frame calculated in the previous step, and
<alpha>
is the grade migration parameter.
f_t = 1 - exp( -N' )
If the interactive
parameter is set to 'yes'
,
the image will be displayed (see also contpfrac
and
pfrac_vals
parameters). A single contour will be overlaid at the
level where the estimated pileup fraction is equal to the value of the
maxpilefrac
parameter. If an input region is specified, it will
also be overlaid on the displayed image.
The user will then be asked to create a pileup exclusion region by
selecting the center of the region, and a point on the circle. The resulting
region will be saved to outreg
.
If the interactive
parameter is set to 'no'
,
then an exclusion region will be automatically created. It is estimated as
the minimum circle required to exclude pixels with
>=maxpilefrac
fractional pileup.
Lastly, if an input region is specified, the best estimates for input to
the Xspec 'pileup'
model will be printed to the terminal.
NOTE: Not all region file formats are supported for the
inreg
parameter. In particular, ds9 style regions where "global"
properties are declared, or the coordinate system is defined on a separate
line from the region shapes, are not yet supported.
This tool can give misleading results if severe pileup (e.g. a PSF "hole") is present in the input event data. Other means of accounting for pileup are required in this case.
The GTI of the event file (or AND'ed with the GTI specified in the
gtifile
parameter) should represent times of roughly uniform
rate and spectral "color". Otherwise the grade migration approximation is not
valid.
The automatic pileup exclusion region generator assumes that there is a single source represented in the input event file. If this is not the case, the automatic region may be incorrect, or the tool may fail outright.
'pileup'
model will not be calculated.
interactive
is set to 'yes'
,
or the automatically created exclusion region if interactive
is
set to 'no'
.
interactive
is set to 'no'
, the region created in
outreg
will be the minimum circle required to exclude pixels
with >=maxpilefrac
fractional pileup.
extractor
ftool (see fhelp extractor
).
plotdevice
parameter.
The filename will be the same as the outmap
parameter, but
with a file extension that matches the plot type specified in the
plotdevice
parameter.
http://space.mit.edu/cxc/software/suzaku/pest.html
for information on the original tool.
July 2010