source: trunk/InputComplete @ 720

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

Adding a minVoxels parameter, to govern the minimum total size of the detection. Added all associated documentation as well.

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