source: branches/pixel-map-branch/docs/app-paramEx.tex @ 1441

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

Mostly improvements to the Guide, with better formatting and descriptions of one of the changes below. The changes to the code are:

  • Addition of the option of specifying in the subsection string a number of pixels to be chopped from either end of an axis (as requested in #5).
  • Addition of a test in the reconstruction functions to see whether the number of non-BLANK pixels is zero. If so, the input array is returned as the output without having to do the reconstruction (and avoiding problems with the stats functions).
File size: 3.8 KB
Line 
1\secA{Example parameter files}
2\label{app-input}
3
4This is what a typical parameter file would look like.
5
6\begin{verbatim}
7imageFile       /home/mduchamp/fountain.fits
8logFile         logfile.txt
9outFile         results.txt
10spectraFile     spectra.ps
11flagSubsection  false
12flagOutputRecon false
13flagOutputResid 0
14flagBlankPix    1
15flagMW          1
16minMW           75
17maxMW           112
18minPix          3
19flagGrowth      1
20growthCut       1.5
21flagATrous      0
22scaleMin        1
23snrRecon        4
24flagFDR         1
25alphaFDR        0.1
26numPixPSF       20
27snrCut          3
28threshSpatial   3
29threshVelocity  7
30\end{verbatim}
31
32Note that, as in this example, the flag parameters can be entered as
33strings (true/false) or integers (1/0). Also, note that it is not
34necessary to include all these parameters in the file, only those that
35need to be changed from the defaults (as listed in
36Appendix~\ref{app-param}), which in this case would be very few. A
37minimal parameter file might look like:
38\begin{verbatim}
39imageFile       /home/mduchamp/fountain.fits
40flagLog         false
41snrRecon        3
42snrCut          2.5
43minChannels     4
44\end{verbatim}
45This will reconstruct the cube with a lower SNR value than the
46default, select objects at a lower threshold,  with a looser minimum
47channel requirement, and not keep a log of the intermediate
48detections.
49
50The following page demonstrates how the parameters are presented to
51the user, both on the screen at execution time, and in the output and
52log files. On each line, there is a description on the parameter, the
53relevant parameter name that is used in the input file (if there is
54one that the user can enter), and the value of the parameter being
55used.
56
57%\begin{sideways}
58%Typical presentation of parameters in output and log files: 
59%\begin{minipage}{170mm}
60{\scriptsize
61\begin{verbatim}
62---- Parameters ----
63Image to be analysed.........................[imageFile]  =  /path/fountain.fits
64Intermediate Logfile...........................[logFile]  =  duchamp-Logfile.txt
65Final Results file.............................[outFile]  =  duchamp-Results.txt
66Spectrum file..............................[spectraFile]  =  duchamp-Spectra.ps   
670th Moment Map...............................[momentMap]  =  duchamp-MomentMap.ps
68Detection Map.............................[detectionMap]  =  duchamp-DetectionMap.ps
69Saving reconstructed cube?.............[flagoutputrecon]  =  false
70Saving residuals from reconstruction?..[flagoutputresid]  =  false
71------
72Searching for Negative features?..........[flagNegative]  =  false
73Fixing Blank Pixels?......................[flagBlankPix]  =  true
74Blank Pixel Value.......................................  =  -8.00061
75Removing Milky Way channels?....................[flagMW]  =  true
76Milky Way Channels.......................[minMW - maxMW]  =  75-112
77Beam Size (pixels)......................................  =  10.1788
78Removing baselines before search?.........[flagBaseline]  =  false
79Minimum # Pixels in a detection.................[minPix]  =  2
80Minimum # Channels in a detection..........[minChannels]  =  3
81Growing objects after detection?............[flagGrowth]  =  false
82Using A Trous reconstruction?...............[flagATrous]  =  true
83Number of dimensions in reconstruction........[reconDim]  =  3
84Minimum scale in reconstruction...............[scaleMin]  =  1
85SNR Threshold within reconstruction...........[snrRecon]  =  4
86Filter being used for reconstruction........[filterCode]  =  1 (B3 spline function)
87Using FDR analysis?............................[flagFDR]  =  false
88SNR Threshold...................................[snrCut]  =  3
89Using Adjacent-pixel criterion?...........[flagAdjacent]  =  true
90Max. velocity separation for merging....[threshVelocity]  =  7
91Method of spectral plotting.............[spectralMethod]  =  peak
92\end{verbatim}
93}
94%\end{minipage}
95%\end{sideways}
Note: See TracBrowser for help on using the repository browser.