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
RevLine 
[71]1# FULL PARAMETER LIST
2# -------------------
3#
[142]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.
[71]8#
9#
[3]10# INPUT RELATED
[525]11# imageFile -- the FITS image.  THERE IS NO DEFAULT FOR THIS.
[3]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
[211]15# flagReconExists -- set to true if the reconstructed cube exists as a FITS
[142]16#                    file (ie. it has been saved from a previous Duchamp run)
[211]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)
[483]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
[3]24
25imageFile       your-file-here
[965]26flagSubsection  false
[3]27subsection      [*,*,*]
[965]28flagReconExists false
[71]29reconFile       your-reconstructed-file-here
[965]30flagSmoothExists false
[447]31smoothFile      your-smoothed-file-here
[483]32usePrevious     false
33objectList      *
[3]34
35# OUTPUT RELATED
[142]36# flagLog -- log the intermediate results?   
37# logfile-- the file to put that in.
[3]38# outFile -- the final output list.
[363]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.
[831]44# flagPlotSpectra -- whether to produce a file showing spectra of each detection
[3]45# spectraFile -- the postscript file of spectra
[425]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
[1121]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)
[680]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)
[386]55# flagOutputMask -- whether to save a FITS file containing a mask
56#                   array, showing the locations of detected objects
[525]57# fileOutputMask -- the filename for the mask file. If not given, it defaults
58#                   to the format shown (for input file image.fits)
[521]59# flagMaskWithObjectNum -- if true, the detected pixels in the mask array have
60#                          the object ID number, else they all have the value 1.
[211]61# flagOutputSmooth -- whether to save the smoothed arrays as a FITS file
[663]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.
[142]65# flagOutputRecon/Resid -- whether to save the reconstruction & residual arrays
66#                          as FITS files
[525]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.
[142]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
[1077]74# flagDS9 -- make a DS9 region file of the results? 
75# ds9File -- the file to put it in
[17]76# flagMaps -- save postscript versions of the detection and 0th moment maps?
[3]77# detectionMap, momentMap -- the postscript files produced.
[195]78# flagXOutput -- display the moment map in a pgplot window
[447]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.
[3]84
[965]85flagLog         false
[87]86logFile         duchamp-Logfile.txt
87outFile         duchamp-Results.txt
[965]88flagSeparateHeader false
[363]89headerFile      duchamp-Results.hdr
[965]90flagPlotSpectra true
[87]91spectraFile     duchamp-Spectra.ps
[965]92flagTextSpectra false
[425]93spectraTextFile duchamp-Spectra.txt
[1121]94flagOutputBaseline  false
95fileOutputBaseline  image.BASE.fits
[965]96flagOutputMomentMap  false
[670]97fileOutputMomentMap  image.MOM0.fits
[965]98flagOutputMask  false
[525]99fileOutputMask  image.MASK.fits
[965]100flagMaskWithObjectNum false
101flagOutputSmooth false
[525]102fileOutputSmooth image.SMOOTH-ND-X.fits
[965]103flagOutputRecon false
[525]104fileOutputRecon image.RECON-A-B-C-D.fits
[965]105flagOutputResid false
[525]106fileOutputResid image.RESID-A-B-C-D.fits
[965]107flagVOT         false
[87]108votFile         duchamp-Results.xml
[965]109flagKarma       false
[87]110karmaFile       duchamp-Results.ann
[1077]111flagDS9         false
112ds9File         duchamp-Results.reg
[965]113flagMaps        true
[87]114detectionMap    duchamp-DetectionMap.ps
115momentMap       duchamp-MomentMap.ps
[965]116flagXOutput     true
[447]117newFluxUnits    no-default
118precFlux        3
119precVel         3
120precSNR         2
[3]121
122# FIXING UP THE CUBE
[285]123# flagTrim -- whether to trim blank pixels from the edges of the cube.
[3]124# flagBaseline -- whether to subtract spectral baselines before searching
[142]125# flagMW -- ignore a range of channels (to remove Milky Way emission)?
126# minMW, maxMW -- the first and last channels to be ignored
[3]127
[965]128flagTrim        false
129flagMW          false
[3]130minMW           75
131maxMW           112
[965]132flagBaseline    false
[3]133
134# GENERAL DETECTION RELATED
[258]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.
[386]139# flagRobustStats -- Shall we use robust statistics to characterise
140#                    the noise in the image?
[142]141# flagNegative -- Are the features being searched for negative (set to true)
142#                 or positive (false -- the default)?
[3]143# snrCut --  How many sigma above mean is a detection when sigma-clipping
[195]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.
[3]147# flagGrowth -- Should the detections be "grown" to a lower significance value?
148# growthCut -- The lower threshold used when growing detections
[483]149# growthThreshold -- The lower threshold, used in conjunction with "threshold"
[738]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.
[686]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.
[3]159
[965]160flagStatSec     false
[258]161StatSec         [*,*,*]
[965]162flagRobustStats true
163flagNegative    false
[1025]164snrCut          5.
[195]165threshold       0.
[965]166flagGrowth      false
167growthCut       3.
[483]168growthThreshold 0.
[801]169beamArea        0.
170beamFWHM        0.
[686]171searchType      spatial
[3]172
173# RECONSTRUCTION RELATED
174# flagATrous -- Whether or not to do the reconstruction before searching
[142]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
[363]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.
[3]181# snrRecon -- The threshold used in filtering the wavelet coefficient arrays.
[1026]182# reconConvergence -- The relative change in the residual rms must be
183#                     less than this to stop the a trous iterations.
[142]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.
[3]187
[279]188flagATrous      false
[258]189reconDim        1
[3]190scaleMin        1
[363]191scaleMax        0
[71]192snrRecon        4.
[1026]193reconConvergence 0.005
[106]194filterCode      1
[3]195
[275]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
[211]205
206flagSmooth      false
[275]207smoothType      spectral
[211]208hanningWidth    5
[275]209kernMaj         3.
[965]210kernMin         -1.
[275]211kernPA          0.
[211]212
[3]213# FALSE DISCOVERY RATE METHOD
214# flagFDR -- Whether or not to use the false discovery rate method instead of
215#   simple sigma clipping.
[142]216# alphaFDR -- The "alpha" parameter for the FDR method -- what desired
217#             percentage of discoveries will be false. Expressed as a decimal.
[543]218# FDRnumCorChan -- The number of neighbouring channels that are
219#                  correlated. This is used in the FDR algorithm
[3]220
[965]221flagFDR         false
[71]222alphaFDR        0.01
[543]223FDRnumCorChan   2
[3]224
225# MERGING PARAMETERS
[142]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
[720]236# minVoxels -- Minimum number of voxels a detected object must have for it to be
237#              counted
[672]238# flagRejectBeforeMerge -- If true, reject sources for not meeting the above
239#                          criteria before the merging stage
[691]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)
[3]243
[965]244flagAdjacent           true
[691]245threshSpatial          3
246threshVelocity         7
247minChannels            3
248minPix                 2
[720]249minVoxels              4
[965]250flagRejectBeforeMerge  false
251flagTwoStageMerging    true
[3]252
[965]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
[3]266# OTHER PARAMETERS
[142]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")
[285]276# pixelCentre -- which option to use for quoting the centre of the detection.
277#                 Options are: centroid, average, peak.
[571]278# sortingParam -- which parameter to sort the final detection list on.
[965]279#                  Options are: xvalue, yvalue, zvalue, ra, dec, vel, w50,
[572]280#                                iflux,  pflux, snr.
[142]281
[965]282verbose         true
283drawBorders     true
284drawBlankEdges  true
[64]285spectralMethod  peak
[363]286pixelCentre     centroid
[571]287sortingParam    vel
Note: See TracBrowser for help on using the repository browser.