public documents.sextractor_doc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 25 gam
\section{The \index{configuration file} configuration file}
2 19 gam
\label{chap:configfile}
3 25 gam
Each time it is run, {\sc SExtractor} looks for a \index{configuration file} configuration file. If no
4
\index{configuration file} configuration file is specified in the command-line, it is assumed to
5 19 gam
be called ``{\tt default.sex}'' and to reside in the current
6 25 gam
directory. If no \index{configuration file} configuration file is found, {\sc SExtractor} will use its own
7 19 gam
internal default configuration.
8
 
9 25 gam
\subsection{Creating a \index{configuration file} configuration file}
10 19 gam
{\sc SExtractor} can generate an ASCII dump of its internal default
11
configuration, using the ``{\tt -d}'' option. By redirecting the standard
12 25 gam
output of {\sc SExtractor} to a file, one creates a \index{configuration file} configuration file that
13 19 gam
can easily be modified afterwards:
14
 
15
{\tt \% sex -d > default.sex}
16
 
17
A more extensive dump with less commonly used parameters can be generated by
18
using the ``{\tt -dd}'' option.
19
 
20 25 gam
\subsection{Format of the \index{configuration file} configuration file}
21 19 gam
The format is ASCII. There must be only one parameter set per line,
22
following the form:
23
 
24
~~~~ {\em Config-parameter ~~~~ Value(s)}
25
 
26
Extra spaces or linefeeds are ignored. Comments must begin with a ``\#''
27
and end with a linefeed. Values can be of different
28
types: strings (can be enclosed between double quotes), floats, integers, keywords or Boolean
29
({\tt Y/y} or {\tt N/n}). Some parameters accept zero or several values, which must then be
30
separated by commas.
31
Integers can be given as decimals, in octal form (preceded by digit {\tt O}), or in hexadecimal
32
(preceded by {\tt 0x}). The hexadecimal format is particularly convenient for writing multiplexed
33
bit values such as binary masks. Environment variables, written as {\tt \$HOME} or {\tt \$\{HOME\}}
34
are expanded, and not only for string parameters. Some parameters are assigned default values in
35 25 gam
{\sc SExtractor} and can therefore be omitted from the \index{configuration file} configuration file; they are listed in
36 19 gam
\S\ref{chap:config}.
37
 
38
\subsection{Configuration parameter list}
39
\label{chap:config}
40
Here is a complete list of all the {\em configuration} parameters known to {\sc SExtractor}.
41
Many of them should be used with their default values. Please refer to the next sections for a
42 25 gam
detailed description of their \index{mean} meaning.
43 19 gam
 
44
% \begin{tabular}{lllp{2.5in}}
45
\begin{tabbing}
46
KKKKKKKKKKKKKK \= AAAAAAAAAAAAA \= VVVVVVVVVVVV \= \`TTTTTTTTTTTT \kill
47
\parhead{Parameter              }{ default }{ type }
48
\parlist{ Description}\\
49
%\hline
50
\parhead{{\tt ANALYSIS\_THRESH}   }{ {\tt 1.5} }{ {\em floats}\ $(n \le 2)$ }
51
\parlist{ Threshold (in surface brightness) at
52
        which {\tt CLASS\_STAR} and {FWHM\_} \gam{why underscore?} operate. 1
53
        argument: relative to Background RMS (before filtering).
54
        2 arguments: surface magnitude $\mu$ ($\rm mag\,arcsec^{-2}$), Zero-point (mag).}\\
55
\parhead{{\tt ASSOC\_DATA}      }{ {\tt 2,3,4} }{ {\em integers}\ $(n\le
56
  32)$}
57
\parlist{ \# of the columns in the
58
        {\tt ASSOC} file that will be copied to the catalogue output.}\\
59
\parhead{{\tt ASSOC\_NAME}      }{ {\tt sky.list} }{ {\em string}          }
60
\parlist{ Name of the {\tt ASSOC} ASCII file.}\\
61
\parhead{{\tt ASSOC\_PARAMS}    }{ {\tt 2,3,4} }{ {\em integers}\ $(2 \le n
62
  \le 3)$}
63
\parlist{ \# of the columns in the {\tt ASSOC} file that will be used as coordinates
64
                                                            and weight for cross-matching.}\\
65
\parhead{{\tt ASSOC\_RADIUS}    }{ {\tt 2.0} }{ {\em float}                }
66
\parlist{ Search radius (in pixels) for {\tt ASSOC}.}\\
67
\parhead{{\tt ASSOC\_TYPE}      }{ {\tt MAG\_SUM} }{ {\em keyword}         }
68
\parlist{ Method for cross-matching in {\tt ASSOC}:}\\
69
\pararg {\tt FIRST}          { -- keep values corresponding to the first match found,}
70
\pararg{                                  \tt NEAREST}        {values corresponding to the nearest match found,}
71
\pararg{                                  \tt MEAN}           {weighted-average values,}
72
\pararg{                                  \tt MAG\_MEAN}      {exponentially weighted-average values,}
73
\pararg{                                  \tt SUM}            {sum values,}
74
\pararg{                                  \tt MAG\_SUM}       {exponentially sum values,}
75
\pararg{                                  \tt MIN}            {keep values corresponding to the match with minimum weight,}
76
\pararg{                                  \tt MAX}            {keep values corresponding to the match with maximum weight.}
77
\parhead{{\tt ASSOCSELEC\_TYPE} }{ {\tt MATCHED}   }{ {\em keyword}  }
78
\parlist{ What sources are printed in the output catalogue in case of {\tt ASSOC}:}\\
79
\pararg{                                  \tt ALL}            {all detections,}
80
\pararg{                                  \tt MATCHED}        {only matched detections,}
81
\pararg{                                  \tt -MATCHED}       {only detections that were not matched.}
82
\parhead{{\tt BACK\_FILTERSIZE} }{ {\tt 3} }{ {\em integers}\ $(n \le 2)$ }
83
\parlist{ Size, or Width,Height (in background meshes) of the background-filtering mask.}\\
84
\parhead{{\tt BACK\_SIZE}       }{ {\tt 64} }{ {\em integers}\ $(n \le 2)$ }
85
\parlist{ Size, or Width,Height (in pixels) of a background mesh.}\\
86
\parhead{{\tt BACK\_TYPE}       }{ {\tt AUTO} }{ {\em keywords}\ $(n \le 2)$}
87 25 gam
\parlist{ What background is subtracted from the \index{image} images:}\\
88 19 gam
\pararg{                            \tt AUTO}            {the internal,
89 25 gam
                       automatically interpolated \index{background map} background map,}
90 19 gam
\pararg{                            \tt MANUAL}             {a user-supplied constant value provided in {\tt BACK\_VALUE}.}
91
\parhead{{\tt BACK\_VALUE} }{ {\tt 0.0,0.0} }{ {\em floats}\ $(n \le 2)$ }
92 25 gam
\parlist{ in {\tt BACK\_TYPE MANUAL} \index{mode} mode, the constant value to be subtracted
93
                                                                from the \index{image} images.}\\
94 19 gam
\parhead{{\tt BACKPHOTO\_THICK} }{ {\tt 24}  }{ {\em integer}           }
95
\parlist{ Thickness (in pixels) of the background {\tt LOCAL} annulus.}\\
96
\parhead{{\tt BACKPHOTO\_TYPE}  }{ {\tt GLOBAL} }{ {\em keyword}        }
97
\parlist{ Background used to compute magnitudes:}\\
98 25 gam
\pararg{                            \tt GLOBAL}            {taken directly from the \index{background map} background map,}
99 19 gam
\pararg{                            \tt LOCAL}             {recomputed in a ``rectangular annulus'' around the object.}
100
\parhead{{\tt CATALOG\_NAME}    }{ {\tt test.cat} }{ {\em string}
101
}
102
\parlist{ Name of the output catalogue. If the name ``{\tt STDOUT}'' is given and
103
                                                         {\tt CATALOG\_TYPE} is set to {\tt ASCII}, {\tt ASCII\_HEAD}, {\tt ASCII\_SKYCAT}, or {\tt ASCII\_VOTABLE}, the catalogue will be piped to the standard output ({\em stdout})}\\
104
\parhead{{\tt CATALOG\_TYPE}    }{ --- }{ {\em keyword} }
105
\parlist{ Format of output catalogue (note
106
that ASCII\* is space and time consuming):}\\
107
\pararg{                            \tt ASCII}   {ASCII table,}
108
\pararg{                            \tt ASCII\_HEAD}   {as {\tt ASCII},
109
preceded by a header containing information about the content,}
110
\pararg{                            \tt ASCII\_SKYCAT} {SkyCat ASCII format (WCS coordinates required),}
111
\pararg{                            \tt ASCII\_VOTABLE} {XML-VOTable format, together with meta-data,}
112
\pararg{                            \tt FITS\_1.0}     {FITS format as in {\sc SExtractor} 1,}
113 25 gam
\pararg{                            \tt FITS\_LDAC}    {FITS ``LDAC'' format (the original \index{image} image header is copied).}
114 19 gam
\parhead{{\tt CHECKIMAGE\_NAME} }{ {\tt check.fits} }{ {\em strings} $(n \le  16)$  }
115
\parlist{ File name for each ``check-image''.}\\
116
\parhead{{\tt CHECKIMAGE\_TYPE} }{ {\tt NONE} }{ {\em keywords} $(n \le 16)$}
117
\parlist{ Type of information in the ``check-images'':}\\
118 25 gam
\pararg{                            \tt NONE}         {no \index{check-image} check-image,}
119
\pararg{                            \tt IDENTICAL}    {identical to input \index{image} image (useful for converting formats),}
120
\pararg{                            \tt BACKGROUND}   {full-resolution interpolated \index{background map} background map,}
121 19 gam
\pararg{                            \tt BACKGROUND\_RMS} {full-resolution interpolated background noise map,}
122 25 gam
\pararg{                            \tt MINIBACKGROUND} {low-resolution \index{background map} background map,}
123 19 gam
\pararg{                            \tt MINIBACK\_RMS} {low-resolution background noise map,}
124 25 gam
\pararg{                            \tt -BACKGROUND}  {background-subtracted \index{image} image,}
125
\pararg{                            \tt FILTERED}     {background-subtracted filtered \index{image} image (requires {\tt FILTER = Y}),}
126 19 gam
\pararg{                            \tt OBJECTS}      {detected objects,}
127 25 gam
\pararg{                            \tt -OBJECTS}     {background-subtracted \index{image} image with detected objects blanked,}
128 19 gam
\pararg{                            \tt APERTURES}    {{\tt MAG\_APER} and {\tt MAG\_AUTO} integration limits,}
129
\pararg{                            \tt SEGMENTATION} {display patches corresponding to pixels attributed to each object.}
130
\parhead{{\tt CLEAN}            }{ {\tt Y} }{ {\em boolean}      }
131
\parlist{ If true,  the
132 29 bertin
catalogue is ``cleaned'' (\S\ref{chap:clean}) before being written to disk.}\\
133 19 gam
\parhead{{\tt CLEAN\_PARAM}     }{ {\tt 1.0} }{ {\em float}        }
134
\parlist{ Efficiency of ``cleaning''.}\\
135
\parhead{{\tt DEBLEND\_MINCONT} }{ {\tt 0.005} }{ {\em float}        }
136 25 gam
\parlist{ Minimum contrast parameter for \index{deblending} deblending.}\\
137 19 gam
\parhead{{\tt DEBLEND\_NTHRESH} }{ {\tt 32} }{ {\em integer}      }
138 25 gam
\parlist{ Number of \index{deblending} deblending sub-thresholds.}\\
139 19 gam
\parhead{{\tt DETECT\_MINAREA}  }{ {\tt 5} }{ {\em integer}      }
140 25 gam
\parlist{ Minimum number of pixels above \index{threshold} threshold triggering detection.}\\
141 29 bertin
\parhead{{\tt DETECT\_MAXAREA}  }{ {\tt 0} }{ {\em integer}      }
142 19 gam
\parlist{ Maximum number of pixels
143 29 bertin
above \index{threshold} threshold triggering detection (0 for infinite).}\\
144 19 gam
\parhead{{\tt DETECT\_THRESH}   }{ {\tt 1.5} }{ {\em floats}\ $(n \le 2)$ }
145 25 gam
\parlist{ Detection \index{threshold} threshold. 1 argument: (ADUs or relative to Background RMS, see
146 19 gam
                                                       {\tt THRESH\_TYPE}). 2
147
                                                       arguments: $\mu$ ($\rm
148
                                                       mag\,arcsec^{-2}$), Zero-point (mag).}\\
149 25 gam
\parhead{{\tt DETECT\_TYPE}     }{  {\tt \index{CCD} CCD} }{ {\em keyword} }
150
\parlist{ Type of device that produced the \index{image} image:}\\
151
\pararg{                            \tt \index{CCD} CCD}          {linear detector like CCDs or \index{NICMOS} NICMOS,}
152 19 gam
\pararg{                            \tt PHOTO}        {photographic scan.}
153
\parhead{{\tt FILTER}           }{ --- }{ {\em boolean}      }
154
\parlist{ If true, filtering is applied to the data before extraction.}\\
155
\parhead{{\tt FILTER\_NAME}     }{ --- }{ {\em string}       }
156
\parlist{ Name of the file containing the filter definition.}\\
157
\parhead{{\tt FILTER\_THRESH}   }{     }{ {\em floats}\ $(n \le 2)$ }
158 25 gam
\parlist{ Lower and higher \index{threshold} thresholds (in background \index{standard deviation} standard deviations) for a pixel
159 19 gam
                                                          to be considered in filtering (used for retina-filtering only).}\\
160
\parhead{{\tt FITS\_UNSIGNED}   }{  {\tt N}  }{ {\em boolean} }
161
\parlist{ Force 16-bit FITS input data to be interpreted as unsigned integers.}\\
162
\parhead{{\tt FLAG\_IMAGE}      }{ {\tt flag.fits} }{ {\em strings}\ $(n \le  4)$ }
163
\parlist{ File name(s) of the ``flag-image(s)''.}\\
164
\parhead{{\tt FLAG\_TYPE}       }{ {\tt OR} }{ {\em keyword} }
165 25 gam
\parlist{ Combination method for \index{flags} flags on the same object:}\\
166 19 gam
\pararg{                                 \tt OR}      {arithmetical OR,}
167
\pararg{                                 \tt AND}     {arithmetical AND,}
168
\pararg{                                 \tt MIN}     {minimum of all flag values,}
169
\pararg{                                 \tt MAX}     {maximum of all flag values,}
170
\pararg{                                 \tt MOST}    {most common flag value.}
171
\parhead{{\tt GAIN}             }{     }{ {\em float}        }
172
\parlist{ ``Gain'' (conversion factor in $e^-/\mbox{ADU}$) used for error estimates
173 25 gam
                                                    of {\tt \index{CCD} CCD} magnitudes .}\\
174 19 gam
\parhead{{\tt INTERP\_MAXXLAG}  }{ {\tt 16} }{ {\em integers}\ $(n \le 2)$ }
175 25 gam
\parlist{ Maximum $x$ gap (in pixels) allowed in interpolating the input \index{image} image(s).}\\
176 19 gam
\parhead{{\tt INTERP\_MAXYLAG}  }{ {\tt 16} }{ {\em integers}\ $(n \le 2)$ }
177 25 gam
\parlist{ Maximum $y$ gap (in pixels) allowed in interpolating the input \index{image} image(s).}\\
178 19 gam
\parhead{{\tt INTERP\_TYPE}     }{ {\tt ALL} }{ {\em keywords}\ $(n \le 2)$ }
179
\parlist{
180 25 gam
Interpolation method from the \index{variance map} variance map(s) (or \index{weight map} weight map(s)):}\\
181
\pararg{                                   \tt NONE}  {no \index{interpolation} interpolation,}
182
\pararg{                                   \tt VAR\_ONLY} {interpolate only the \index{variance map} variance map (detection \index{threshold} threshold),}
183
\pararg{                                   \tt ALL} {interpolate both the \index{variance map} variance map and the \index{image} image itself.}
184 19 gam
\parhead{{\tt MAG\_GAMMA}       }{     }{ {\em float} }
185 25 gam
\parlist{ $\gamma$ of the emulsion (takes effect in {\tt PHOTO} \index{mode} mode only).}\\
186 19 gam
\parhead{{\tt MAG\_ZEROPOINT}   }{     }{ {\em float} }
187
\parlist{ Zero-point offset to be applied to magnitudes.}\\
188
\parhead{{\tt MASK\_TYPE}       }{ {\tt CORRECT} }{ {\em keyword} }
189 25 gam
\parlist{ Method of ``masking'' of \index{neighbour} \index{neighbours} neighbours for photometry:}\\
190
\pararg{                                   \tt NONE}  {no \index{masking} masking,}
191
\pararg{                                   \tt BLANK} {put detected pixels belonging to \index{neighbour} \index{neighbours} neighbours to zero,}
192 19 gam
\pararg{                                   \tt CORRECT} {replace by values of pixels symetric with respect to the source center.}
193
\parhead{{\tt MEMORY\_BUFSIZE}  }{ {\tt 1024} }{ {\em integer} }
194 25 gam
\parlist{ Number of scan-lines in the \index{image} image-buffer. Multiply by 4 the frame width to
195
                                            get equivalent \index{memory} memory space in bytes.}\\
196 19 gam
\parhead{{\tt MEMORY\_OBJSTACK} }{ {\tt 3000} }{ {\em integer} }
197
\parlist{ Maximum number of objects that the object-stack can contain. Multiply by 300 to get
198 25 gam
                                            equivalent \index{memory} memory space in bytes.}\\
199 19 gam
\parhead{{\tt MEMORY\_PIXSTACK} }{ {\tt 300000} }{ {\em integer} }
200
\parlist{ Maximum number of pixels that the pixel-stack can contain. Multiply by 16 to 32 to get
201 25 gam
                                            equivalent \index{memory} memory space in bytes.}\\
202 19 gam
\parhead{{\tt PARAMETERS\_NAME} }{ {\tt default.param} }{ {\em string} }
203
\parlist{ The name of the file containing the list of parameters that will be computed and put
204
                                            in the catalogue for each object.}\\
205
\parhead{{\tt PHOT\_APERTURES} }{ {\tt 5} }{ {\em floats}\ $(n \le 32)$ }
206
\parlist{ Aperture diameters in pixels (used by {\tt MAG\_APER}).}\\
207
\parhead{{\tt PHOT\_AUTOPARAMS} }{ {\tt 2.5,3.5} }{ {\em floats}\ $(n=2)$ }
208
\parlist{ {\tt MAG\_AUTO} controls: scaling parameter $k$ of the 1st order moment, and minimum $R_{min}$
209
                                                        (in units of {\tt A} and {\tt B}).}\\
210
\parhead{{\tt PHOT\_AUTOAPERS}  }{ {\tt 0.0,0.0} }{ {\em floats}\ $(n=2)$ }
211
\parlist{ {\tt MAG\_AUTO} minimum (circular) aperture diameters: estimation disk, and
212
                                                          measurement disk.}\\
213
\parhead{{\tt PHOT\_FLUXFRAC}  }{ {\tt 0.5} }{ {\em floats}\ $(n \le 32)$ }
214
\parlist{ Fraction of {\tt FLUX\_AUTO} defining each element of the {\tt FLUX\_RADIUS} vector.}\\
215
\parhead{{\tt PIXEL\_SCALE}     }{ {\tt 1.0} }{ {\em float} }
216 25 gam
\parlist{ Pixel size in arcsec (for surface brightness parameters, \index{FWHM} FWHM and star/galaxy separation only).}\\
217 19 gam
\parhead{{\tt SATUR\_LEVEL}     }{ {\tt 50000.0} }{ {\em float} }
218
\parlist{ Pixel value above which it is considered saturated.}\\
219
\parhead{{\tt SEEING\_FWHM}     }{ {\tt 1.2} }{ {\em float} }
220 25 gam
\parlist{ \index{FWHM} FWHM of stellar \index{image} images in arcsec (only for star/galaxy separation).}\\
221 19 gam
\parhead{{\tt STARNNW\_NAME}    }{ {\tt default.nnw} }{ {\em string} }
222
\parlist{ Name of the file containing the neural-network weights for star/galaxy separation.}\\
223
\parhead{{\tt THRESH\_TYPE}       }{ {\tt RELATIVE} }{ {\em keywords}\ $(n
224
  \le 2)$  }
225
\parlist{ Meaning of the {\tt DETECT\_THRESH} and
226
                                                                                 {\tt ANALYSIS\_THRESH} parameters:}\\
227 25 gam
\pararg{                            \tt RELATIVE}            {scaling factor to the \index{background RMS} background RMS,}
228 19 gam
\pararg{                            \tt ABSOLUTE}             {absolute level (in ADUs or in surface brightness).}
229
\parhead{{\tt VERBOSE\_TYPE}    }{ {\tt NORMAL} }{ {\tt keyword}      }
230
\parlist{ How much {\sc SExtractor} comments its operations:}\\
231
\pararg{                                     \tt QUIET}        {run silently,}
232
\pararg{                                     \tt NORMAL}       {display warnings and limited info concerning the work in progress,}
233
\pararg{                                     \tt EXTRA\_WARNINGS} {like {\tt NORMAL}, plus a few more warnings if necessary,}
234
\pararg{                                     \tt FULL}       {display a more complete information and the principal parameters of all the objects
235
                                               extracted.}
236
\parhead{{\tt WEIGHT\_GAIN}   }{  {\tt Y}  }{ {\em boolean} }
237 25 gam
\parlist{ If true, \index{weight map} \index{weight maps} weight maps are considered as \index{gain map} \index{gain maps} \index{gain} gain maps.}\\
238 19 gam
\parhead{{\tt WEIGHT\_IMAGE}    }{ {\tt weight.fits} }{ {\em strings}\ $(n
239
  \le 2)$ }
240
\parlist{ File name of the detection and measurement ``weight-image'', respectively.}\\
241
\parhead{{\tt WEIGHT\_TYPE} }{ {\tt NONE} }{ {\em keywords} $(n \le 2)$ }
242 25 gam
\parlist{ Weighting scheme (for single \index{image} image, or detection and
243
                                               measurement \index{image} images):}\\
244 19 gam
\pararg{                                   \tt NONE}  {no weighting,}
245 25 gam
\pararg{                                   \tt BACKGROUND} {variance map derived from the \index{image} image itself,}
246 19 gam
\pararg{                                   \tt MAP\_RMS} {variance map derived from an external RMS map,}
247 25 gam
\pararg{                                   \tt MAP\_VAR} {external \index{variance map} variance map,}
248
\pararg{                                   \tt MAP\_WEIGHT} {variance map derived from an external \index{weight map} weight map,}
249 19 gam
\parhead{{\tt WRITE\_XML}       }{  {\tt N}  }{ {\em boolean} }
250 25 gam
\parlist{ If true, meta-data will be written in \index{XML} XML-VOTable format.}\\
251
\parhead{{\tt \index{XML} XML\_NAME}        }{ {\tt sex.xml} }{ {\em string} }
252
\parlist{ File name for the \index{XML} XML output of {\sc SExtractor}.}\\
253 19 gam
\end{tabbing}
254
\gam{I still need to check if parameters are missing with {\tt sex -dd}.}
255
 
256
\footnotetext[1]{Optional parameter}
257