source: trunk/InputComplete @ 1121

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

Ticket #170, #105 - Enabling the new FITS-writing code, and fixing a few bugs that cropped up in testing. All seems to work fine.

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