public documents.sextractor_doc

[/] [measure_astrom.tex] - Blame information for rev 29

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 gam
\section{Positional parameters derived from the isophotal profile}
2
\label{chap:isoparam}
3
The following parameters are derived from the spatial distribution $\cal S$ of pixels detected
4 25 gam
above the extraction \index{threshold} threshold. {\em The pixel values $I_i$ are taken from the (filtered)
5
detection \index{image} image}.
6 19 gam
 
7
{\bf Note that, unless otherwise noted, all parameter names given
8
below are only prefixes. They must be followed by "{\tt\_IMAGE}" if
9
the results shall be expressed in pixel units (see \S..), or
10
"{\tt\_WORLD}" for World Coordinate System (WCS) units (see
11
\S\ref{astrom})}. For example: {\tt THETA} $\rightarrow$ {\tt
12 25 gam
THETA\_IMAGE}. In all cases, parameters are first computed in the \index{image} image
13
coordinate system, and then converted to \index{WCS} WCS if requested.
14 19 gam
 
15
\subsection{Limits: {\tt XMIN}, {\tt YMIN}, {\tt XMAX}, {\tt YMAX}}
16
These coordinates define two corners of a rectangle which encloses the detected object:
17
\begin{eqnarray}
18
{\tt XMIN} & = & \min_{i \in {\cal S}} x_i,\\
19
{\tt YMIN} & = & \min_{i \in {\cal S}} y_i,\\
20
{\tt XMAX} & = & \max_{i \in {\cal S}} x_i,\\
21
{\tt YMAX} & = & \max_{i \in {\cal S}} y_i,
22
\end{eqnarray}
23
where $x_i$ and $y_i$ are respectively the x-coordinate and y-coordinate of pixel $i$.
24
 
25
\subsection{Barycenter: {\tt X}, {\tt Y}}
26
Barycenter coordinates generally define the position of the ``center'' of a source,
27
although this definition can be inadequate or inaccurate if its spatial profile shows
28
a strong skewness or very large wings. {\tt X} and {\tt Y} are simply computed
29 25 gam
as the first order \index{moments} moments of the profile:
30 19 gam
\begin{eqnarray}
31
{\tt X} & = & \overline{x} = \frac{\displaystyle \sum_{i \in {\cal S}}
32
I_i x_i}{\displaystyle \sum_{i \in {\cal S}} I_i},\\ {\tt Y} & = &
33
\overline{y} = \frac{\displaystyle \sum_{i \in {\cal S}} I_i
34
y_i}{\displaystyle \sum_{i \in {\cal S}} I_i}.
35
\end{eqnarray}
36
In practice, $x_i$ and $y_i$ are summed relative to
37
{\tt XMIN} and {\tt YMIN} in order to reduce roundoff errors in the summing.
38
\gam{Could be summed relative to {\tt XPEAK} and {\tt YPEAK} (which would be
39
  computed first) for smaller
40
  roundoff errors.}
41
 
42
\subsection{Position of the peak: {\tt XPEAK}, {\tt YPEAK}}
43
It is sometimes useful to have the position {\tt XPEAK},{\tt YPEAK} of
44
the pixel with maximum intensity in a detected object, for instance
45
when working with likelihood maps, or when searching for artifacts.
46
For better robustness, {\tt PEAK} coordinates are computed on {\em
47
filtered} profiles if available. On symmetrical profiles, {\tt PEAK}
48 25 gam
positions and \index{barycenter} barycenters coincide within a fraction of pixel ({\tt
49 19 gam
XPEAK} and {\tt YPEAK} coordinates are quantized by steps of 1 pixel,
50
thus {\tt XPEAK\_IMAGE} and {\tt YPEAK\_IMAGE} are integers). This is
51
no longer true for skewed profiles, therefore a simple comparison
52 25 gam
between {\tt PEAK} and \index{barycenter} barycenter coordinates can be used to identify
53
asymmetrical objects on well-sampled \index{image} images.
54 19 gam
 
55 25 gam
\subsection{2nd order \index{moments} moments: {\tt X2}, {\tt Y2}, {\tt XY}}
56
(Centered) second-order \index{moments} moments are convenient for measuring the spatial spread of a source
57 19 gam
profile. In {\sc SExtractor} they are computed with:
58
\begin{eqnarray}
59
{\tt X2} & = \overline{x^2} = & \frac{\displaystyle \sum_{i \in {\cal
60
S}} I_i x_i^2}{\displaystyle \sum_{i \in {\cal S}} I_i} -
61
\overline{x}^2,\\ {\tt Y2} & = \overline{y^2} = & \frac{\displaystyle
62
\sum_{i \in {\cal S}} I_i y_i^2}{\displaystyle \sum_{i \in {\cal S}}
63
I_i} - \overline{y}^2,\\ {\tt XY} & = \overline{xy} = &
64
\frac{\displaystyle \sum_{i \in {\cal S}} I_i x_i y_i}{\displaystyle
65
\sum_{i \in {\cal S}} I_i} - \overline{x}\,\overline{y},
66
\end{eqnarray}
67 25 gam
These expressions are more subject to roundoff errors than if the 1st-order \index{moments} moments were
68
subtracted before summing, but allow both 1st and 2nd order \index{moments} moments to be computed in one
69 19 gam
pass. Roundoff errors are however kept to a negligible value by measuring all positions
70
relative here again to {\tt XMIN} and {\tt YMIN}.
71
\gam{Could be summed relative to
72
{\tt XPEAK} and {\tt YPEAK} or
73
{\tt X} and {\tt Y}
74
for smaller roundoff errors.}
75
 
76
\subsection{Basic shape parameters: {\tt A}, {\tt B}, {\tt THETA}}
77
\label{chap:abtheta}
78
These parameters are intended to describe the detected object as an elliptical
79 25 gam
shape. {\tt A} and {\tt B} are its \index{semi-major} semi-major and \index{semi-minor axis} semi-minor axis lengths,
80 19 gam
respectively. More precisely, they represent the maximum and minimum spatial
81
\rms dispersion of the object profile along any direction. {\tt THETA} is the
82 29 bertin
position-angle of the {\tt A} axis relative to the first image axis. It is counted positive in the direction of the second axis. Here is how they are computed:
83 19 gam
 
84 25 gam
2nd-order \index{moments} moments can easily be expressed in a referential rotated from the
85
$x,y$ \index{image} image coordinate system
86 19 gam
by an angle +$\theta$:
87
\begin{equation}
88
\label{eq:varproj}
89
\begin{array}{lcrrr}
90
\overline{x_{\theta}^2} & = & \cos^2\theta\:\overline{x^2} & +\,\sin^2\theta\:\overline{y^2}
91
                        & -\,2 \cos\theta \sin\theta\:\overline{xy},\\
92
\overline{y_{\theta}^2} & = & \sin^2\theta\:\overline{x^2} & +\,\cos^2\theta\:\overline{y^2}
93
                        & +\,2 \cos\theta \sin\theta\:\overline{xy},\\
94
\overline{xy_{\theta}} & = & \cos\theta \sin\theta\:\overline{x^2} &
95
-\,\cos\theta \sin\theta\:\overline{y^2} & +\,(\cos^2\theta -
96
\sin^2\theta)\:\overline{xy}.
97
\end{array}
98
\end{equation}
99
One can find interesting angles $\theta_0$ for which the variance is
100
minimized (or maximized) along $x_{\theta}$:
101
\begin{equation}
102
{\left.\frac{\partial \overline{x_{\theta}^2}}{\partial \theta} \right|}_{\theta_0} = 0,
103
\end{equation}
104
which leads to
105
\begin{equation}
106
2 \cos\theta \sin\theta_0\:(\overline{y^2} - \overline{x^2})
107
        + 2 (\cos^2\theta_0 - \sin^2\theta_0)\:\overline{xy} = 0.
108
\end{equation}
109
If $\overline{y^2} \neq \overline{x^2}$, this implies:
110
\begin{equation}
111
\label{eq:theta0}
112
\tan 2\theta_0 = 2 \frac{\overline{xy}}{\overline{x^2} - \overline{y^2}},
113
\end{equation}
114 25 gam
a result which can also be obtained by requiring the \index{covariance} covariance
115 19 gam
$\overline{xy_{\theta_0}}$ to be null.
116
Over the domain $[-\pi/2, +\pi/2[$, two different angles --- with opposite signs --- satisfy
117
(\ref{eq:theta0}).
118
By definition, {\tt THETA} is the position angle for which
119
$\overline{x_{\theta}^2}$ is {\em max}\,imized.
120
{\tt THETA} is therefore the solution to (\ref{eq:theta0}) that has the same sign as
121 25 gam
the \index{covariance} covariance $\overline{xy}$.
122 19 gam
{\tt A} and {\tt B} can now simply be expressed as:
123
\begin{eqnarray}
124
{\tt A}^2 & = & \overline{x^2}_{\tt THETA},\ \ \ {\rm and}\\
125
{\tt B}^2 & = & \overline{y^2}_{\tt THETA}.
126
\end{eqnarray}
127 25 gam
{\tt A} and {\tt B} can be computed directly from the 2nd-order \index{moments} moments, using the following
128 19 gam
equations derived from (\ref{eq:varproj}) after some algebra:
129
\begin{eqnarray}
130
\label{eq:aimage}
131
{\tt A}^2 & = & \frac{\overline{x^2}+\overline{y^2}}{2}
132
        + \sqrt{\left(\frac{\overline{x^2}-\overline{y^2}}{2}\right)^2 + \overline{xy}^2},\\
133
{\tt B}^2 & = & \frac{\overline{x^2}+\overline{y^2}}{2}
134
        - \sqrt{\left(\frac{\overline{x^2}-\overline{y^2}}{2}\right)^2 + \overline{xy}^2}.
135
\end{eqnarray}
136
Note that {\tt A} and {\tt B} are exactly halves the $a$ and $b$
137 25 gam
parameters computed by the \index{COSMOS} COSMOS \index{image} image analyser (Stobie 1980,1986).
138
Actually, $a$ and $b$ are defined by Stobie as the \index{semi-major} semi-major and
139 19 gam
semi-minor axes of an elliptical shape with constant surface
140 25 gam
brightness, which would have the same 2nd-order \index{moments} moments as the
141 19 gam
analysed object.
142
 
143
\subsection{Ellipse parameters: {\tt CXX}, {\tt CYY}, {\tt CXY}}
144
\label{chap:cxx}
145
{\tt A}, {\tt B} and {\tt THETA} are not very convenient to use when,
146
for instance, one wants to know if a particular {\sc SExtractor}
147
detection extends over some position. For this kind of application,
148
three other ellipse parameters are provided; {\tt CXX}, {\tt CYY} and
149
{\tt CXY}. They do nothing more than describing the same ellipse, but
150
in a different way: the elliptical shape associated to a detection is
151
now parameterized as
152
\begin{equation}
153
{\tt CXX} (x-\overline{x})^2 + {\tt CYY} (y-\overline{y})^2
154
        + {\tt CXY} (x-\overline{x})(y-\overline{y}) = R^2,
155
\end{equation}
156
where $R$ is a parameter which scales the ellipse, in units of {\tt A}
157
(or {\tt B}). Generally, the isophotal limit of a detected object is
158
well represented by $R\approx 3$ (Fig. \ref{fig:ellipse}). Ellipse
159 25 gam
parameters can be derived from the 2nd order \index{moments} moments:
160 19 gam
\begin{eqnarray}
161
{\tt CXX} & = & \frac{\cos^2 {\tt THETA}}{{\tt A}^2} + \frac{\sin^2
162
{\tt THETA}}{{\tt B}^2} =
163
\frac{\overline{y^2}}{\sqrt{\left(\frac{\overline{x^2}-\overline{y^2}}{2}\right)^2
164
+ \overline{xy}^2}}\\ {\tt CYY} & = & \frac{\sin^2 {\tt THETA}}{{\tt
165
A}^2} + \frac{\cos^2 {\tt THETA}}{{\tt B}^2} =
166
\frac{\overline{x^2}}{\sqrt{\left(\frac{\overline{x^2}-\overline{y^2}}{2}\right)^2
167
+ \overline{xy}^2}}\\ {\tt CXY} & = & 2 \,\cos {\tt THETA}\,\sin {\tt
168
THETA} \left( \frac{1}{{\tt A}^2} - \frac{1}{{\tt B}^2}\right) = -2\,
169
\frac{\overline{xy}}{\sqrt{\left(\frac{\overline{x^2}-\overline{y^2}}{2}\right)^2
170
+ \overline{xy}^2}}
171
\end{eqnarray}
172
 
173
 
174
%------------------------------ Fig. phot -----------------------------
175
   \begin{figure}[htbp]
176
      \centerline{\includegraphics[width=16cm]{ps/ellipse.ps}}
177
      \caption{
178 25 gam
              The \index{mean} meaning of basic shape parameters.
179 19 gam
              }
180
      \label{fig:ellipse}
181
   \end{figure}
182
 
183
\subsection{By-products of shape parameters: {\tt ELONGATION} and
184
{\tt ELLIPTICITY}}
185
 
186
\footnote{Such parameters are dimensionless
187
and therefore do not accept any {\tt \_IMAGE} or {\tt \_WORLD} suffix}
188
 
189
These parameters are directly derived from {\tt A} and {\tt B}:
190
\begin{eqnarray}
191
{\tt ELONGATION} & = & \frac{\tt A}{\tt B}\ \ \ \ \ \mbox{and}\\
192
{\tt ELLIPTICITY} & = & 1 - \frac{\tt B}{\tt A}.
193
\end{eqnarray}
194
 
195
\subsection{Position errors: {\tt ERRX2}, {\tt ERRY2}, {\tt ERRXY},
196
{\tt ERRA}, {\tt ERRB}, {\tt ERRTHETA}, {\tt ERRCXX}, {\tt ERRCYY},
197
{\tt ERRCXY}}
198
\label{chap:poserr}
199 25 gam
Uncertainties on the position of the \index{barycenter} barycenter can be estimated using
200 19 gam
photon statistics. Of course, this kind of estimate has to be
201
considered as a lower-value of the real error since it does not
202
include, for instance, the contribution of detection biases or the
203 25 gam
contamination by \index{neighbour} \index{neighbours} neighbours. As {\sc SExtractor} does not currently
204 19 gam
take into account possible correlations between pixels, the variances
205
simply write:
206
\begin{eqnarray}
207
{\tt ERRX2} & = {\rm var}(\overline{x}) = & \frac{\displaystyle
208
\sum_{i \in {\cal S}} \sigma^2_i (x_i-\overline{x})^2} {\displaystyle
209
\left(\sum_{i \in {\cal S}} I_i\right)^2},\\ {\tt ERRY2} & = {\rm
210
var}(\overline{y}) = & \frac{\displaystyle \sum_{i \in {\cal S}}
211
\sigma^2_i (y_i-\overline{y})^2} {\displaystyle \left(\sum_{i \in
212
{\cal S}} I_i\right)^2},\\ {\tt ERRXY} & = {\rm
213
cov}(\overline{x},\overline{y}) = & \frac{\displaystyle \sum_{i \in
214
{\cal S}} \sigma^2_i (x_i-\overline{x})(y_i-\overline{y})}
215
{\displaystyle \left(\sum_{i \in {\cal S}} I_i\right)^2}.
216
\end{eqnarray}
217
$\sigma_i$ is the flux uncertainty estimated for pixel $i$:
218
\begin{equation}
219
\sigma^2_i = {\sigma_B}^2_i + \frac{I_i}{g_i},
220
\end{equation}
221 25 gam
where ${\sigma_B}_i$ is the \index{local background} local background noise and $g_i$ the local
222
\index{gain} gain --- conversion factor --- for pixel $i$ (see
223 19 gam
\S\ref{chap:weight} for more details). Semi-major axis {\tt ERRA}, semi-minor
224
axis {\tt ERRB}, and position angle {\tt ERRTHETA} of the
225 25 gam
$1\sigma$ position \index{error ellipse} error ellipse are computed from the \index{covariance} covariance
226 19 gam
matrix exactly like in \ref{chap:abtheta} for shape parameters:
227
\begin{eqnarray}
228
\label{eq:erra}
229
{\tt ERRA}^2 & = & \frac{{\rm var}(\overline{x})+{\rm var}(\overline{y})}{2}
230
        + \sqrt{\left(\frac{{\rm var}(\overline{x})-{\rm var}(\overline{y})}{2}\right)^2
231
        + {\rm cov}^2(\overline{x},\overline{y})},\\
232
\label{eq:errb}
233
{\tt ERRB}^2 & = & \frac{{\rm var}(\overline{x})+{\rm var}(\overline{y})}{2}
234
        - \sqrt{\left(\frac{{\rm var}(\overline{x})-{\rm var}(\overline{y})}{2}\right)^2
235
        + {\rm cov}^2(\overline{x},\overline{y})},\\
236
\label{eq:errtheta}
237
\tan (2{\tt ERRTHETA}) & = & 2 \,\frac{{\rm cov}(\overline{x},\overline{y})}
238
                                        {{\rm var}(\overline{x}) - {\rm var}(\overline{y})}.
239
\end{eqnarray}
240
And the ellipse parameters are:
241
\begin{eqnarray}
242
\label{eq:errcxx}
243
{\tt ERRCXX} & = & \frac{\cos^2 {\tt ERRTHETA}}{{\tt ERRA}^2} +
244
\frac{\sin^2 {\tt ERRTHETA}}{{\tt ERRB}^2} = \frac{{\rm
245
var}(\overline{y})}{\sqrt{\left(\frac{{\rm var}(\overline{x}) -{\rm
246
var}(\overline{y})}{2}\right)^2 + {\rm
247
cov}^2(\overline{x},\overline{y})}},\\
248
\label{eq:errcyy}
249
{\tt ERRCYY} & = & \frac{\sin^2
250
{\tt ERRTHETA}}{{\tt ERRA}^2} + \frac{\cos^2 {\tt ERRTHETA}}{{\tt
251
ERRB}^2} = \frac{{\rm var}(\overline{x})}{\sqrt{\left(\frac{{\rm
252
var}(\overline{x}) -{\rm var}(\overline{y})}{2}\right)^2 + {\rm
253
cov}^2(\overline{x},\overline{y})}},\\
254
\label{eq:errcxy}
255
{\tt ERRCXY} & = & 2 \cos {\tt
256
ERRTHETA}\,\sin {\tt ERRTHETA} \left( \frac{1}{{\tt ERRA}^2} -
257
\frac{1}{{\tt ERRB}^2}\right)\\ & = & -2 \,\frac{{\rm
258
cov}(\overline{x},\overline{y})}{\sqrt{\left(\frac{{\rm
259
var}(\overline{x}) -{\rm var}(\overline{y})}{2}\right)^2 + {\rm
260
cov}^2(\overline{x},\overline{y})}}.
261
\end{eqnarray}
262
 
263
\subsection{Handling of ``infinitely thin'' detections}
264
Apart from the mathematical singularities that can be found in some of
265
the above equations describing shape parameters (and which {\sc
266
SExtractor} handles, of course), some detections with very specific
267
shapes may yield quite unphysical parameters, namely null values for
268
{\tt B}, {\tt ERRB}, or even {\tt A} and {\tt ERRA}. Such detections
269
include single-pixel objects and horizontal, vertical or diagonal
270
lines which are 1-pixel wide. They will generally originate from
271 25 gam
\index{glitch} \index{glitches} glitches; but very undersampled and/or low S/N genuine sources may
272 19 gam
also produce such shapes. \hide{How to handle them?}
273
 
274
For basic shape parameters, the following convention was adopted: if
275
the light distribution of the object falls on one single pixel, or
276
lies on a sufficiently thin line of pixels, which we translate
277
mathematically by
278
\begin{equation}
279
\label{eq:singutest}
280
\overline{x^2}\,\overline{y^2} - \overline{xy}^2 < \rho^2,
281
\end{equation}
282
then $\overline{x^2}$ and $\overline{y^2}$ are incremented by $\rho$.
283
{\sc SExtractor} sets $\rho=1/12$, which is the variance of a
284
1-dimensional top-hat distribution with unit width. Therefore
285
$1/\sqrt{12}$ represents the typical minor-axis values assigned (in
286
pixels units) to undersampled sources in {\sc SExtractor}.
287
 
288
Positional errors are more difficult to handle, as objects with very
289
high signal-to-noise can yield extremely small position uncertainties,
290
just like singular profiles do. Therefore {\sc SExtractor} first
291
checks that (\ref{eq:singutest}) is true. If this is the case, a new
292
test is conducted:
293
\begin{equation}
294
\label{eq:singutest2}
295
{\rm var}(\overline{x})\,{\rm var}(\overline{y}) - {\rm
296
covar}^2(\overline{x}, \overline{y}) < \rho^2_e,
297
\end{equation}
298
where $\rho_e$ is arbitrarily set to $\left( \sum_{i \in {\cal S}}
299
\sigma^2_i \right) / \left(\sum_{i \in {\cal S}} I_i\right)^2$. If
300
(\ref{eq:singutest2}) is true, then $\overline{x^2}$ and
301
$\overline{y^2}$ are incremented by $\rho_e$.
302