source: trunk/InputComplete @ 1321

Last change on this file since 1321 was 1321, checked in by MatthewWhiting, 11 years ago

Ticket #207 - Have added datatypes and ranges of acceptable values to the descriptions in InputComplete?. The parameter descriptions are on lines beginning with '#*', while the section headings are lines beginning with '###'. Also some tidying up, and adding a couple of parameters that had been left out (baseline-related).

File size: 16.6 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# In the comments at the start of each section, each parameter is listed followed
10# by its datatype (in []) and, where applicable, a description of the allowed range
11# of values or types of inputs accepted (in {}), followed by a more verbose description.
12#
13#
14### INPUT RELATED
15#* imageFile [string] {filename (must exist)} -- The FITS image.  THERE IS NO DEFAULT FOR THIS.
16#* flagSubsection [bool] {true or false, or 1 or 0} -- Whether to get a subsection of that image.
17#* subsection [string] {Subsection specification like [x1:x2,y1:y2,z1:z2]} -- The subsection to read in, in format [x1:x2,y1:y2,z1:z2], or * to indicate the full range
18#* flagReconExists [bool] {true or false, or 1 or 0} -- Set to true if the reconstructed cube exists as a FITS file (ie. it has been saved from a previous Duchamp run)
19#* reconFile [string] {filename (must exist)} -- The location of the FITS file containing the reconstructed cube
20#* flagSmoothExists [bool] {true or false, or 1 or 0} -- Set to true if the smoothed cube exists as a FITS file (ie. it has been saved from a previous Duchamp run)
21#* smoothFile [string] {filename (must exist)} -- The location of the FITS file containing the smoothed cube
22#* usePrevious [bool] {true or false, or 1 or 0} -- Whether to read the list of detected objects from a previously-created log file
23#* objectList [string] {comma-separated list of object numbers (integers)} -- 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 [bool] {true or false, or 1 or 0} -- Log the intermediate results?   
37#* logfile [string] {filename} -- The file to put that in.
38#* outFile [string] {filename} -- The final output list.
39#* flagSeparateHeader [bool] {true or false, or 1 or 0} -- Whether to write the header information (i.e. parameters, statistics and number of detections) to a separate file from the outFile (so that the outFile just contains the table of detections).
40#* headerFile [string] {filename} -- The file to write the header information to.
41#* flagWriteBinaryCatalogue [bool] {true or false, or 1 or 0} -- Whether to create a binary catalogue indicating the pixel locations of detected objects (for later reuse)
42#* binaryCatalogue [string] {filename} -- The file containing the binary source catalogue
43#* flagPlotSpectra [bool] {true or false, or 1 or 0} -- Whether to produce a file showing spectra of each detection
44#* spectraFile [string] {filename} -- The postscript file of spectra
45#* flagPlotIndividualSpectra [bool] {true or false, or 1 or 0} -- Whether to also write individual source spectra postscript files
46#* flagTextSpectra [bool] {true or false, or 1 or 0} -- Whether to save a text file detailing the spectra of each source
47#* spectraTextFile [string] {filename} -- The file in which to save the text-formatted spectra
48#* flagOutputBaseline [bool] {true or false, or 1 or 0} -- Whether to save a FITS file containing the cube of baseline values
49#* fileOutputBaseline [string] {filename} -- The filename for the baseline FITS file. If not given, it defaults to the format shown (for input file image.fits)
50#* flagOutputMomentMap [bool] {true or false, or 1 or 0} -- Whether to save a FITS file containing the moment-0 map
51#* fileOutputMomentMap [string] {filename} -- The filename for the moment-0 FITS file. If not given, it defaults to the format shown (for input file image.fits)
52#* flagOutputMomentMask [bool] {true or false, or 1 or 0} -- Whether to save a FITS file containing the moment-0 mask image
53#* fileOutputMomentMask [string] {filename} -- The filename for the moment-0 mask FITS file. If not given, it defaults to the format shown (for input file image.fits)
54#* flagOutputMask [bool] {true or false, or 1 or 0} -- Whether to save a FITS file containing a mask array, showing the locations of detected objects
55#* fileOutputMask [string] {filename} -- The filename for the mask file. If not given, it defaults to the format shown (for input file image.fits)
56#* flagMaskWithObjectNum [bool] {true or false, or 1 or 0} -- If true, the detected pixels in the mask array have the object ID number, else they all have the value 1.
57#* flagOutputSmooth [bool] {true or false, or 1 or 0} -- Whether to save the smoothed arrays as a FITS file
58#* fileOutputSmooth [string] {filename} -- The filename for the smoothed array file. If not given, it defaults to the format shown (for input file image.fits). See documentation for explanation of format.
59#* flagOutputRecon/Resid [bool] {true or false, or 1 or 0} -- Whether to save the reconstruction & residual arrays as FITS files
60#* fileOutputRecon/Resid [string] {filename} -- The filename for the reconstruction or residual files. If not given, it defaults to the format shown (for input file image.fits). See documentation for explanation of format.
61#* flagVOT [bool] {true or false, or 1 or 0} -- Make a VOTable file of the results? 
62#* votFile [string] {filename} -- The file to put it in
63#* flagKarma [bool] {true or false, or 1 or 0} -- Make a Karma annotation file of the results? 
64#* karmaFile [string] {filename} -- The file to put it in
65#* flagDS9 [bool] {true or false, or 1 or 0} -- Make a DS9 region file of the results? 
66#* ds9File [string] {filename} -- The file to put it in
67#* flagCasa [bool] {true or false, or 1 or 0} -- Make a CASA region file of the results? 
68#* casaFile [string] {filename} -- The file to put it in
69#* flagMaps [bool] {true or false, or 1 or 0} -- Save postscript versions of the detection and 0th moment maps?
70#* detectionMap [string] {filename}  -- The postscript file containing the detection map
71#* momentMap [string] {filename} -- The postscript files containing the 0th-moment map
72#* flagXOutput [bool] {true or false, or 1 or 0} -- Display the moment map in a pgplot window
73#* newFluxUnits [string] {units, convertible from FITS file units} -- Brightness units to convert the array values to (eg. from Jy/beam to mJy/beam)   
74#* precFlux [int] {>=0} -- Desired precision for Flux value in outputs.
75#* precVel [int] {>=0} -- Desired precision for Velocity/Frequency value in outputs.
76#* precSNR [int] {>=0} -- Desired precision for peak SNR value in ouputs.
77
78flagLog                   false
79logFile                   duchamp-Logfile.txt
80outFile                   duchamp-Results.txt
81flagSeparateHeader        false
82headerFile                duchamp-Results.hdr
83flagWriteBinaryCatalogue  true
84binaryCatalogue           duchamp-Catalogue.dpc
85flagPlotSpectra           true
86spectraFile               duchamp-Spectra.ps
87flagPlotIndividualSpectra false
88flagTextSpectra           false
89spectraTextFile           duchamp-Spectra.txt
90flagOutputBaseline        false
91fileOutputBaseline        image.BASE.fits
92flagOutputMomentMap       false
93fileOutputMomentMap       image.MOM0.fits
94flagOutputMomentMask      false
95fileOutputMomentMask      image.MOM0MASK.fits
96flagOutputMask            false
97fileOutputMask            image.MASK.fits
98flagMaskWithObjectNum     false
99flagOutputSmooth          false
100fileOutputSmooth          image.SMOOTH-ND-X.fits
101flagOutputRecon           false
102fileOutputRecon           image.RECON-A-B-C-D.fits
103flagOutputResid           false
104fileOutputResid           image.RESID-A-B-C-D.fits
105flagVOT                   false
106votFile                   duchamp-Results.xml
107flagKarma                 false
108karmaFile                 duchamp-Results.ann
109flagDS9                   false
110ds9File                   duchamp-Results.reg
111flagCasa                  false
112casaFile                  duchamp-Results.crf
113flagMaps                  true
114detectionMap              duchamp-DetectionMap.ps
115momentMap                 duchamp-MomentMap.ps
116flagXOutput               true
117newFluxUnits              no-default
118precFlux                  3
119precVel                   3
120precSNR                   2
121
122### MODIFYING THE CUBE
123#* flagTrim [bool] {true or false, or 1 or 0} -- Whether to trim blank pixels from the edges of the cube.
124#* flagBaseline [bool] {true or false, or 1 or 0} -- Whether to subtract spectral baselines before searching
125#* flaggedChannels [bool] {true or false, or 1 or 0} -- List of channels to ignore in the source-finding
126#* baselineType [string] {either 'atrous' or 'median'} -- Which type of baseline estimation to use. Only 'atrous' or 'median' modes accepted.
127#* baselineBoxWidth [int] {odd integer > 0} -- Box width used by the median baseline algorithm
128
129flagTrim         false
130flaggedChannels  ""
131flagBaseline     false
132baselineType     atrous
133baselineBoxWidth 51
134
135### GENERAL DETECTION RELATED
136#* flagStatSec [bool] {true or false, or 1 or 0} -- Whether to only use a subsection of the cube to calculate the statistics.
137#* StatSec [string] {Subsection specification like [x1:x2,y1:y2,z1:z2] -- The subsection used for statistics calculations. It has the same format as the pixel subsection.
138#* flagRobustStats [bool] {true or false, or 1 or 0} -- Shall we use robust statistics to characterise the noise in the image?
139#* flagNegative [bool] {true or false, or 1 or 0} -- Are the features being searched for negative (set to true) or positive (false -- the default)?
140#* snrCut [float] {} --  How many sigma above mean is a detection when sigma-clipping
141#* threshold [float] {} -- The threshold flux dividing source and non-source. Used instead of calculating it from the cube's statistics. If not specified, it will be calculated.
142#* flagGrowth [bool] {true or false, or 1 or 0} -- Should the detections be "grown" to a lower significance value?
143#* growthCut [float] {any} -- The lower threshold used when growing detections
144#* growthThreshold [float] {any} -- The lower threshold, used in conjunction with "threshold"
145#* beamarea [float] {> 0.} -- The area of the beam in pixels (equivalent to the old beamsize parameter). This value is overridden by the BMAJ, BMIN, BPA header parameters if present.
146#* beamFWHM [float] {> 0.} -- The full-width at half-maximum of the beam, in pixels. Where given, it overrides beamarea, but is overridden by the BMAJ, BMIN, BPA headers.
147#* searchType [string] {either 'spatial' or 'spectral'} -- How the searching is done. Either "spatial", where each 2D map is searched then detections combined, or "spectral", where each 1D spectrum is searched then detections combined.
148
149flagStatSec     false
150StatSec         ""
151flagRobustStats true
152flagNegative    false
153snrCut          5.
154threshold       0.
155flagGrowth      false
156growthCut       3.
157growthThreshold 0.
158beamArea        0.
159beamFWHM        0.
160searchType      spatial
161
162### RECONSTRUCTION RELATED
163#* flagATrous [bool] {true or false, or 1 or 0} -- Whether or not to do the reconstruction before searching
164#* reconDim [int] {> 0} -- The number of dimensions in which to perform the reconstruction.
165#* scaleMin [int] {> 0} -- The minimum scale (starts at 1) to be included in the reconstruction
166#* scaleMax [int] {any} -- The maximum scale to be included in the reconstruction. If it is <=0 then the maximum scale is calculated from the size of the array being reconstructed.
167#* snrRecon [float] {any} -- The threshold used in filtering the wavelet coefficient arrays.
168#* reconConvergence [float] {> 0.} -- The relative change in the residual rms must be less than this to stop the a trous iterations.
169#* filterCode [int] {one of 1,2,3} -- The code number for the choice of filter to be used in the reconstruction:  1 = B3-spline filter, 2 = Triangle function, 3 = Haar wavelet. Other numbers default to 1.
170
171flagATrous       false
172reconDim         1
173scaleMin         1
174scaleMax         0
175snrRecon         4.
176reconConvergence 0.005
177filterCode       1
178
179### SMOOTHING
180#* flagSmooth [bool] {true or false, or 1 or 0} -- Whether to smooth the cube.
181#* smoothType [string] {either 'spectral' or 'spatial'} -- The type of smoothing to use, either "spectral" or "spatial"
182#* hanningWidth [int] {> 0} -- The width parameter of the Hanning (spectral smoothing) function
183#* kernMaj [float] {> 0.} -- The FWHM (in pixels) of the major axis of the 2D spatial smoothing gaussian
184#* kernMin [float] {> 0.} -- The FWHM (in pixels) of the minor axis of the 2D spatial smoothing gaussian
185#* kernPA [float] {any} -- The position angle (in degrees) of the major axis of the 2D spatial smoothing gaussian
186#* smoothEdgeMethod [string] {one of 'equal', 'truncate' or 'scale'} -- How to deal with the pixels at the edge of the image when using the 2D smoothing algorith. Can be equal, truncate, or scale.
187#* spatialSmoothCutoff [float] {> 0.} - Relative cutoff used to determine the width of the 2D smoothing kernel
188
189flagSmooth           false
190smoothType           spectral
191hanningWidth         5
192kernMaj              3.
193kernMin              -1.
194kernPA               0.
195smoothEdgeMethod     equal
196spatialSmoothCutoff  1.e-10
197
198### FALSE DISCOVERY RATE METHOD
199#* flagFDR [bool] {true or false, or 1 or 0} -- Whether or not to use the false discovery rate method instead of simple sigma clipping.
200#* alphaFDR [float] {0. - 1.} -- The "alpha" parameter for the FDR method -- what desired fraction of discoveries will be false. Expressed as a decimal.
201#* FDRnumCorChan [int] {>0} -- The number of neighbouring channels that are correlated. This is used only in the FDR algorithm
202
203flagFDR         false
204alphaFDR        0.01
205FDRnumCorChan   2
206
207### MERGING PARAMETERS
208#* flagAdjacent [bool] {true or false, or 1 or 0} -- Whether to use the "adjacent criterion" to judge if objects are to be merged.
209#* threshSpatial [float] {>= 0.} -- If flagAdjacent=false, this is the maximum spatial separation between objects for them to be merged.
210#* threshVelocity [float] {>= 0.} -- The maximum channel separation between objects for them to be merged.
211#* minChannels [int] {> 0} -- The minimum number of consecutive channels an object must have for it to be accepted.
212#* minPix [int] {> 0} -- Minimum number of spatial pixels a detected object must have for it to be counted
213#* minVoxels [int] {> 0} -- Minimum number of voxels a detected object must have for it to be counted
214#* maxChannels [int] {any} -- The maximum number of channels an object must have for it to be accepted.
215#* maxPix [int] {any} -- Maximum number of spatial pixels a detected object must have for it to be counted
216#* maxVoxels [int] {any} -- Maximum number of voxels a detected object must have for it to be counted
217#* flagRejectBeforeMerge [bool] {true or false, or 1 or 0} -- If true, reject sources for not meeting the above criteria before the merging stage
218#* flagTwoStageMerging [bool] {true or false, or 1 or 0} -- If true, do an initial merge of a new source to the list (that is, merge it with the first source in the list that is close, but stop there)
219
220flagAdjacent           true
221threshSpatial          3
222threshVelocity         7
223minChannels            3
224minPix                 2
225minVoxels              4
226maxChannels            -1
227maxPix                 -1
228maxVoxels              -1
229flagRejectBeforeMerge  false
230flagTwoStageMerging    true
231
232### WCS PARAMETERS
233#* spectralType [string] {a valid WCS type} -- An alternative spectral WCS type to use for spectral transformations.
234#* restFrequency [float] {any} -- A value of the rest frequency to override any provided in the FITS header. Negative values will be ignored.
235#* spectralUnits [string] {valid units string} -- What units you want the spectral axis to be plotted in and values quoted in (including the units of integrated flux)
236
237spectralType   ""
238restFrequency  -1
239spectralUnits  ""
240
241### OTHER PARAMETERS
242#* verbose [bool] {true or false, or 1 or 0} -- Whether to provide progress indicators on the terminal during execution
243#* drawBorders [bool] {true or false, or 1 or 0} -- Whether to draw borders around the detections on the moment maps in the output.
244#* drawBlankEdges [bool] {true or false, or 1 or 0} -- Whether to draw an outline around any BLANK regions in the moment maps and image cutouts.
245#* spectralMethod [string] {either 'peak' or 'sum'} -- How to plot the spectra in the output -- the spectrum of the peak pixel ("peak" -- the default), or integrated over all spatial pixels present ("sum")
246#* pixelCentre [string] {one of 'centroid', 'average' or 'peak'} -- Which option to use for quoting the centre of the detection. Options are: centroid (flux-weighted average position), average (simple average with no weighting), peak (brightest pixel).
247#* sortingParam [string] {one of 'xvalue', 'yvalue', 'zvalue', 'ra', 'dec', 'vel', 'w50', 'iflux',  'pflux', 'snr'} -- The parameter by which the final detection list is sorted
248
249verbose         true
250drawBorders     true
251drawBlankEdges  true
252spectralMethod  peak
253pixelCentre     centroid
254sortingParam    vel
Note: See TracBrowser for help on using the repository browser.