This page contains various scripts for reducing and analyzing data.
They are free to use and change, and I take no responsibility for
problems or errors.
Any suggestions or improvements are welcome.
Chandra
A guide to the complete Chandra analysis pipeline may be found in
/raid7/XRAY/Chandra_Tools/ (Pipeline.ps or Pipeline.pdf).
Reduce_Chandra.csh A script to
process Chandra data.
Create_OOTs.csh A script to make the
readout artifact, based on Markevitch's script.
Reduce_Chandra_useoldgain.csh A script to process Chandra data.
This gain file is needed when running
mkrmf rather than
mkacisrmf.
See
Ticket_7478
This has been fixed as of Ciao3.2.2
Reprocess_Events.csh The second
processing script to be run after correcting for possible errors in
point source detection.
equal_energy_range.csh Breaks
an observation into N sets of energies with the same number of source
photons.
EQUAL_AREA_ENG_RANG_MOD.m A
matlab routine that convolves a mekal spectral model with an input ARF,
to determine a given number of energy bands with the same photon flux.
Useful when determining the energy bands for
SIC.csh
SIC.cshSimple Image Creator. Creates smoothed
images for multiple energy bands.
Hardness.csh A simple script to make a
hardness map using the output from
SIC.csh.
NOTE: The more energy bands used for
SIC.csh, the more accurate
this tool is and the more possible choices for energy cut.
ADD_CHANDRA_IMAGES.csh Often
upon region filtering an image and exposure map,
they are slightly different sizes. After making a template of zeros
from the larger of the two images
(with e.g.
farith image1 image1 template SUB), this tool can be
used to properly rescale the smaller image to
the larger one.
XMM-Newton
RUN_Pipeline Runs the basic pipeline
processing to make a
PPS folder from
ODF data.
RUN_NS Tool to determine low energy noise
suprression in PN. NOTE:Not currently supported because of consistency
in Background files.
RUN_EPN_Pipeline Runs basic pipeline
processing for the EPN after determining Noise Suppression parameters.
NOTE:Not currently supported because of consistency in Background files.
FILTER_EVENTS GTI filters the data for
a rate given by the user. Reprojects Background into source coordinates.
Plot_Rate.m A simple matlab routine that
determines cut rate for a given level sigma in a lightcurve.
XMM_SRC_DETECT Runs a variety of point
detection routines as determined by the user.
MAKE_EPN_RMFS.csh Generates canned
response files for a given observation. From these canned responses
The tool
epn_rmf_creator.csh creates an event weighted rmf for
an arbitrary region.
epn_rmf_creator.csh Creates an
event weighted rmf for an arbitrary region using the output
from
EPNRMFGEN.csh
MEAN_EFFAREA.csh Determines the mean
effective area of an
ARF for a given energy range.