source: trunk/InputComplete @ 670

Last change on this file since 670 was 670, checked in by MatthewWhiting, 14 years ago

Substantive changes aimed at addressing ticket #72. The moment-0 map is now able to be saved to a FITS file. As far as the user is concerned, the functionality is as
for the mask cube, with equivalent parameters. The documentation has also been updated.

File size: 10.1 KB
Line 
1# FULL PARAMETER LIST
2# -------------------
3#
4# This file contains the full list of user-definable parameters. They are
5#  grouped here according to their use, and the values quoted are the defaults:
6#  if a given parameter is not included in your parameter file, this is the
7#  value it will take.
8#
9#
10# INPUT RELATED
11# imageFile -- the FITS image.  THERE IS NO DEFAULT FOR THIS.
12# flagSubsection -- whether to get a subsection of that image.
13# subsection -- the subsection to read in, in format [x1:x2,y1:y2,z1:z2],
14#               or * to indicate the full range
15# flagReconExists -- set to true if the reconstructed cube exists as a FITS
16#                    file (ie. it has been saved from a previous Duchamp run)
17# reconFile -- the location of the FITS file containing the reconstructed cube
18# flagSmoothExists -- set to true if the smoothed cube exists as a FITS
19#                    file (ie. it has been saved from a previous Duchamp run)
20# smoothFile -- the location of the FITS file containing the smoothed cube
21# usePrevious -- whether to read the list of detected objects from a previously-
22#                created log file
23# objectList -- the list of objects to plot in individual plots: used with usePrevious=true
24
25imageFile       your-file-here
26flagSubsection  0
27subsection      [*,*,*]
28flagReconExists 0
29reconFile       your-reconstructed-file-here
30flagSmoothExists 1
31smoothFile      your-smoothed-file-here
32usePrevious     false
33objectList      *
34
35# OUTPUT RELATED
36# flagLog -- log the intermediate results?   
37# logfile-- the file to put that in.
38# outFile -- the final output list.
39# flagSeparateHeader -- whether to write the header information
40#                        (i.e. parameters, statistics and number of detections)
41#                        to a separate file from the outFile (so that the
42#                        outFile just contains the table of detections).
43# headerFile -- the file to write the header information to.
44# spectraFile -- the postscript file of spectra
45# flagTextSpectra -- whether to save a text file detailing the spectra
46#                    of each source
47# spectraTextFile -- the file in which to save the text-formatted spectra
48# flagOutputMask -- whether to save a FITS file containing a mask
49#                   array, showing the locations of detected objects
50# fileOutputMask -- the filename for the mask file. If not given, it defaults
51#                   to the format shown (for input file image.fits)
52# flagMaskWithObjectNum -- if true, the detected pixels in the mask array have
53#                          the object ID number, else they all have the value 1.
54# flagOutputSmooth -- whether to save the smoothed arrays as a FITS file
55# fileOutputSmooth -- the filename for the smoothed array file. If not given, it defaults
56#                     to the format shown (for input file image.fits). See documentation for
57#                     explanation of format.
58# flagOutputRecon/Resid -- whether to save the reconstruction & residual arrays
59#                          as FITS files
60# fileOutputRecon/Resid -- the filename for the reconstruction or residual files.
61#                          If not given, it defaults to the format shown (for input
62#                          file image.fits). See documentation for explanation of format.
63# flagVOT -- make a VOTable file of the results? 
64# votFile -- the file to put it in
65# flagKarma -- make a Karma annotation file of the results? 
66# karmaFile -- the file to put it in
67# flagMaps -- save postscript versions of the detection and 0th moment maps?
68# detectionMap, momentMap -- the postscript files produced.
69# flagXOutput -- display the moment map in a pgplot window
70# newFluxUnits -- brightness units to convert the array values to
71#                 (eg. from Jy/beam to mJy/beam)   
72# precFlux -- Desired precision for Flux value in outputs.
73# precVel -- Desired precision for Velocity/Frequency value in outputs.
74# precSNR -- Desired precision for peak SNR value in ouputs.
75
76flagLog         0
77logFile         duchamp-Logfile.txt
78outFile         duchamp-Results.txt
79flagSeparateHeader 0
80headerFile      duchamp-Results.hdr
81spectraFile     duchamp-Spectra.ps
82flagTextSpectra 0
83spectraTextFile duchamp-Spectra.txt
84flagOutputMomentMap  0
85fileOutputMomentMap  image.MOM0.fits
86flagOutputMask  0
87fileOutputMask  image.MASK.fits
88flagMaskWithObjectNum 0
89flagOutputSmooth 0
90fileOutputSmooth image.SMOOTH-ND-X.fits
91flagOutputRecon 0
92fileOutputRecon image.RECON-A-B-C-D.fits
93flagOutputResid 0
94fileOutputResid image.RESID-A-B-C-D.fits
95flagVOT         0
96votFile         duchamp-Results.xml
97flagKarma       0
98karmaFile       duchamp-Results.ann
99flagMaps        1
100detectionMap    duchamp-DetectionMap.ps
101momentMap       duchamp-MomentMap.ps
102flagXOutput     1
103newFluxUnits    no-default
104precFlux        3
105precVel         3
106precSNR         2
107
108# FIXING UP THE CUBE
109# flagTrim -- whether to trim blank pixels from the edges of the cube.
110# flagBaseline -- whether to subtract spectral baselines before searching
111# flagMW -- ignore a range of channels (to remove Milky Way emission)?
112# minMW, maxMW -- the first and last channels to be ignored
113
114flagTrim        0
115flagMW          0
116minMW           75
117maxMW           112
118flagBaseline    0
119
120# GENERAL DETECTION RELATED
121# flagStatSec -- Whether to only use a subsection of the cube to calculate
122#                the statistics.
123# StatSec -- The subsection used for statistics calculations. It has the
124#            same format as the pixel subsection.
125# flagRobustStats -- Shall we use robust statistics to characterise
126#                    the noise in the image?
127# flagNegative -- Are the features being searched for negative (set to true)
128#                 or positive (false -- the default)?
129# snrCut --  How many sigma above mean is a detection when sigma-clipping
130# threshold -- The threshold flux dividing source and non-source. Used instead
131#              of calculating it from the cube's statistics. If not specified,
132#              it will be calculated.
133# flagGrowth -- Should the detections be "grown" to a lower significance value?
134# growthCut -- The lower threshold used when growing detections
135# growthThreshold -- The lower threshold, used in conjunction with "threshold"
136# beamsize -- the size of the beam in pixels. This value is overridden
137#             by the BMAJ, BMIN, BPA header parameters if present.
138
139flagStatSec     0
140StatSec         [*,*,*]
141flagRobustStats 1
142flagNegative    0
143snrCut          3.
144threshold       0.
145flagGrowth      0
146growthCut       2.
147growthThreshold 0.
148beamArea        -1.
149beamFWHM        3.
150
151# RECONSTRUCTION RELATED
152# flagATrous -- Whether or not to do the reconstruction before searching
153# reconDim -- The number of dimensions in which to perform the reconstruction.
154# scaleMin -- The minimum scale (starts at 1) to be included in the
155#              reconstruction
156# scaleMax -- The maximum scale to be included in the reconstruction. If it
157#              is <=0 then the maximum scale is calculated from the size of
158#              the array being reconstructed.
159# snrRecon -- The threshold used in filtering the wavelet coefficient arrays.
160# filterCode -- The code number for the choice of filter to be used in the
161#               reconstruction:  1 = B3-spline filter, 2 = Triangle function,
162#                                3 = Haar wavelet. Other numbers default to 2.
163
164flagATrous      false
165reconDim        1
166scaleMin        1
167scaleMax        0
168snrRecon        4.
169filterCode      1
170
171# SMOOTHING
172# flagSmooth -- whether to smooth the cube.
173# smoothType -- either "spectral" or "spatial"
174# hanningWidth -- the width parameter of the Hanning (spectral smoothing)
175#                 function
176# kernMaj -- the FWHM of the major axis of the 2D spatial smoothing gaussian
177# kernMin -- the FWHM of the minor axis of the 2D spatial smoothing gaussian
178# kernPA  -- the position angle of the major axis of the 2D spatial
179#            smoothing gaussian
180
181flagSmooth      false
182smoothType      spectral
183hanningWidth    5
184kernMaj         3.
185kernMin         3.
186kernPA          0.
187
188# FALSE DISCOVERY RATE METHOD
189# flagFDR -- Whether or not to use the false discovery rate method instead of
190#   simple sigma clipping.
191# alphaFDR -- The "alpha" parameter for the FDR method -- what desired
192#             percentage of discoveries will be false. Expressed as a decimal.
193# FDRnumCorChan -- The number of neighbouring channels that are
194#                  correlated. This is used in the FDR algorithm
195
196flagFDR         0
197alphaFDR        0.01
198FDRnumCorChan   2
199
200# MERGING PARAMETERS
201# flagAdjacent -- Whether to use the "adjacent criterion" to judge if objects
202#                  are to be merged.
203# threshSpatial -- If flagAdjacent=false, this is the maximum spatial
204#                   separation between objects for them to be merged.
205# threshVelocity -- The maximum channel separation between objects for them
206#                   to be merged.
207# minChannels -- The minimum number of consecutive channels an object must have
208#                 for it to be accepted.
209# minPix -- Minimum number of spatial pixels a detected object must have for
210#            it to be counted
211
212flagAdjacent    1
213threshSpatial   3
214threshVelocity  7
215minChannels     3
216minPix          2
217
218# OTHER PARAMETERS
219# verbose -- whether to provide progress indicators on the terminal during
220#             execution
221# drawBorders -- whether to draw borders around the detections on the moment
222#                 maps in the output.
223# drawBlankEdges -- whether to draw an outline around any BLANK regions in the
224#                    moment maps and image cutouts.
225# spectralMethod -- how to plot the spectra in the output -- the spectrum of
226#                    the peak pixel ("peak" -- the default), or integrated over
227#                    all spatial pixels present ("sum")
228# spectralUnits -- what units you want the spectral axis to be plotted in and
229#                   values quoted in (including the units of integrated flux)
230# pixelCentre -- which option to use for quoting the centre of the detection.
231#                 Options are: centroid, average, peak.
232# sortingParam -- which parameter to sort the final detection list on.
233#                  Options are: x-value, y-value, z-value, ra, dec, vel, w50,
234#                                iflux,  pflux, snr.
235
236verbose         1
237drawBorders     1
238drawBlankEdges  1
239spectralMethod  peak
240spectralUnits   km/s
241pixelCentre     centroid
242sortingParam    vel
Note: See TracBrowser for help on using the repository browser.