source: branches/GUIdev/duchampDefaultParameters.txt @ 1441

Last change on this file since 1441 was 1319, checked in by KelvinHsu, 11 years ago

Parameter File necessary for the program. First upload.

File size: 14.0 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       no-default
26flagSubsection  false
27subsection      [*,*,*]
28flagReconExists false
29reconFile       your-reconstructed-file-here
30flagSmoothExists false
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# flagWriteBinaryCatalogue -- whether to create a binary catalogue
45#                             indicating the pixel locations of
46#                             detected objects (for later reuse)
47# binaryCatalogue -- the file containing the binary source catalogue
48# flagPlotSpectra -- whether to produce a file showing spectra of each detection
49# spectraFile -- the postscript file of spectra
50# flagPlotIndividualSpectra -- whether to also write individual source
51#                              spectra postscript files
52# flagTextSpectra -- whether to save a text file detailing the spectra
53#                    of each source
54# spectraTextFile -- the file in which to save the text-formatted spectra
55# flagOutputBaseline -- whether to save a FITS file containing the cube of baseline values
56# fileOutputBaseline -- the filename for the baseline FITS file. If not given, it defaults
57#                   to the format shown (for input file image.fits)
58# flagOutputMomentMap -- whether to save a FITS file containing the moment-0 map
59# fileOutputMomentMap -- the filename for the moment-0 FITS file. If not given, it defaults
60#                   to the format shown (for input file image.fits)
61# flagOutputMomentMask -- whether to save a FITS file containing the
62#                         moment-0 mask image
63# fileOutputMomentMask -- the filename for the moment-0 mask FITS file. If not given, it defaults
64#                   to the format shown (for input file image.fits)
65# flagOutputMask -- whether to save a FITS file containing a mask
66#                   array, showing the locations of detected objects
67# fileOutputMask -- the filename for the mask file. If not given, it defaults
68#                   to the format shown (for input file image.fits)
69# flagMaskWithObjectNum -- if true, the detected pixels in the mask array have
70#                          the object ID number, else they all have the value 1.
71# flagOutputSmooth -- whether to save the smoothed arrays as a FITS file
72# fileOutputSmooth -- the filename for the smoothed array file. If not given, it defaults
73#                     to the format shown (for input file image.fits). See documentation for
74#                     explanation of format.
75# flagOutputRecon/Resid -- whether to save the reconstruction & residual arrays
76#                          as FITS files
77# fileOutputRecon/Resid -- the filename for the reconstruction or residual files.
78#                          If not given, it defaults to the format shown (for input
79#                          file image.fits). See documentation for explanation of format.
80# flagVOT -- make a VOTable file of the results? 
81# votFile -- the file to put it in
82# flagKarma -- make a Karma annotation file of the results? 
83# karmaFile -- the file to put it in
84# flagDS9 -- make a DS9 region file of the results? 
85# ds9File -- the file to put it in
86# flagCasa -- make a CASA region file of the results? 
87# casaFile -- the file to put it in
88# flagMaps -- save postscript versions of the detection and 0th moment maps?
89# detectionMap, momentMap -- the postscript files produced.
90# flagXOutput -- display the moment map in a pgplot window
91# newFluxUnits -- brightness units to convert the array values to
92#                 (eg. from Jy/beam to mJy/beam)   
93# precFlux -- Desired precision for Flux value in outputs.
94# precVel -- Desired precision for Velocity/Frequency value in outputs.
95# precSNR -- Desired precision for peak SNR value in ouputs.
96
97flagLog         false
98logFile         duchamp-Logfile.txt
99outFile         duchamp-Results.txt
100flagSeparateHeader false
101headerFile      duchamp-Results.hdr
102flagWriteBinaryCatalogue true
103binaryCatalogue duchamp-Catalogue.dpc
104flagPlotSpectra true
105spectraFile     duchamp-Spectra.ps
106flagPlotIndividualSpectra false
107flagTextSpectra false
108spectraTextFile duchamp-Spectra.txt
109flagOutputBaseline  false
110fileOutputBaseline  image.BASE.fits
111flagOutputMomentMap  false
112fileOutputMomentMap  image.MOM0.fits
113flagOutputMomentMask  false
114fileOutputMomentMask  image.MOM0MASK.fits
115flagOutputMask  false
116fileOutputMask  image.MASK.fits
117flagMaskWithObjectNum false
118flagOutputSmooth false
119fileOutputSmooth image.SMOOTH-ND-X.fits
120flagOutputRecon false
121fileOutputRecon image.RECON-A-B-C-D.fits
122flagOutputResid false
123fileOutputResid image.RESID-A-B-C-D.fits
124flagVOT         false
125votFile         duchamp-Results.xml
126flagKarma       false
127karmaFile       duchamp-Results.ann
128flagDS9         false
129ds9File         duchamp-Results.reg
130flagCasa        false
131casaFile        duchamp-Results.crf
132flagMaps        true
133detectionMap    duchamp-DetectionMap.ps
134momentMap       duchamp-MomentMap.ps
135flagXOutput     true
136newFluxUnits    no-default
137precFlux        3
138precVel         3
139precSNR         2
140
141### MODIFYING THE CUBE
142# flagTrim -- whether to trim blank pixels from the edges of the cube.
143# flagBaseline -- whether to subtract spectral baselines before searching
144# flaggedChannels -- list of channels to ignore in the source-finding
145
146flagTrim        false
147flaggedChannels no-default
148flagBaseline    false
149
150### GENERAL DETECTION RELATED
151# flagStatSec -- Whether to only use a subsection of the cube to calculate
152#                the statistics.
153# StatSec -- The subsection used for statistics calculations. It has the
154#            same format as the pixel subsection.
155# flagRobustStats -- Shall we use robust statistics to characterise
156#                    the noise in the image?
157# flagNegative -- Are the features being searched for negative (set to true)
158#                 or positive (false -- the default)?
159# snrCut --  How many sigma above mean is a detection when sigma-clipping
160# threshold -- The threshold flux dividing source and non-source. Used instead
161#              of calculating it from the cube's statistics. If not specified,
162#              it will be calculated.
163# flagGrowth -- Should the detections be "grown" to a lower significance value?
164# growthCut -- The lower threshold used when growing detections
165# growthThreshold -- The lower threshold, used in conjunction with "threshold"
166# beamarea -- the area of the beam in pixels (equivalent to the old beamsize
167#             parameter). This value is overridden by the BMAJ, BMIN, BPA header
168#             parameters if present.
169# beamFWHM -- the full-width at half-maximum of the beam, in pixels. Where given,
170#             it overrides beamarea, but is overridden by the BMAJ, BMIN, BPA
171#             headers.
172# searchType -- how the searching is done. Either "spatial", where each 2D map is
173#               searched then detections combined, or "spectral", where each 1D
174#               spectrum is searched then detections combined.
175
176flagStatSec     false
177StatSec         [*,*,*]
178flagRobustStats true
179flagNegative    false
180snrCut          5.
181threshold       0.
182flagGrowth      false
183growthCut       3.
184growthThreshold 0.
185beamArea        0.
186beamFWHM        0.
187searchType      spatial
188
189### RECONSTRUCTION RELATED
190# flagATrous -- Whether or not to do the reconstruction before searching
191# reconDim -- The number of dimensions in which to perform the reconstruction.
192# scaleMin -- The minimum scale (starts at 1) to be included in the
193#              reconstruction
194# scaleMax -- The maximum scale to be included in the reconstruction. If it
195#              is <=0 then the maximum scale is calculated from the size of
196#              the array being reconstructed.
197# snrRecon -- The threshold used in filtering the wavelet coefficient arrays.
198# reconConvergence -- The relative change in the residual rms must be
199#                     less than this to stop the a trous iterations.
200# filterCode -- The code number for the choice of filter to be used in the
201#               reconstruction:  1 = B3-spline filter, 2 = Triangle function,
202#                                3 = Haar wavelet. Other numbers default to 2.
203
204flagATrous      false
205reconDim        1
206scaleMin        1
207scaleMax        0
208snrRecon        4.
209reconConvergence 0.005
210filterCode      1
211
212### SMOOTHING
213# flagSmooth -- whether to smooth the cube.
214# smoothType -- either "spectral" or "spatial"
215# hanningWidth -- the width parameter of the Hanning (spectral smoothing)
216#                 function
217# kernMaj -- the FWHM of the major axis of the 2D spatial smoothing gaussian
218# kernMin -- the FWHM of the minor axis of the 2D spatial smoothing gaussian
219# kernPA  -- the position angle of the major axis of the 2D spatial
220#            smoothing gaussian
221# smoothEdgeMethod -- how to deal with the pixels at the edge of the
222#                     image when using the 2D smoothing algorith. Can
223#                     be equal, truncate, or scale.
224# spatialSmoothCutoff -- relative cutoff used to determine the width of
225#                       the 2D smoothing kernel
226
227flagSmooth      false
228smoothType      spectral
229hanningWidth    5
230kernMaj         3.
231kernMin         -1.
232kernPA          0.
233smoothEdgeMethod equal
234spatialSmoothCutoff 1.e-10
235
236### FALSE DISCOVERY RATE METHOD
237# flagFDR -- Whether or not to use the false discovery rate method instead of
238#   simple sigma clipping.
239# alphaFDR -- The "alpha" parameter for the FDR method -- what desired
240#             percentage of discoveries will be false. Expressed as a decimal.
241# FDRnumCorChan -- The number of neighbouring channels that are
242#                  correlated. This is used in the FDR algorithm
243
244flagFDR         false
245alphaFDR        0.01
246FDRnumCorChan   2
247
248### MERGING PARAMETERS
249# flagAdjacent -- Whether to use the "adjacent criterion" to judge if objects
250#                  are to be merged.
251# threshSpatial -- If flagAdjacent=false, this is the maximum spatial
252#                   separation between objects for them to be merged.
253# threshVelocity -- The maximum channel separation between objects for them
254#                   to be merged.
255# minChannels -- The minimum number of consecutive channels an object must have
256#                 for it to be accepted.
257# minPix -- Minimum number of spatial pixels a detected object must have for
258#            it to be counted
259# minVoxels -- Minimum number of voxels a detected object must have for it to be
260#              counted
261# maxChannels -- The maximum number of channels an object must have
262#                 for it to be accepted.
263# maxPix -- Maximum number of spatial pixels a detected object must have for
264#            it to be counted
265# maxVoxels -- Maximum number of voxels a detected object must have for it to be
266#              counted
267# flagRejectBeforeMerge -- If true, reject sources for not meeting the above
268#                          criteria before the merging stage
269# flagTwoStageMerging -- If true, do an initial merge of a new source to the list
270#                        (that is, merge it with the first source in the list that
271#                        is close, but stop there)
272
273flagAdjacent           true
274threshSpatial          3
275threshVelocity         7
276minChannels            3
277minPix                 2
278minVoxels              4
279maxChannels            -1
280maxPix                 -1
281maxVoxels              -1
282flagRejectBeforeMerge  false
283flagTwoStageMerging    true
284
285### WCS PARAMETERS
286#
287# spectralType -- an alternative spectral WCS type to use for spectral
288#                 transformations.
289# restFrequency -- a value of the rest frequency to override any
290#                  provided in the FITS header
291# spectralUnits -- what units you want the spectral axis to be plotted in and
292#                   values quoted in (including the units of integrated flux)
293
294spectralType   no-default
295restFrequency  -1
296spectralUnits  no-default
297
298### OTHER PARAMETERS
299# verbose -- whether to provide progress indicators on the terminal during
300#             execution
301# drawBorders -- whether to draw borders around the detections on the moment
302#                 maps in the output.
303# drawBlankEdges -- whether to draw an outline around any BLANK regions in the
304#                    moment maps and image cutouts.
305# spectralMethod -- how to plot the spectra in the output -- the spectrum of
306#                    the peak pixel ("peak" -- the default), or integrated over
307#                    all spatial pixels present ("sum")
308# pixelCentre -- which option to use for quoting the centre of the detection.
309#                 Options are: centroid, average, peak.
310# sortingParam -- which parameter to sort the final detection list on.
311#                  Options are: xvalue, yvalue, zvalue, ra, dec, vel, w50,
312#                                iflux,  pflux, snr.
313
314verbose         true
315drawBorders     true
316drawBlankEdges  true
317spectralMethod  peak
318pixelCentre     centroid
319sortingParam    vel
Note: See TracBrowser for help on using the repository browser.