Photom.rst 10.2 KB
Newer Older
1
2
.. File Photom.rst

3
4
.. include:: global.rst

5
6
7
Photometry
==========

8
9
Besides PSF and model-fitting flux estimates, |SExtractor| can currently perform four types of flux measurements: isophotal, *corrected-isophotal*, fixed-aperture and *adaptive-aperture*.
For every :param:`FLUX_` measurement, an error estimate :param:`FLUXERR_`, a magnitude :param:`MAG_` and a magnitude error estimate :param:`MAGERR_` are also available.
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
The ``MAG_ZEROPOINT`` configuration parameter sets the magnitude zero-point
of magnitudes:

.. math::
 :label: mag

   {\tt MAG} = \mathrm{MAG\_ZEROPOINT} - 2.5 \log_{10} {\tt FLUX}

Magnitude uncertainties (error estimates) are computed using

.. math::
 :label: magerr

   {\tt MAGERR} = \frac{2.5}{\ln 10}\frac{\tt FLUXERR}{\tt FLUX}

25

26
.. _flux_iso_def:
27

28
29
30
Isophotal flux
--------------

31
:param:`FLUX_ISO` is computed simply by integrating pixels values within the detection footprint, with the additional constraint that the background-subtracted, filtered value of detection image pixels must exceed the threshold set with the ``ANALYSIS_THRESH`` configuration parameter.
32
33
34
35
36
37
38
 
.. math::
 :label: fluxiso

   {\tt FLUX\_ISO} = \sum_{i \in {\cal S}} I_i


39
40
41
42
.. _mag_isocor_def:

Corrected isophotal magnitude
-----------------------------
43

44
45
46
:param:`MAG_ISOCOR` can be considered as a quick-and-dirty way for retrieving the fraction of flux lost by isophotal magnitudes.
Although their use is now deprecated, they have been kept in |SExtractor| v2.x and above for compatibility with |SExtractor| v1.
If we make the assumption that the intensity profiles of the faint objects recorded in the frame are roughly Gaussian because of atmospheric blurring, then the fraction :math:`\eta = \frac{I_{\rm iso}}{I_{\rm tot}}` of the total flux enclosed within a particular isophote reads :cite:`1990MNRAS_246_433M`:
47
48
49
50
51
52

.. math::
  :label: isocor

   \left(1-\frac{1}{\eta}\right ) \ln (1-\eta) = \frac{A\,t}{I_{\rm iso}}

53
54
where :math:`A` is the area and :math:`t` the threshold related to this isophote.
:eq:isocor is not analytically invertible, but a good approximation to :math:`\eta` (error :math:`< 10^{-2}` for :math:`\eta > 0.4`) can be done with the second-order polynomial fit:
55
56
57
58
59
60
61

.. math::
 :label: isocor2

   \eta \approx 1 - 0.1961 \frac{A\,t}{I_{\rm iso}} - 0.7512
   \left( \frac{A\,t}{I_{\rm iso}}\right)^2 \label{eq:isocor}

62
A “total” magnitude :param:`MAG_ISOCOR` estimate is then
63
64
65
66
67
68

.. math::
 :label: magisocor

   {\tt MAG\_ISOCOR} = {\tt MAG\_ISO} + 2.5 \log_{10} \eta

69
70
Clearly this cheap correction works best with stars; and although it is shown to give tolerably accurate results with most disk galaxies, it fails with ellipticals because of the broader wings of their profiles.

71
72

.. _flux_aper_def:
73
74
75
76

Fixed-aperture flux
-------------------

77
:param:`FLUX_APER` estimates the flux above the background within a circular
78
79
80
aperture. The diameter of the aperture in pixels is defined by the
``PHOTOM_APERTURES`` configuration parameter. It does not have to be an
integer: each “normal” pixel is subdivided in :math:`5\times 5` sub-pixels
81
82
before measuring the flux within the aperture. If :param:`FLUX_APER` is provided as a
vector :param:`FLUX_APER[n]`, at least :math:`n` apertures must be
83
84
85
specified with ``PHOTOM_APERTURES``.


86
87
88
89
90
91
.. _flux_auto_def:

Automatic aperture flux
-----------------------

:param:`FLUX_AUTO` provides an estimate of the “total flux” by integrating pixel values within an adaptively scaled aperture.
92
93
94
|SExtractor|’s automatic aperture photometry routine is inspired by Kron’s “first moment” algorithm :cite:`1980ApJS_43_305K`.

#. An elliptical aperture is defined whose elongation :math:`\epsilon` and position angle :math:`\theta` are defined by second order moments of the object’s light distribution. The ellipse is scaled to :math:`R_{\rm max}.\sigma_{\rm iso}`
95
(:math:`6 \sigma_{\rm iso}`, which corresponds roughly to 2 isophotal
96
97
“radii”).
#. Within this aperture the “first moment” is computed:
98
99
100

.. math:: r_1 = \frac{\sum r\,I(r)}{\sum I(r)}

101
102
103
104
105
106
107
:cite:`1980ApJS_43_305K` and :cite:`1987AA_183_177I` have shown that for stars and galaxy profiles convolved with Gaussian seeing, :math:`\ge 90\%` of the flux is expected to lie within a circular aperture of radius :math:`k r_1` if :math:`k = 2`, almost independently of their magnitude.
This picture remains unchanged if one considers an ellipse with :math:`\epsilon\, k r_1` and :math:`k r_1 / \epsilon` as principal axes.
:math:`k = 2` defines a sort of balance between systematic and random errors.
By choosing a larger :math:`k = 2.5`, the mean fraction of flux lost drops from about 10% to 6%.
When Signal to Noise is low, it may appear that an erroneously small aperture is taken by the algorithm.
That’s why we have to bound the smallest accessible aperture to :math:`R_{\rm min}` (typically :math:`R_{\rm min} = 3 - 4\,\sigma_{\rm iso}`).
The user has full control over the parameters :math:`k` and :math:`R_{\rm min}` through the configuration parameters ``PHOT_AUTOPARAMS``; by default, ``PHOT_AUTOPARAMS`` is set to ``2.5,3.5``.
108
109

.. figure:: ps/simlostflux.ps
110
   :alt:  Flux lost (expressed as a mean magnitude difference) with different faint-object photometry techniques as a function of total magnitude (see text). Only isolated galaxies (no blends) of the simulations have been considered.
111
112
   :width: 15.00000cm

113
   Flux lost (expressed as a mean magnitude difference) with different
114
115
116
117
   faint-object photometry techniques as a function of total magnitude
   (see text). Only isolated galaxies (no blends) of the simulations
   have been considered. 

118
119
120
121
122
123
124
125
126
127
128
129
.. hint::
  Aperture magnitudes are sensitive to crowding.
  In |SExtractor| v1, :param:`MAG_AUTO` measurements were not very robust in that respect.
  It was therefore suggested to replace the aperture magnitude by the corrected-isophotal one when an object is too close to its neighbors (2 isophotal radii for instance).
  This was done automatically when using the :param:`MAG_BEST` magnitude: :math:`{\tt MAG\_BEST} = {\tt MAG\_AUTO}` when it is sure that no neighbor can bias :param:`MAG_AUTO` by more than 10%, and :math:`{\tt MAG\_BEST} = {\tt MAG\_ISOCOR}` otherwise.
  Experience showed that the :param:`MAG_ISOCOR` and :param:`MAG_AUTO` magnitude would loose about the same fraction of flux on stars or compact galaxy profiles: around 0.06 % for default extraction parameters.
  The use of :param:`MAG_BEST` is now deprecated as :param:`MAG_AUTO` measurements are much more robust in versions 2.x of |SExtractor|.
  The first improvement is a crude subtraction of all the neighbors that have been detected around the measured source (``MASK_TYPE BLANK`` option).
  The second improvement is an automatic correction of parts of the aperture that are suspected to be contaminated by a neighbor.
  This is done by mirroring the opposite, cleaner side of the measurement ellipse if available (``MASK_TYPE CORRECT`` option, which is also the default).

Figure [figphot] shows the mean loss of flux measured with isophotal (threshold 24.4 magnitude.arsec\ :sup:`-2`), corrected isophotal and automatic aperture photometry for simulated galaxies on a typical Schmidt-survey B\ :sub:`J` plate image.
130
The automatic adaptive aperture photometry leads to the lowest loss of flux.
131

132

133
134
135
Photographic photometry
-----------------------

136
137
138
In ``DETECT_TYPE PHOTO`` mode, SExtractor assumes that the response of the detector, over the dynamic range of the image, is logarithmic.
This is generally a good approximation for photographic density on deep exposures. 
Photometric procedures described above remain unchanged, except that for each pixel we apply first the transformation
139
140
141
142
143
144

.. math::

   I = I_0\,10^{D/\gamma} \ ,
   \label{eq:dtoi}

145
where :math:`\gamma` (``MAG_GAMMA``) is the contrast index of the emulsion, :math:`D` the original pixel value from the background-subtracted image, and :math:`I_0` is computed from the magnitude zero-point :math:`m_0`:
146
147
148

.. math:: I_0 = \frac{\gamma}{\ln 10} \,10^{-0.4\, m_0} \ .

149
One advantage of using a density-to-intensity transformation relative to the local sky background is that it corrects (to some extent) large-scale inhomogeneities in sensitivity (see :cite:`1996PhDT_68B` for details).
150

151

152
153
Magnitude uncertainties
-----------------------
154

155
An estimate of the error [#error]_ is available for each type of magnitude.
156
157
158
159
160
161
162
It is computed through

.. math:: \Delta m = 1.0857\, \frac{\sqrt{A\,\sigma^2 + F/g}}{F}

where :math:`A` is the area (in pixels) over which the total flux
:math:`F` (in ADU) is summed, :math:`\sigma` the standard deviation of
noise (in ADU) estimated from the background, and g the detector gain
163
164
(GAIN parameter [#gain]_ , in :math:`e^- / \mbox{ADU}`).
For corrected-isophotal magnitudes, a term, derived from Eq. [eq:isocor] is quadratically added to take into account the error on the correction itself.
165

166
167
In ``DETECT_TYPE PHOTO`` mode, things are slightly more complex.
Making the assumption that plate-noise is the major contributor to photometric errors, and that it is roughly constant in density, one can write:
168
169
170
171
172
173
174
175
176

.. math::

   \Delta m = 1.0857 \,\ln 10\, {\sigma\over \gamma}\,
     \frac{\sqrt{\sum_{x,y}{I^2(x,y)}}}{\sum_{x,y}I(x,y)}
   =2.5\,{\sigma\over \gamma}\,
   \frac{\sqrt{\sum_{x,y}{I^2(x,y)}}}{\sum_{x,y}I(x,y)}

where :math:`I(x,y)` is the contribution of pixel :math:`(x,y)` to the
177
total flux (Eq. [eq:dtoi]). ``GAIN`` is ignored in ``PHOTO`` mode.
178

179

180
181
182
Background
----------

183
184
185
186
187
188
189
Background is the last point relative to photometry. The assumption made in §[chap:backest] — that the "local" background associated to an object can be interpolated from the global background map — is no longer valid in crowded regions.
An example is a globular cluster superimposed to a bulge of galaxy.
SExtractor offers the possibility to estimate locally the background used to compute magnitudes.
When this option is switched on (``BACKPHOTO_TYPE LOCAL`` instead of ``GLOBAL``), the "photometric" background is estimated within a "rectangular annulus" around the isophotal limits of the object.
The thickness of the annulus (in pixels) can be specified by the user with ``BACKPHOTO_SIZE``. A typical value is ``BACKPHOTO_SIZE``=``24``.

.. [#error]
190
191
192
193
   It is important to note that this error provides a lower limit, since
   it does not take into account the (complex) uncertainty on the local
   background estimate.

194
.. [#gain]
195
196
197
   Setting GAIN to 0 in the configuration file is equivalent to
   :math:`g = +\infty`