source: trunk/docs/app-param.tex @ 275

Last change on this file since 275 was 275, checked in by Matthew Whiting, 17 years ago

Many changes -- almost a week's worth!

  • Major change is to enable spatial smoothing. This incorporated:
    • A new class GaussSmooth? (in eponymous files) to implement this.
    • New parameters concerning setup of Gaussian.
    • New Cube functions to do the smoothing and searching: smoothCube() and smoothNSearch() (the latter not used, but still in the file).
  • Some changes to the statistical calculations:
    • Cube::setCubeStats() now re-worked to be clearer. Smoothed data dealt with directly. setupFDR() now has a switching function to go before it.
    • Improved the way the stats are written to the results file, with new functions.
    • new functions to StatsContainer?: scaleNoise and sigmaToMADFM
    • a new findAllStats() function to return all four statistical parameters, which is made use of by the StatsContainer? calculate() functions.

Other changes include:

  • Lutz_detect now does not check for the minsize criterion.
  • New function Param::makeBlankMask() to make a mask array.
  • FitsHeader? now has a bpaKeyword member
  • Fixed drawContours() function so that it can deal with data outside box.
  • Added new files to Makefile.in
  • Hanning class now has a define(int) function. Definition moved out of the constructor.
  • In the map plots, each object is now marked by the peak location, not the centre.
  • Documentation somewhat updated (bit still to do for smoothing, especially statistics)
  • Other minor changes, including comments.
File size: 11.9 KB
Line 
1\secA{Available parameters}
2\label{app-param}
3
4The full list of parameters that can be listed in the input file are
5given here. If not listed, they take the default value given in
6parentheses. Since the order of the parameters in the input file does
7not matter, they are grouped here in logical sections.
8
9\secB*{Input related}
10\begin{entry}
11\item[ImageFile (no default assumed)] The filename of the
12  data cube to be analysed.
13\item[flagSubsection \texttt{[false]}] A flag to indicate whether one
14  wants a subsection of the requested image.
15\item[Subsection \texttt{[ [*,*,*] ]}] The requested subsection
16 -- see \S\ref{sec-input} for details on the subsection format.  If
17 the full range of a dimension is required, use a \texttt{*} (thus the
18 default is the full cube).
19\item[flagReconExists \texttt{[false]}] A flag to indicate whether the
20  reconstructed array has been saved by a previous run of \duchamp. If
21  set true, the reconstructed array will be read from the file given
22  by \texttt{reconFile}, rather than calculated directly.
23\item[reconFile (no default assumed)] The FITS file that contains the
24  reconstructed array. If \texttt{flagReconExists} is true and this
25  parameter is not defined, the default file that is looked for will
26  be determined by the \atrous parameters (see \S\ref{sec-recon}).
27\item[flagSmoothExists \texttt{[false]}] A flag to indicate whether the
28  Hanning-smoothed array has been saved by a previous run of \duchamp. If
29  set true, the smoothed array will be read from the file given
30  by \texttt{smoothFile}, rather than calculated directly.
31\item[smoothFile (no default assumed)] The FITS file that contains the
32  Hanning-smoothed array. If \texttt{flagSmoothExists} is true and
33  this parameter is not defined, the default file that is looked for
34  will be determined by the Hanning width parameter (see
35  \S\ref{sec-smoothing}).
36\end{entry}
37
38\secB*{Output related}
39\begin{entry}
40\item[OutFile \texttt{[duchamp-Results.txt]}] The file containing the
41  final list of detections. This also records the list of input
42  parameters.
43\item[SpectraFile \texttt{[duchamp-Spectra.ps]}] The postscript file
44  containing the resulting integrated spectra and images of the
45  detections.
46\item[flagLog \texttt{[true]}] A flag to indicate whether the
47  details of intermediate detections should be logged.
48\item[LogFile \texttt{[duchamp-Logfile.txt]}] The file in which
49  intermediate detections are logged. These are detections that have
50  not been merged. This is primarily for use in debugging and
51  diagnostic purposes -- normal use of the program will probably not
52  require this.
53\item[flagOutputRecon \texttt{[false]}] A flag to say whether or not
54  to save the reconstructed cube as a FITS file. The filename will be
55  derived according to the naming scheme detailed in
56  Section~\ref{sec-reconIO}.
57\item[flagOutputResid \texttt{[false]}] As for
58  \texttt{flagOutputRecon}, but for the residual array -- the
59  difference between the original cube and the reconstructed cube. The
60  filename will be derived according to the naming scheme detailed in
61  Section~\ref{sec-reconIO}.
62\item[flagOutputSmooth \texttt{[false]}] A flag to say whether or not
63  to save the smoothed cube as a FITS file. The filename will be
64  derived according to the naming scheme detailed in
65  Section~\ref{sec-smoothing}.
66\item[flagVOT \texttt{[false]}] A flag to say whether to create a
67  VOTable file corresponding to the information in
68  \texttt{outfile}. This will be an XML file in the Virtual
69  Observatory VOTable format.
70\item[votFile \texttt{[duchamp-Results.xml]}] The VOTable file with
71  the list of final detections. Some input parameters are also
72  recorded.
73\item[flagKarma \texttt{[false]}] A flag to say whether to create a
74  Karma annotation file corresponding to the information in
75  \texttt{outfile}. This can be used as an overlay for the Karma
76  programs such as \texttt{kvis}.
77\item[karmaFile \texttt{[duchamp-Results.ann]}] The Karma annotation
78  file showing the list of final detections.
79\item[flagMaps \texttt{[true]}] A flag to say whether to save
80  postscript files showing the 0th moment map of the whole cube
81  (parameter \texttt{momentMap}) and the detection image
82  (\texttt{detectionMap}).
83\item[momentMap \texttt{[duchamp-MomentMap.ps]}] A postscript file
84  containing a map of the 0th moment of the detected sources, as well
85  as pixel and WCS coordinates.
86\item[detectionMap \texttt{[duchamp-DetectionMap.ps]}] A postscript
87  file showing each of the detected objects, coloured in greyscale by
88  the number of channels spanned by each pixel. Also shows pixel and
89  WCS coordinates.
90\item[flagXOutput \texttt{[true]}] A flag to say whether to display a
91  0th moment map in a PGPlot Xwindow. This will be in addition to any
92  that are saved to a file.
93\end{entry}
94
95\secB*{Modifying the cube}
96\begin{entry}
97\item[flagBlankPix \texttt{[true]}] A flag to say whether to remove
98  BLANK pixels from the analysis -- these are pixels set to some
99  particular value because they fall outside the imaged area.
100\item[blankPixValue \texttt{[-8.00061]}] The value of the BLANK
101  pixels, if this information is not contained in the FITS header (the
102  usual procedure is to obtain this value from the header information
103  -- in which case the value set by this parameter is ignored).
104\item[flagMW \texttt{[false]}] A flag to say whether to ignore
105  channels contaminated by Milky Way (or other) emission -- the
106  searching algorithms will not look at these channels.
107\item[maxMW \texttt{[112]}] The maximum channel number that contains
108  ``Milky Way'' emission.
109\item[minMW \texttt{[75]}] The minimum channel number that contains
110  ``Milky Way'' emission. Note that the range specified by
111  \texttt{maxMW} and \texttt{minMW} is inclusive.
112\item[flagBaseline \texttt{[false]}] A flag to say whether to remove
113  the baseline from each spectrum in the cube for the purposes of
114  reconstruction and detection.
115\end{entry}
116
117\secB*{Detection related}
118
119\secC*{General detection}
120\begin{entry}
121\item[flagStatSec \texttt{[false]}] A flag indicating whether the
122  statistics should be calculated on a subsection of the cube, rather
123  than the full cube. Note that this only applies to the statistics
124  used to determine the threshold, and not for other statistical
125  calculations (such as those in the reconstruction phase).
126\item[StatSec \texttt{[ [*,*,*] ]}] The subsection of the cube used
127  for calculating statistics -- see \S\ref{sec-input} for details on
128 the subsection format. Only used if \texttt{flagStatSec=true}.
129\item[flagNegative \texttt{[false]}] A flag indicating that the
130  features being searched for are negative. The cube will be inverted
131  prior to searching.
132\item[snrCut \texttt{[3.]}] The cut-off value for thresholding, in
133  terms of number of $\sigma$ above the mean.
134\item[threshold (no default assumed)] The actual value of the
135  threshold. Normally the threshold is calculated from the cube's
136  statistics, but the user can manually specify a value to be used
137  that overrides the calculated value. If this is not specified, the
138  calculated value is used. Also, when the FDR method is requested
139  (see below), the value of the \texttt{threshold} parameter is
140  ignored.
141\item[flagGrowth \texttt{[false]}] A flag indicating whether or not to
142  grow the detected objects to a smaller threshold.
143\item[growthCut \texttt{[2.]}] The smaller threshold using in growing
144  detections. In units of $\sigma$ above the mean.
145\item[beamSize \texttt{[10.]}] The size of the beam in pixels. If the
146  header keywords BMAJ and BMIN are present, then these will be used
147  to calculate the beam size, and this parameter will be ignored.
148\end{entry}
149
150\secC*{\Atrous reconstruction}
151\begin{entry}
152\item [flagATrous \texttt{[true]}] A flag indicating whether or not to
153  reconstruct the cube using the \atrous wavelet
154  reconstruction. See \S\ref{sec-recon} for details.
155\item[reconDim \texttt{[1]}] The number of dimensions to use in the
156  reconstruction. 1 means reconstruct each spectrum separately, 2
157  means each channel map is done separately, and 3 means do the whole
158  cube in one go.
159\item[scaleMin \texttt{[1]}] The minimum wavelet scale to be used in the
160  reconstruction. A value of 1 means ``use all scales''.
161\item[snrRecon \texttt{[4]}] The thresholding cutoff used in the
162  reconstruction -- only wavelet coefficients this many $\sigma$ above
163  the mean (or greater) are included in the reconstruction.
164\item[filterCode \texttt{[1]}] The code number of the filter to use in
165  the reconstruction. The options are:
166  \begin{itemize}
167  \item \textbf{1:} B$_3$-spline filter: coefficients =
168    $(\frac{1}{16}, \frac{1}{4}, \frac{3}{8}, \frac{1}{4}, \frac{1}{16})$
169  \item \textbf{2:} Triangle filter: coefficients =
170    $(\frac{1}{4}, \frac{1}{2}, \frac{1}{4})$
171  \item \textbf{3:} Haar wavelet: coefficients =
172    $(0, \frac{1}{2}, \frac{1}{2})$
173  \end{itemize}
174\end{entry}
175
176\secC*{Smoothing the cube}
177\begin{entry}
178\item [flagSmooth \texttt{[false]}] A flag indicating whether to
179  smooth the cube. See \S\ref{sec-smoothing} for details.
180\item [smoothType \texttt{[spectral]}] The type of smoothing to be
181done: either ``spectral'' (one-dimensional Hanning smoothing) or
182``spatial'' (two-dimensional Gaussian smoothing).
183\item [hanningWidth \texttt{[5]}] The width of the Hanning smoothing
184kernel.
185\item [kernMaj \texttt{[3]}] The full-width-half-maximum (FWHM) of the
186major axis of the 2D Gaussian smoothing kernel.
187\item [kernMin \texttt{[3]}] The FWHM of the minor axis of the 2D
188Gaussian smoothing kernel.
189\item [kernPA \texttt{[0]}] The position angle, in degrees,
190anticlockwise from vertical (\ie usually East of North).
191\end{entry}
192
193\secC*{FDR method}
194\begin{entry}
195\item[flagFDR \texttt{[false]}] A flag indicating whether or not to use
196  the False Discovery Rate method in thresholding the pixels.
197\item[alphaFDR \texttt{[0.01]}] The $\alpha$ parameter used in the FDR
198analysis. The average number of false detections, as a fraction of the
199total number, will be less than $\alpha$ (see \S\ref{sec-detection}).
200\end{entry}
201
202\secC*{Merging detections}
203\begin{entry}
204\item[minPix \texttt{[2]}] The minimum number of spatial pixels for a
205  single detection to be counted.
206\item[minChannels \texttt{[3]}] The minimum number of consecutive
207  channels that must be present in a detection.
208\item[flagAdjacent \texttt{[true]}] A flag indicating whether to use
209  the ``adjacent pixel'' criterion to decide whether to merge
210  objects. If not, the next two parameters are used to determine
211  whether objects are within the necessary thresholds.
212\item[threshSpatial \texttt{[3.]}] The maximum allowed minimum spatial
213  separation (in pixels) between two detections for them to be merged
214  into one. Only used if \texttt{flagAdjacent = false}.
215\item[threshVelocity \texttt{[7.]}] The maximum allowed minimum channel
216  separation between two detections for them to be merged into
217  one.
218\end{entry}
219
220\secC*{Other parameters}
221\begin{entry}
222\item[spectralMethod \texttt{[peak]}] This indicates which method is used
223  to plot the output spectra: \texttt{peak} means plot the spectrum
224  containing the detection's peak pixel; \texttt{sum} means sum the
225  spectra of each detected spatial pixel, and correct for the beam
226  size. Any other choice defaults to \texttt{peak}.
227\item[spectralUnits \texttt{[km/s]}] The user can specify the units of
228  the spectral axis. Assuming the WCS of the FITS file is valid, the
229  spectral axis is transformed into velocity, and put into these units
230  for all output and for calculations such as the integrated flux of a
231  detection.
232\item[drawBorders \texttt{[true]}] A flag indicating whether borders
233  are to be drawn around the detected objects in the moment maps
234  included in the output (see for example Fig.~\ref{fig-spect}).
235\item[drawBlankEdges \texttt{[true]}] A flag indicating whether to
236 draw the dividing line between BLANK and non-BLANK pixels on the
237 2-dimensional images (see for example Fig.~\ref{fig-moment}).
238\item[verbose \texttt{[true]}] A flag indicating whether to print the
239  progress of any computationally-intensive algorithms (\eg
240  reconstruction, searching or merging algorithms) to the screen.
241\end{entry}
242
Note: See TracBrowser for help on using the repository browser.