XMM-Newton SAS Home Page
XMM-Newton Science Analysis System


espfilt (espfilt-2.7.1) [xmmsas_20190531_1155-18.0.0]


Main loop

The main routine accepts a space-separated list of event files of any combination of MOS and PN exposures.

This task assumes that SAS tasks cifbuild, odfingest and one of the event-list producing EPIC MOS or PN task (emchain, emproc, epchain, epproc) have previously been run.

An error will result if the odfingest ASCII output file or the cifbuild FITS file are not present and set using the proper SAS environment variables or command line options.

For the Corner Method, espfilt performs the following in sequence:

  1. The task checks to see if cifbuild and odfingest has been run.
  2. The task checks to see if event list(s) is/are present.
  3. Depending on the method selected, the proper subroutine for processing via that method is envoked.
  4. For the corner method:
    1. Create Source Image using evselect.
    2. Create Source Lightcurve using evselect.
    3. Define corners (currently hardcoded, may become User Specifiable).
    4. Create Corner Image using evselect.
    5. Create Corner Lightcurve using evselect.
    6. Clean lightcurve in subroutine CLEAN_LC.
        Clean the light curve by creating a histogram of rate values
        from the light curve, finding the most likely value, assuming
        that to be similar to the mean of the quiescent rate, then
        fitting a Gaussian (or poissonian, or user defined curve) to 
        a small window around that value in the histogram to determine
        the true mean and dispersion of the quiescent background rate. 
        Excludes time intervals with rate higher than a multiple of
        the dispersion above the mean quiescent background and excludes
        good regions shorter than some (currently hardcoded) limit.
      

For the Ratio Method:

  1. Create FOV annulus Image using evselect.
  2. Create FOV annulus Lightcurve using evselect.
  3. Define corners.
  4. Create Corner Image using evselect.
  5. Create Corner Lightcurve using evselect.
  6. Determine Counts per pixel Ratio between the FOV annulus and corners.
  7. For Time Intervals within user-selected ratio threshold ranges, select data using evselect.
For both methods, each of the following is performed
  1. Create an ASCII QDP format file.
  2. Run gtibuild.
  3. Run evselect to produce filtered, flare-free events file.
  4. Run evselect to produce filtered, flare-free image.
  5. Run evselect to produce corner-only events file.
  6. Run evselect to produce corner-only image.

XMM-Newton SOC/SSC -- 2019-06-02