next up previous 206
Next: PHOTOPT - examining PHOTOM's performance
Up: PHOTOM A Photometry Package
Previous: Explaining optimal photometry


Calculation of the errors

The errors are calculated in one of four ways, as discussed in the section on command P. The first method assumes true photon statistics and the error is calculated from the following definitions:

Number of pixels in object aperture $= a_o$
Number of pixels in sky aperture $= a_s$
Sum of data in object aperture $= D_o$
Sum of data in sky aperture $= D_s$
Offset in one pixel $= BIASLE$
Number of photons per data unit $= PADU$

The contribution of the sky in the object aperture can now be calculated:

Number of photons in object aperture $= P_o = PADU * ( D_o - a_o * BIASLE )$
Number of photons in sky aperture $= P_s = PADU * ( D_s - a_s * BIASLE )$
Number of photons in object aperture due to sky $= P_{so} = PADU * ( D_s - a_s * BIASLE ) * ( a_o / a_s )$

The signal due to the object is the difference of the total number of photons in the object aperture minus the number due to the sky:

Object signal $= S_o = P_o - P_{so} = PADU * ( D_o - D_s * ( a_o / a_s ) )$

The error on the object signal is the quadratic sum of the errors on the individual measurements. Using $\varepsilon$ to signify the error:


\begin{displaymath}\varepsilon( S_o )^2 \sim \varepsilon( D_o )^2 + \varepsilon( D_s )^2 *
( a_o / a_s )^2\end{displaymath}

Assuming the errors are solely from photon statistics then the error on the signal is:


\begin{displaymath}\varepsilon( S_o )^2 = \varepsilon( P_o )^2 + \varepsilon( P_s )^2 *
( a_o / a_s )^2\end{displaymath}

The error from photon counting is the square root of the number of photons:

$\varepsilon( P_o ) = \sqrt{ P_o }$ and $\varepsilon( P_s ) = \sqrt{ P_s }$

Therefore:

\begin{displaymath}\underline{
\varepsilon( S_o )^2 = P_o + P_s * ( a_o^2 / a_s^...
...o + D_s *( a_o^2 / a_s^2 ) -
BIASLE * a_o ( 1 + a_o / a_s ) )}\end{displaymath} (1)

The second method of calculating the errors assumes that the variance in the sky aperture corresponds to the photon noise. This allows the photon errors to be calculated without knowing BIASLE. One additional definition has to be given:

Standard deviation in sky aperture per pixel in data units $=\sigma_s$

If the photon error $\sqrt{P_s}$ is equated to the standard deviation $PADU * \sigma_s$ then the total number of photons in the sky aperture is given by:


\begin{displaymath}P_s = a_s * PADU^2 * \sigma_s^2\end{displaymath}

The offset in the sky aperture can now be calculated:

\begin{displaymath}BIASLE = ( D_s / a_s ) - ( PADU * \sigma_s^2 )\end{displaymath}

Substituting this into the calculation of the error gives:

\begin{displaymath}\varepsilon( S_o )^2 = PADU * ( D_o - D_s * ( a_o / a_s ) +
PADU * \sigma_s^2 * a_o * ( 1 + a_o / a_s ) )\end{displaymath}

or

\begin{displaymath}\underline{
\varepsilon( S_o )^2 = S_o + PADU^2 * \sigma_s^2 * a_o * ( 1 + a_o / a_s ) )
}\end{displaymath} (2)

The third method of calculating the errors sums the data variances from the variance component of an NDF. Two additional definitions have to be given:

Sum of variance in object aperture $= V_o$
Sum of variance in sky aperture $= V_s$

The error is then calculated from:

\begin{displaymath}\underline{
\varepsilon( S_o )^2 = PADU^2 * ( V_o + V_s * ( a_o / a_s )^2 )
}\end{displaymath} (3)

The magnitude error is calculated from differentiating the magnitude equation:

\begin{displaymath}m=-2.5\log_{10}S_o\end{displaymath}

thus:

\begin{displaymath}\underline{dm=\frac{-2.5}{\ln10}*\frac{\varepsilon(S_o)}{S_o}}\end{displaymath}

The fourth method is like method two, but the sky variations are interpreted by a gaussian error source, so PADU and BIASLE are not required. With guassian errors the source signal is effectively zero (since it has the same noise per pixel as the sky), so

\begin{displaymath}\underline{
\varepsilon( S_o ) = PADU * \sigma_s * \sqrt( a_o )
}\end{displaymath} (4)

and
\begin{displaymath}\underline{
S_o = PADU * ( D_o - D_s * ( a_o / a_s ) )
}\end{displaymath} (5)

so the PADUs cancel out in the $dm$ calculation.



next up previous 206
Next: PHOTOPT - examining PHOTOM's performance
Up: PHOTOM A Photometry Package
Previous: Explaining optimal photometry

PHOTOM --- A Photometry Package
Starlink User Note 45
Nicholas Eaton, Peter W. Draper & Alasdair Allan
27th November 2009
E-mail:starlink@jiscmail.ac.uk

Copyright © 2013 Science and Technology Facilities Council