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


ewavelet (ewavelet-3.11.2) [xmmsas_20141104_1833-14.0.0]

Description Description The detection threshold Home Index

Meta Index / Home Page / Description


Countrate estimation

The wavelet detection routine is most and for all a detection routine. Countrates can, however, be estimated in a simple way, but with less accuracy than for example a maximum likelihood fitting method.

Countrates are estimated using a countrate image. This countrate image consists of the input image divided by the exposure map. Both the input image and the countrate image are convolved with the Mexican Hat wavelet. If a maximum is found in the convolved input image, a corresponding maximum in the convolved countrate image will be searched for. Multiplying this maximum correlation with $4\pi \sigma^2$ gives an estimate for the source countrate.

In a separate routine the best correlation for a given source for all different wavelet scales will be compared and the most appropriate wavelet scale will be used, in order to obtain the source countrate. In fact, we can do a little better than that: correlation values at two different scales can be used to infer a better estimate for the scale at which the correlation peaks. From eq. (5) it can be derived that the best estimate for the scale, $\sigma'$, at which the wavelet correlation peaks is:


\begin{displaymath}
\sigma' = \sqrt{
\frac{\frac{\sigma_1}{\sigma_2}\sigma_2^2 ...
..._1^2}
{\sqrt{\frac{C_1}{C_2}} - \frac{\sigma_1}{\sigma_2}}
},
\end{displaymath} (6)

$\sigma_1$, $\sigma_2$ are here the two wavelet scales at which the source was detected, and $C_1$ and $C_2$ are the corresponding wavelet correlation values.

Note that this algorithm is more like described by Damiani et al. ([2]), than the algorithm in the Chandra wavelet code.

To estimate the error in the number of counts we have to calculate the variance, and for the error in eq. (6) also the covariance, related to eq. (5). We assume here that the image to be analysed is a photon count image, i.e. the errors per pixel follow a Poisson distribution. For a Gaussian source shape we obtain for the covariance between wavelet scales $\sigma_1$ and $\sigma_2$:

$\displaystyle {
[(W_1W_2)*S]_{max} =}$
$\displaystyle {
\frac{N_{src}}{(2\pi)^3 \sigma_1^2\sigma_2^2a^2}
\int_0^{\inft...
...\Bigl(N_{src}\exp\bigl(-\frac{r^2}{2 a^2}\bigr) + 2\pi a^2b\Bigl) 2\pi r dr = }$
    $\displaystyle \frac{N_{src}}{2\pi^2(a^2\sigma_1^2 + a^2\sigma_2^2 + \sigma_1^2\...
..._2^2}\Bigr) + \frac{4 \sigma_1^2\sigma_2^2 b}{\pi (\sigma_1^2 + \sigma_2^2)^3},$ (7)

where $s^2 = 2a^2\sigma_1^2\sigma_2^2/(\sigma_1^2\sigma_2^2 + \sigma_2^2a^2 + a^2\sigma_1^2)$.

To calculate the variance we can simply set $\sigma_1 = \sigma_2 = \sigma$:

$\displaystyle {
[W^2*S]_{max} =
\frac{1}{2\pi\sigma^2} \frac{1}{2\pi\sigma^2} ...
...)
\Bigl(N_{src}\exp\bigl(-\frac{r^2}{2 a^2}\bigr)+ 2\pi a^2b \Bigl)2\pi rdr =}$
    $\displaystyle \frac{1}{2\pi\sigma^2} \frac{N_{src}}{2\pi a^2} \frac{1}{1 + \fra...
...2} +
\frac{1}{ (1+\frac{1}{2}(\sigma/a)^2)^2} \Bigr) + \frac{b}{2\pi\sigma^2}.$ (8)

The error in the correlation is the square root of this expression.


Description Description The detection threshold Home Index

XMM-Newton SOC/SSC -- 2014-11-04