| 1 |
19 |
gam |
\section{Windowed positional parameters}
|
| 2 |
|
|
\label{chap:winparam}
|
| 3 |
|
|
Parameters measured within an object's isophotal limit are sensitive to
|
| 4 |
25 |
gam |
two main factors: 1) changes in the detection \index{threshold} threshold, which
|
| 5 |
19 |
gam |
create a variable bias and 2) irregularities in the object's
|
| 6 |
25 |
gam |
isophotal \index{boundaries} boundaries, which act as additional ``noise'' in the measurements.
|
| 7 |
19 |
gam |
|
| 8 |
25 |
gam |
Measurements performed through a {\em \index{window} window} function (an {\em envelope}) do
|
| 9 |
19 |
gam |
not have such drawbacks. {\sc SExtractor} versions 2.4 and above implement
|
| 10 |
|
|
``windowed'' versions for most of the measurements described in
|
| 11 |
|
|
\ref{chap:isoparam}:
|
| 12 |
|
|
|
| 13 |
|
|
{\small
|
| 14 |
|
|
\begin{tabular}{ll}
|
| 15 |
25 |
gam |
Isophotal parameters & Equivalent \index{window} \index{windowed} windowed parameters \\
|
| 16 |
19 |
gam |
\hline
|
| 17 |
|
|
{\tt X\_IMAGE}, {\tt Y\_IMAGE} &
|
| 18 |
|
|
{\tt XWIN\_IMAGE}, {\tt YWIN\_IMAGE}\\
|
| 19 |
|
|
{\tt ERRA\_IMAGE}, {\tt ERRB\_IMAGE}, {\tt ERRTHETA\_IMAGE} &
|
| 20 |
|
|
{\tt ERRAWIN\_IMAGE}, {\tt ERRBWIN\_IMAGE}, {\tt ERRTHETAWIN\_IMAGE}\\
|
| 21 |
|
|
{\tt A\_IMAGE}, {\tt B\_IMAGE}, {\tt THETA\_IMAGE} &
|
| 22 |
|
|
{\tt AWIN\_IMAGE}, {\tt BWIN\_IMAGE}, {\tt THETAWIN\_IMAGE}\\
|
| 23 |
|
|
{\tt X2\_IMAGE}, {\tt Y2\_IMAGE}, {\tt XY\_IMAGE} &
|
| 24 |
|
|
{\tt X2WIN\_IMAGE}, {\tt Y2WIN\_IMAGE}, {\tt XYWIN\_IMAGE}\\
|
| 25 |
|
|
{\tt CXX\_IMAGE}, {\tt CYY\_IMAGE}, {\tt CXY\_IMAGE} &
|
| 26 |
|
|
{\tt CXXWIN\_IMAGE}, {\tt CYYWIN\_IMAGE}, {\tt CXYWIN\_IMAGE}\\
|
| 27 |
|
|
\hline
|
| 28 |
|
|
\end{tabular}}
|
| 29 |
|
|
|
| 30 |
|
|
The computations involved are roughly the same except that the pixel values are
|
| 31 |
25 |
gam |
integrated within a circular Gaussian \index{window} window as opposed to the object's
|
| 32 |
19 |
gam |
isophotal footprint.
|
| 33 |
25 |
gam |
The Gaussian \index{window} window is scaled to each object; its \index{FWHM} FWHM is the diameter of the
|
| 34 |
19 |
gam |
disk that contains half of the object flux ($d_{50}$). Note that in double-image
|
| 35 |
25 |
gam |
\index{mode} mode (\S\ref{chap:using}) the \index{window} window is scaled based on the {\em measurement}
|
| 36 |
|
|
\index{image} image. \gam{Can we provide the precise sub-section for this?}
|
| 37 |
19 |
gam |
|
| 38 |
25 |
gam |
\subsection{Windowed \index{centroid} centroid: {\tt XWIN}, {\tt YWIN}}
|
| 39 |
19 |
gam |
\label{chap:wincent}
|
| 40 |
|
|
This is an iterative process. The computation starts by initializing the
|
| 41 |
25 |
gam |
\index{window} \index{windowed} windowed \index{centroid} centroid coordinates $\overline{x_{\tt WIN}}^{(0)}$ and
|
| 42 |
19 |
gam |
$\overline{y_{\tt WIN}}^{(0)}$ to their basic $\overline{x}$ and $\overline{y}$
|
| 43 |
|
|
isophotal equivalents, respectively.
|
| 44 |
|
|
\gam{I understand that the notation {\tt XXX} describes a {\sc SExtractor}
|
| 45 |
|
|
parameter. But then, {\tt XWIN}$^{(t)}$ is abusive, since the output
|
| 46 |
|
|
parameter is only that of the last iteration. Otherwise, it might be
|
| 47 |
|
|
simpler to replace all the $\overline{x_{\tt WIN}^{(i)}}$ by {\tt
|
| 48 |
|
|
XWIN}$^{(i)}$, everywhere in this subsection.}
|
| 49 |
|
|
Then at each iteration $t$,
|
| 50 |
|
|
$\overline{x_{\tt WIN}}$ and $\overline{y_{\tt WIN}}$ are refined using:
|
| 51 |
|
|
\begin{eqnarray}
|
| 52 |
|
|
\label{eq:xwin}
|
| 53 |
|
|
{\tt XWIN}^{(t+1)} & = & \overline{x_{\tt WIN}}^{(t+1)}
|
| 54 |
|
|
= \overline{x_{\tt WIN}}^{(t)} + 2\,\frac{\sum_{r_i^{(t)} < r_{\rm max}}
|
| 55 |
|
|
w_i^{(t)} I_i \ (x_i - \overline{x_{\tt WIN}}^{(t)})}
|
| 56 |
|
|
{\sum_{r_i^{(t)} < r_{\rm max}} w_i^{(t)} I_i},\\
|
| 57 |
|
|
\label{eq:ywin}
|
| 58 |
|
|
{\tt YWIN}^{(t+1)} & = & \overline{y_{\tt WIN}}^{(t+1)}
|
| 59 |
|
|
= \overline{y_{\tt WIN}}^{(t)} + 2\,\frac{\sum_{r_i^{(t)} < r_{\rm max}}
|
| 60 |
|
|
w_i^{(t)} I_i\ (y_i - \overline{y_{\tt WIN}}^{(t)})}
|
| 61 |
|
|
{\sum_{r_i^{(t)} < r_{\rm max}} w_i^{(t)} I_i},
|
| 62 |
|
|
\end{eqnarray}
|
| 63 |
|
|
where
|
| 64 |
|
|
\begin{equation}
|
| 65 |
|
|
w_i^{(t)} = \exp \left(-\frac{r_i^{(t)^2}}{2s_{\tt WIN}^2} \right),
|
| 66 |
|
|
\end{equation}
|
| 67 |
|
|
with
|
| 68 |
|
|
\begin{equation}
|
| 69 |
|
|
r_i^{(t)} = \sqrt{\left(x_i - \overline{x_{\tt WIN}}^{(t)}\right)^2 + \left(y_i
|
| 70 |
|
|
- \overline{y_{\tt WIN}}^{(t)}\right)^2}
|
| 71 |
|
|
\end{equation}
|
| 72 |
|
|
and
|
| 73 |
|
|
$s_{\tt WIN} = d_{50} / \sqrt{8 \ln 2}$.
|
| 74 |
|
|
The process stops when the change in position between two iterations is less
|
| 75 |
|
|
than $2\times10^{-4}$ pixel, a condition which is generally achieved in about 3 to 5
|
| 76 |
|
|
iterations.
|
| 77 |
|
|
|
| 78 |
|
|
Although the iterative nature of the processing slows down the processing \hide{a bit},
|
| 79 |
25 |
gam |
it is recommended to use whenever possible \index{window} \index{windowed} windowed parameters instead of their
|
| 80 |
19 |
gam |
isophotal equivalents, since the measurements they provide
|
| 81 |
25 |
gam |
are much more precise (Fig. \ref{fig:winpres}). The precision in \index{centroid} centroiding
|
| 82 |
19 |
gam |
offered by {\tt XWIN\_IMAGE} and {\tt YWIN\_IMAGE} is actually very close to
|
| 83 |
25 |
gam |
that of \index{PSF} PSF-fitting on focused and properly sampled star \index{image} images, and can also
|
| 84 |
19 |
gam |
be applied to galaxies. It has been verified that for isolated,
|
| 85 |
25 |
gam |
Gaussian-like \index{PSF} PSFs, its accuracy is close to the theoretical limit set by
|
| 86 |
|
|
\index{image} image noise\footnote{see
|
| 87 |
19 |
gam |
{\tt http://www.astromatic.net/forum/showthread.php?tid=581}}.
|
| 88 |
|
|
|
| 89 |
|
|
%------------------------------ Fig. winpres -----------------------------
|
| 90 |
|
|
\begin{figure}[htbp]
|
| 91 |
|
|
\centerline{\includegraphics[width=8cm]{ps/sex_xpres.ps}
|
| 92 |
|
|
\includegraphics[width=8cm]{ps/sex_xw2pres.ps}}
|
| 93 |
25 |
gam |
\caption{Comparison between isophotal and \index{window} \index{windowed} windowed \index{centroid} centroid measurement
|
| 94 |
|
|
accuracies on simulated, background noise-limited \index{image} images.{\em Left}: histogram
|
| 95 |
|
|
of the difference between {\tt X\_IMAGE} and the simulation \index{centroid} centroid in x.
|
| 96 |
19 |
gam |
{\em Right}: histogram of the difference between {\tt XWIN\_IMAGE} and the
|
| 97 |
25 |
gam |
simulation \index{centroid} centroid in x.}
|
| 98 |
19 |
gam |
\label{fig:winpres}
|
| 99 |
|
|
\end{figure}
|
| 100 |
|
|
|
| 101 |
25 |
gam |
\subsection{Windowed 2nd order \index{moments} moments: {\tt X2}, {\tt Y2}, {\tt XY}}
|
| 102 |
|
|
Windowed second-order \index{moments} moments are computed on the \index{image} image data once the centering
|
| 103 |
19 |
gam |
process from \S{\ref{chap:wincent}} has converged:
|
| 104 |
|
|
\begin{eqnarray}
|
| 105 |
|
|
{\tt X2WIN} & = \overline{x_{\tt WIN}^2}
|
| 106 |
|
|
= & \frac{\sum_{r_i < r_{\rm max}} w_i I_i (x_i - \overline{x_{\tt WIN}})^2}
|
| 107 |
|
|
{\sum_{r_i < r_{\rm max}} w_i I_i},\\
|
| 108 |
|
|
{\tt Y2WIN} & = \overline{y_{\tt WIN}^2}
|
| 109 |
|
|
= & \frac{\sum_{r_i < r_{\rm max}} w_i I_i (y_i - \overline{y_{\tt WIN}})^2}
|
| 110 |
|
|
{\sum_{r_i < r_{\rm max}} w_i I_i},\\
|
| 111 |
|
|
{\tt XYWIN} & = \overline{xy_{\tt WIN}}
|
| 112 |
|
|
= & \frac{\sum_{r_i < r_{\rm max}} w_i I_i (x_i - \overline{x_{\tt WIN}})
|
| 113 |
|
|
(y_i - \overline{y_{\tt WIN}})}
|
| 114 |
|
|
{\sum_{r_i < r_{\rm max}} w_i I_i}.
|
| 115 |
|
|
\end{eqnarray}
|
| 116 |
25 |
gam |
Windowed second-order \index{moments} moments are typically twice smaller than their isophotal
|
| 117 |
19 |
gam |
equivalent.
|
| 118 |
|
|
|
| 119 |
|
|
\subsection{Windowed ellipse parameters:
|
| 120 |
|
|
{\tt CXXWIN}, {\tt CYYWIN}, {\tt CXYWIN}}
|
| 121 |
25 |
gam |
They are computed from the \index{window} \index{windowed} windowed 2nd order \index{moments} moments exactly the same way as
|
| 122 |
19 |
gam |
in \S\ref{chap:cxx}.
|
| 123 |
|
|
|
| 124 |
|
|
\subsection{Windowed position errors: {\tt ERRX2WIN}, {\tt ERRY2WIN},
|
| 125 |
|
|
{\tt ERRXYWIN}, {\tt ERRAWIN}, {\tt ERRBWIN}, {\tt ERRTHETAWIN},
|
| 126 |
|
|
{\tt ERRCXXWIN}, {\tt ERRCYYWIN}, {\tt ERRCXYWIN}}
|
| 127 |
25 |
gam |
Windowed position errors are computed on the \index{image} image data once the centering
|
| 128 |
19 |
gam |
process from \S{\ref{chap:wincent}} has converged. Assuming that noise is
|
| 129 |
|
|
uncorrelated among pixels, standard error propagation applied to
|
| 130 |
|
|
(\ref{eq:xwin}) and (\ref{eq:xwin}) gives us:
|
| 131 |
|
|
\begin{eqnarray}
|
| 132 |
|
|
{\tt ERRX2WIN} & = {\rm var}(\overline{x_{\tt WIN}})
|
| 133 |
|
|
= & 4\,\frac{\sum_{r_i < r_{\rm max}} w_i^2 \sigma^2_i (x_i-\overline{x})^2}
|
| 134 |
|
|
{\left(\sum_{r_i < r_{\rm max}} w_i I_i\right)^2},\\
|
| 135 |
|
|
{\tt ERRY2WIN} & = {\rm var}(\overline{y_{\tt WIN}})
|
| 136 |
|
|
= & 4\,\frac{\sum_{r_i < r_{\rm max}} w_i^2 \sigma^2_i (y_i-\overline{y})^2}
|
| 137 |
|
|
{\left(\sum_{r_i < r_{\rm max}} w_i I_i\right)^2},\\
|
| 138 |
|
|
{\tt ERRXYWIN} & = {\rm cov}(\overline{x_{\tt WIN}},\overline{y_{\tt WIN}})
|
| 139 |
|
|
= & 4\,\frac{\sum_{r_i < r_{\rm max}}
|
| 140 |
|
|
w_i^2 \sigma^2_i (x_i-\overline{x_{\tt WIN}})(y_i-\overline{y_{\tt WIN}})}
|
| 141 |
|
|
{\left(\sum_{r_i < r_{\rm max}} w_i I_i\right)^2}.
|
| 142 |
|
|
\end{eqnarray}
|
| 143 |
|
|
|
| 144 |
25 |
gam |
The \index{semi-major} semi-major axis {\tt ERRAWIN}, semi-minor
|
| 145 |
19 |
gam |
axis {\tt ERRBWIN}, and position angle {\tt ERRTHETAWIN} of the
|
| 146 |
25 |
gam |
$1\sigma$ position \index{error ellipse} error ellipse are computed from the \index{covariance} covariance
|
| 147 |
19 |
gam |
matrix elements ${\rm var}(\overline{x_{\tt WIN}})$,
|
| 148 |
|
|
${\rm var}(\overline{y_{\tt WIN}})$,
|
| 149 |
|
|
${\rm cov}(\overline{x_{\tt WIN}},\overline{y_{\tt WIN}})$,
|
| 150 |
|
|
exactly as in \S\ref{chap:poserr}: see eqs. (\ref{eq:erra}),
|
| 151 |
|
|
(\ref{eq:errb}), (\ref{eq:errtheta}), (\ref{eq:errcxx}), (\ref{eq:errcyy})
|
| 152 |
|
|
and (\ref{eq:errcxy}).
|
| 153 |
|
|
|
| 154 |
|
|
%\section{2D-model fitting}
|
| 155 |
|
|
%\subsection{Star/galaxy separation}
|
| 156 |
25 |
gam |
%With the local \index{PSF} PSF and a noise \index{mode} model in hand, one can easily derive an optimum
|
| 157 |
19 |
gam |
%star/galaxy classifier. The problem was first addressed by \cite{sebok:1979}
|
| 158 |
29 |
bertin |
%and \cite{valdes:1982}. If detections can be classified as either a star
|
| 159 |
19 |
gam |
%(s) or a galaxy (g), then the {\em a posteriori} probability for having a
|
| 160 |
|
|
%star, given the observed vector of pixel values $\vec{I}$ is given by the Bayes
|
| 161 |
|
|
%theorem:
|
| 162 |
|
|
%\begin{equation}
|
| 163 |
|
|
%P(s|\vec{I}) = \frac{P(\vec{I}|s)P(s)}{P(\vec{I}|s)P(s)+p(\vec{I}|g)P(g)},
|
| 164 |
|
|
%\end{equation}
|
| 165 |
|
|
%that is,
|
| 166 |
|
|
%\begin{equation}
|
| 167 |
|
|
%P(s|\vec{I}) = \frac{1}{1+\frac{P(\vecs{I}|g)}{P(\vecs{I}|s)}\frac{P(g)}{P(s)}}.
|
| 168 |
|
|
%\end{equation}
|
| 169 |
|
|
%The probability for the detected object to be a star $p(s|\vec{I})$ depends
|
| 170 |
|
|
%on both the likelihood ratio $P(\vec{I}|g)/P(\vec{I}|s)$, and the ratio of
|
| 171 |
|
|
%{\em a priori} $P(g)/P(s)$. If we make the assumption that the measurement
|
| 172 |
25 |
gam |
%noise at pixel $i$ is additive, Gaussian with \index{mean} mean 0 and \index{standard deviation} standard deviation
|
| 173 |
|
|
%$\sigma_i$, and statistically independent from its \index{neighbour} \index{neighbours} neighbours, then we have
|
| 174 |
19 |
gam |
%\begin{equation}
|
| 175 |
|
|
%P(\vec{I}|s) = \prod_i \frac{1}{\sqrt{2\pi}\sigma_i}
|
| 176 |
|
|
% \exp -\frac{(I_i - S_i)^2}{2\sigma^2_i}
|
| 177 |
|
|
%\end{equation}
|
| 178 |
|
|
%and
|
| 179 |
|
|
%\begin{equation}
|
| 180 |
|
|
%P(\vec{I}|g) = \prod_i \frac{1}{\sqrt{2\pi}\sigma_i}
|
| 181 |
|
|
% \exp -\frac{(I_i - G_i)^2}{2\sigma^2_i}
|
| 182 |
|
|
%\end{equation}
|
| 183 |
|
|
%where the $S_i$ and $G_i$ are the pixel values for the best-fitting galaxy and
|
| 184 |
25 |
gam |
%star \index{mode} models, respectively.
|
| 185 |
19 |
gam |
|