| 1 |
19 |
gam |
\chapter{Flags}
|
| 2 |
25 |
gam |
A set of both {\em internal} and {\em external} \index{flags} flags is accessible
|
| 3 |
|
|
for each object. Internal \index{flags} flags are produced by the various detection
|
| 4 |
19 |
gam |
and measurement processes within {\sc SExtractor}; they tell for
|
| 5 |
|
|
instance if an object is saturated or has been truncated at the edge
|
| 6 |
25 |
gam |
of the \index{image} image. External \index{flags} flags come from \emph{flag maps}: these are images
|
| 7 |
19 |
gam |
with the same size as the one where objects are detected, where
|
| 8 |
|
|
integer numbers can be used to flag some pixels (for instance, ``bad''
|
| 9 |
25 |
gam |
or noisy pixels). Different combinations of \index{flags} flags can be applied
|
| 10 |
|
|
within the isophotal \index{area} area that defines each object, to produce a
|
| 11 |
19 |
gam |
unique value that will be written to the catalogue.
|
| 12 |
|
|
|
| 13 |
25 |
gam |
\section{Internal \index{flags} flags}
|
| 14 |
|
|
Internal \index{flags} flags contain, coded in decimal, various flag bits as a sum of powers
|
| 15 |
22 |
bertin |
of 2.
|
| 16 |
19 |
gam |
|
| 17 |
25 |
gam |
\subsection{Extraction \index{flags} flags: {\tt FLAGS}}
|
| 18 |
22 |
bertin |
This 16-bit flag parameter contains basic warnings about the source extraction
|
| 19 |
|
|
process, in order of increasing concern.
|
| 20 |
19 |
gam |
|
| 21 |
22 |
bertin |
|
| 22 |
|
|
\begin{tabbing}
|
| 23 |
|
|
KKKK \= `TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT \kill
|
| 24 |
25 |
gam |
\flagarg{\tt 1}{The object has \index{neighbour} \index{neighbours} neighbours, bright and close enough to
|
| 25 |
22 |
bertin |
significantly bias {\tt MAG\_AUTO} photometry\footnotemark{},
|
| 26 |
25 |
gam |
or \index{bad pixel} \index{bad pixels} bad pixels (if more than 10\% of the integrated \index{area} area is
|
| 27 |
22 |
bertin |
affected).}
|
| 28 |
|
|
\flagarg{\tt 2}{The object was originally blended with another one.}
|
| 29 |
|
|
\flagarg{\tt 4}{At least one object pixel is saturated (or very close to).}
|
| 30 |
|
|
\flagarg{\tt 8}{The isophotal footprint of the detected object is truncated
|
| 31 |
25 |
gam |
(too close to an \index{image} image \index{boundary} boundary).}
|
| 32 |
22 |
bertin |
\flagarg{\tt 16}{Object's aperture data are incomplete or corrupted.}
|
| 33 |
|
|
\flagarg{\tt 32}{Object's isophotal data are incomplete or
|
| 34 |
|
|
corrupted\footnotemark{}.}
|
| 35 |
25 |
gam |
\flagarg{\tt 64}{A \index{memory} memory overflow occurred during \index{deblending} deblending.}
|
| 36 |
|
|
\flagarg{\tt 128}{A \index{memory} memory overflow occurred during extraction.}
|
| 37 |
22 |
bertin |
\end{tabbing}
|
| 38 |
|
|
|
| 39 |
|
|
\footnotetext[1]{This flag can be activated
|
| 40 |
|
|
only when {\tt MAG\_AUTO} magnitudes (\S\ref{chap:mag_auto})are requested.}
|
| 41 |
|
|
\footnotetext[2]{This flag is inherited from
|
| 42 |
19 |
gam |
{\sc SExtractor} V1.0, and has been kept for compatibility reasons.
|
| 43 |
|
|
With {\sc SExtractor} V2.0+, having this flag activated doesn't have
|
| 44 |
|
|
any consequence for the extracted parameters.}
|
| 45 |
|
|
|
| 46 |
25 |
gam |
For example, an object close to an \index{image} image border may have {\tt FLAGS} =
|
| 47 |
19 |
gam |
16, and perhaps {\tt FLAGS} = 8+16+32 = 56.
|
| 48 |
|
|
|
| 49 |
25 |
gam |
\subsection{Weight-map \index{flags} flags: {\tt FLAGS\_WEIGHT}}
|
| 50 |
22 |
bertin |
This 16-bit flag parameter contains warnings related to the pixel weighting
|
| 51 |
|
|
process.
|
| 52 |
|
|
|
| 53 |
|
|
\begin{tabbing}
|
| 54 |
|
|
KKKK \= `TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT \kill
|
| 55 |
|
|
\flagarg{\tt 1}{The isophotal footprint of the detected object overlaps at
|
| 56 |
25 |
gam |
least one low weight\footnotemark{} in the measurement \index{image} image.}
|
| 57 |
22 |
bertin |
\flagarg{\tt 2}{The isophotal footprint of the detected object contains or
|
| 58 |
|
|
touches at least one low weight in the filtered detection
|
| 59 |
|
|
image.}
|
| 60 |
|
|
\end{tabbing}
|
| 61 |
|
|
|
| 62 |
|
|
\footnotetext[1]{the term "low weight" refers to a
|
| 63 |
25 |
gam |
weight that falls below the \index{threshold} threshold set by the {\tt WEIGHT\_THRESH}
|
| 64 |
22 |
bertin |
configuration parameter.}
|
| 65 |
|
|
|
| 66 |
25 |
gam |
\subsection{Weight-map \index{flags} flags: {\tt FLAGS\_WIN}}
|
| 67 |
22 |
bertin |
This 16-bit flag parameter contains warnings about {\tt *\_WIN} measurements
|
| 68 |
|
|
(\S\ref{chap:winparam}).
|
| 69 |
|
|
\begin{tabbing}
|
| 70 |
|
|
KKKK \= `TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT \kill
|
| 71 |
25 |
gam |
\flagarg{\tt 1}{Second-order \index{moments} moments measured through the Gaussian \index{window} window are inconsistent ($\bar{x^2}\bar{y^2}~-~\bar{xy}\le0$).}
|
| 72 |
|
|
\flagarg{\tt 2}{Second-order \index{moments} moments measured through the Gaussian \index{window} window are
|
| 73 |
22 |
bertin |
negative or zero.}
|
| 74 |
25 |
gam |
\flagarg{\tt 4}{Flux integrated within the Gaussian \index{window} window is negative or
|
| 75 |
22 |
bertin |
zero.}
|
| 76 |
|
|
\end{tabbing}
|
| 77 |
|
|
|
| 78 |
25 |
gam |
\section{External \index{flags} flags}
|
| 79 |
|
|
{\sc SExtractor} understands that it must process \index{external \index{flags} flags} external flags when
|
| 80 |
19 |
gam |
{\tt IMAFLAGS\_ISO} or {\tt NIMAFLAGS\_ISO} are present in the catalogue
|
| 81 |
25 |
gam |
\index{parameter file} parameter file. It then looks for a FITS \index{image} image specified by the {\tt
|
| 82 |
|
|
FLAG\_IMAGE} keyword in the \index{configuration file} configuration file. The FITS \index{image} image must
|
| 83 |
19 |
gam |
contain the flag map, in the form of a 2-dimensional array of 8, 16 or
|
| 84 |
25 |
gam |
32 bits integers. It must have the same size as the \index{image} image used for
|
| 85 |
19 |
gam |
detection. Such flag maps can be created using for example the {\bf
|
| 86 |
|
|
WeightWatcher} software (Bertin 1997).
|
| 87 |
|
|
|
| 88 |
25 |
gam |
The flag map values for pixels that coincide with the isophotal \index{area} area
|
| 89 |
19 |
gam |
of a given detected object are then combined, and stored in the
|
| 90 |
|
|
catalogue as the long integer {\tt IMAFLAGS\_ISO}. 5 kinds of
|
| 91 |
|
|
combination can be selected using the
|
| 92 |
|
|
{\tt FLAG\_TYPE} configuration keyword:
|
| 93 |
|
|
\begin{itemize}
|
| 94 |
|
|
\item {\tt OR}: the result is an arithmetic (bit-to-bit) {\bf OR} of flag map pixels.
|
| 95 |
|
|
\item {\tt AND}: the result is an arithmetic (bit-to-bit) {\bf AND} of non-zero flag map pixels.
|
| 96 |
|
|
\item {\tt MIN}: the result is the minimum of the (signed) flag map
|
| 97 |
|
|
pixels. \gam{How can they be negative?}
|
| 98 |
|
|
\item {\tt MAX}: the result is the maximum of the (signed) flag map pixels.
|
| 99 |
|
|
\item {\tt MOST}: the result is the most frequent non-zero flag map pixel-value.
|
| 100 |
|
|
\end{itemize}
|
| 101 |
|
|
|
| 102 |
|
|
The {\tt NIMAFLAGS\_ISO} catalogue parameter contains a number of
|
| 103 |
|
|
relevant flag map pixels: the number of non-zero flag map pixels in
|
| 104 |
|
|
the case of an {\tt OR} or {\tt AND} {\tt FLAG\_TYPE}, or the number
|
| 105 |
|
|
of pixels with value {\tt IMAFLAGS\_ISO} if the {\tt FLAG\_TYPE} is
|
| 106 |
|
|
{\tt MIN},{\tt MAX} or {\tt MOST}.
|
| 107 |
|
|
|