source: tags/release-1.1.11b/docs/userInputs.tex

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

Mostly changes to fix some memory allocation/deallocation issues raised by valgrind. Minor changes to the Guide.

File size: 3.0 KB
Line 
1% -----------------------------------------------------------------------
2% userInputs.tex: Quick guide to how the input parameters are read.
3% -----------------------------------------------------------------------
4% Copyright (C) 2006, Matthew Whiting, ATNF
5%
6% This program is free software; you can redistribute it and/or modify it
7% under the terms of the GNU General Public License as published by the
8% Free Software Foundation; either version 2 of the License, or (at your
9% option) any later version.
10%
11% Duchamp is distributed in the hope that it will be useful, but WITHOUT
12% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13% FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14% for more details.
15%
16% You should have received a copy of the GNU General Public License
17% along with Duchamp; if not, write to the Free Software Foundation,
18% Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
19%
20% Correspondence concerning Duchamp may be directed to:
21%    Internet email: Matthew.Whiting [at] atnf.csiro.au
22%    Postal address: Dr. Matthew Whiting
23%                    Australia Telescope National Facility, CSIRO
24%                    PO Box 76
25%                    Epping NSW 1710
26%                    AUSTRALIA
27% -----------------------------------------------------------------------
28\secA{User Inputs}
29\label{sec-param}
30
31Input to the program is provided by means of a parameter
32file. Parameters are listed in the file, followed by the value that
33should be assigned to them. The syntax used is
34\begin{quote}
35\texttt{parameterName value}.
36\end{quote}
37Parameter names are not case-sensitive, and lines in the input
38file that start with \texttt{\#} are ignored. If a parameter is listed
39more than once, the latter value is used, but otherwise the order in
40which the parameters are listed in the input file is
41arbitrary. Example input files can be seen in
42Appendix~\ref{app-input}.
43
44If a parameter is not listed, the default value is assumed. The
45defaults are chosen to provide a good result (using the reconstruction
46method), so the user doesn't need to specify many new parameters in
47the input file. Note that the image file \textbf{must} be specified!
48The parameters that can be set are listed in Appendix~\ref{app-param},
49with their default values in parentheses.
50
51The parameters with names starting with \texttt{flag} are stored as
52\texttt{bool} variables, and so are either \texttt{true = 1} or
53\texttt{false = 0}. They can be entered in the file either in text or
54integer format -- \duchamp will read them correctly in either case.
55
56An example input file is included in the distribution tar file. It is
57as follows:
58
59\begin{verbatim}
60imageFile       your-file-here
61logFile         logfile.txt
62outFile         results.txt
63spectraFile     spectra.ps
64minPix          2
65flagATrous      1
66snrRecon        5.
67snrCut          3.
68minChannels     3
69flagBaseline    1
70\end{verbatim}
71
72You would, of course, replace the ``\texttt{your-file-here}'' with the
73FITS file you wanted to search. Further examples are given in
74Appendix~\ref{app-input}.
Note: See TracBrowser for help on using the repository browser.