Документ взят из кэша поисковой машины. Адрес оригинального документа : http://xmm.vilspa.esa.es/sas/8.0.0/doc/eboxdetect/node3.html
Дата изменения: Wed Jul 2 06:15:12 2008
Дата индексирования: Fri Sep 5 21:34:21 2008
Кодировка:

Поисковые слова: annular solar eclipse
Description XMM-Newton SAS Home Page
XMM-Newton Science Analysis System


eboxdetect (eboxdetect-4.19.2) [xmmsas_20080701_1801-8.0.0]

Use Home Page Parameters Home Index

Meta Index / Home Page


Description

The eboxdetect task has two different modes of operation: (1) local detection and (2) map detection. eboxdetect is first run in local mode. The local mode source lists serves as input for task esplinemap which creates background maps (one per energy band for each EPIC instrument) which are then used to run eboxdetect in map mode.

The boolean input parameter usemap controls whether the program operates in map mode or in local mode. In both modes, source searching is only performed in the area of the images which is marked by an optional detection mask created by task emask. Use of a detection mask is controlled by the boolean input parameter withdetmask. If true, one detection mask for each EPIC instrument must be supplied (parameter detmasksets). Parameter withexpimage controls the optional use of exposure maps as created by task eexpmap. The value of the exposure image at the location of each detected source is then used to calculate vignetting- and deadtime corrected source count rates. If parameter withexpimage is set to true one exposure image for each energy band of each EPIC instrument must be supplied (parameter expimagesets). If no exposure images are supplied raw count rates are calculated by deriving the exposure information from the good time intervals.

eboxdetect may be used to perform source detection on individual images or on sets of images from different energy bands and/or different EPIC instruments. If source detection on multiple images is performed, the input images and corresponding exposure images, background images and detection masks have to be supplied as lists of file names. All input images and accompanying exposure images, background images and detection masks must have identical orientation and binning and must be supplied in a consistent order.

  1. Local detection mode: The purpose of the local detection step is to provide an input list of source positions for task esplinemap which then constructs a background map from the non-source locations. Source counts are accumulated from a 3 x 3 or 5 x 5 (controlled by parameter boxsize) pixel window and the background is determined from the surrounding 40 ( 7 x 7 pixel window) or 56 pixels (9 x 9 pixel window), respectively. Detection of moderately extended objects (up to several times the PSF size) is achieved by searching the image in up to three consecutive detection runs each doubling the pixel size. The input image pixel size resampled from the original detector pixels is choosen such that the detection window corresponds to the size of the on-axis PSF. It is thus required that the PSF is at least moderately oversampled (which is the case for both pn and MOS CCD EPIC data). It is recommended to use a detection threshold of likemin=8 to provide a complete source list as input for esplinemap.

  2. Map detection mode: Source counts are accumulated from a 3 x 3 or 5 x 5 pixels window with the option to use a position and energy dependent PSF weighted filter (matched filter; not yet implemented). Detection of extended objects is again achieved by doubling the pixel sizes in up to three consecutive detection runs. In map detection mode the background is taken from the background maps determined by ESPLINEMAP, resulting in an improved detection sensitivity as compared to the local detection step. If the map detection run is used as input for the for emldetect, it is recommended to use a somewhat lower detection threshold than for emldetect, e.g. mlmin=10 for emldetect and likemin=8 for eboxdetect.

Both in local mode and map mode background subtracted source counts are calculated by applying correction factors to account for the respective fractions of source counts falling in each source and background area. The respective off-axis angle dependent correction factors are calculated using the current calibration PSF (medium accuracy model). The following equations describe the PSF correction of source and background counts as implemented in the code of the task.

$n$ = detection box size

Enboxed energy fraction in source box:

\begin{displaymath}\alpha = \sum_{n\times n } {\rm PSF} \end{displaymath}

Fraction of source counts in background counting area:

\begin{displaymath}\beta = \sum_{(n+4) \times (n+4) }\!\!\! \!\!\!{\rm PSF} - \sum_{n\times n } {\rm PSF} \end{displaymath}

Raw box counts:

\begin{displaymath}BOX\_CTS = \sum_{n\times n } {\rm image} \end{displaymath}

Raw background map:

\begin{displaymath}BG\_RAW = (\sum_{(n+4) \times (n+4)} \!\!\!\!\!\! {\rm image} - \sum_{n \times n } {\rm image})/((n+4)^2-n^2) \end{displaymath}

In local detection mode:

PSF corrected and background subtracted source counts:

\begin{displaymath}SCTS = \frac{BOX\_CTS - BG\_RAW\cdot n^2}{\alpha-\beta\cdot n^2/((n+4)^2-n^2)} \end{displaymath}

PSF corrected background map:

\begin{displaymath}BG\_MAP = BG\_RAW - SCTS\cdot\beta/((n+4)^2-n^2) \end{displaymath}


\begin{displaymath}err_{\rm bg} = \sqrt{ BG\_RAW \cdot ((n+4)^2-n^2)} / ((n+4)^2-n^2) \end{displaymath}

Error of source counts:

\begin{displaymath}SCTS\_ERR = \frac{ \sqrt{ BOX\_CTS + (n^2* err_{\rm bg})^2} }{\alpha-\beta\cdot n^2/(n+4)^2} \end{displaymath}

In map detection mode:


\begin{displaymath}SCTS = (BOX\_CTS - BG\_MAP\cdot n^2)/\alpha \end{displaymath}

The resulting output source table contains one row per input image for each detected source, plus a number of summary rows containing the broad band results for each EPIC telescope and the combined results for all EPIC telescopes taken together. The individual source rows are identified through the column entries ID_INST and ID_BAND in the output table where ID_INST refers to the EPIC instrument (1: PN, 2: MOS1, 3: MOS2, 0: summary row) and ID_BAND is the energy band number as defined by the ordering in which the energy bands are given on the command line (an ID_BAND value of 0 again refers to the summary information). No summary rows are output if source detection is only performed on a single input image.

The source table lists statistical errors for both count rates and source positions. Count rate errors are calculated by assuming Poissonian statistics ( ${\rm error} = \sqrt{\rm counts}$) in both the source and backgound cells (if eboxdetect is run in local mode) and by applying standard error propagation. If run in map mode the background taken from the spline background maps is assumed to be free of statistical errors. Positional errors are assumed to be equal to the standard deviation of the distribution of the counts in the detection cell. The errors of the derived parameters, such as count rates, fluxes, and source positions in celestical coordinates are derived from the count and image pixel positional errors, respectively.

Following the definition which was, e.g., used by the ROSAT mission, detection likelihoods (per energy band and total) are given for each source in the form $L = - \ln p$ where $p$ is the probability of Poissonian random fluctuation of the counts in the detection cell which would have resulted in at least the observed number of source counts. The value of $p$ is calculated using the incomplete Gamma function $P(a,x)$ as a function of raw source counts and raw background counts in the detection box. See Press et al., Numerical Recipes, chapter 6.2 for the calculation of $P(a,x)$.


\begin{displaymath}LIKE = - {\rm ln} p(BOX\_CTS,BG\_RAW\cdot n^2) \end{displaymath}

In case of simultaneous detection runs over several energy bands, the LIKE values from each individual energy band are added and transformed to equivalent single band detection likelihoods using the incomplete Gamma function:


\begin{displaymath}L = P(n,\sum_{i=1}^n L_i) \end{displaymath}

where n is the number of energy bands. A source is included in the output table, if the equivalent single band detection likelihood exceeds the threshold given by parameter likemin.

If detection over several energy bands is performed, up to three hardness ratios are calculated from the source counts in the individual bands. The hardness ratios are defined as follows:


\begin{displaymath}HR_i = \frac{B_m - B_n}{B_m + B_n} \end{displaymath}

where B denotes the count rates in energy bands n and m, respectively. n and m are specified in input parameter hrdef for each of the three hardness ratios. The default band assignement is given in the following table:

$i$ $n$ $m$
1 1 2
2 2 3
3 3 4

The band numbers n, and m (output table column ID_BAND) are assigned to the individual bands by numbering the corresponding input images in the order in which they are given on the command line. It is therefore important that the ordering of the input images is consistent with the contents of hrdef to obtain meaningful hardness ratios.


Use Home Page Parameters Home Index

XMM-Newton SOC/SSC -- 2008-07-02