source: tags/release-1.2.2/InputComplete

Last change on this file was 1077, checked in by MatthewWhiting, 12 years ago

Enabling the output of DS9 region files in addition to the Karma annotation files. Also adding this to the verification script. Still to do documentation.

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