source: trunk/README @ 331

Last change on this file since 331 was 328, checked in by MatthewWhiting, 17 years ago

Preparing for the new minor release 1.1.1

File size: 6.2 KB
Line 
1-----------------------------------------------------------------------
2               The Duchamp Source Finder
3-----------------------------------------------------------------------
4Duchamp 1.1.1 -- an object finder for spectral-line data cubes
5Copyright (C) 2006, Matthew Whiting, ATNF
6
7Duchamp is free software; you can redistribute it and/or modify it
8under the terms of the GNU General Public License as published by the
9Free Software Foundation; either version 2 of the License, or (at your
10option) any later version.
11
12Duchamp is distributed in the hope that it will be useful, but WITHOUT
13ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15for more details.
16
17You should have received a copy of the GNU General Public License
18along with Duchamp; if not, write to the Free Software Foundation,
19Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
20
21Correspondence concerning Duchamp may be directed to:
22   Internet email: Matthew.Whiting [at] atnf.csiro.au
23   Postal address: Dr. Matthew Whiting
24                   Australia Telescope National Facility, CSIRO
25                   PO Box 76
26                   Epping NSW 1710
27                   AUSTRALIA
28-----------------------------------------------------------------------
29
30Introduction
31------------
32
33Duchamp is a stand-alone program designed to find objects in
34astronomical data cubes, particularly spectral-line observations. Its
35features include a wavelet-based reconstruction technique for reducing
36the noise in the cube (and thereby enhancing detectability of
37sources), easy-to-use text-based interface, flexibility to control all
38relevant parameters such as detection thresholds, and a useful range
39of text- and graphics-based output.
40
41Duchamp works on any FITS image using the CFITSIO package, and uses
42Mark Calabretta's WCSLIB library to provide accurate position and
43velocity information for all detected sources.
44
45
46Obtaining and Building Duchamp
47------------------------------
48
49The Duchamp web page is at
50http://www.atnf.csiro.au/people/Matthew.Whiting/Duchamp
51where you can download a gzipped tar archive of the source code.
52
53Duchamp uses three main external libraries: pgplot (although see note
54below), cfitsio (version 2.5 and greater, version 3+ preferred) and
55wcslib. If you do not have the libraries, they can be downloaded from
56the following locations:
57
58PGPlot -- http://www.astro.caltech.edu/~tjp/pgplot/
59cfitsio -- http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
60wcslib -- http://www.atnf.csiro.au/people/Mark.Calabretta/WCS/index.html
61
62Duchamp can be built on Unix systems by typing (note that the terminal
63prompt here is represented by > -- don't type this character!):
64
65 >  ./configure
66 >  make
67 >  make clean (optional -- to remove the object files from the src
68                directory)
69
70This way, configure should find all the necessary libraries, but if
71the above-mentioned libraries have been installed in non-standard
72locations, you can specify additional directories to look in. There
73are separate options for library files (eg. libcpgplot.a) and header
74files (eg. cpgplot.h).
75
76For example, suppose wcslib had been locally installed in
77/home/mduchamp/wcslib. There will then be two libraries created that
78are likely to be in separate subdirectories: C/ and pgsbox/. Each
79subdirectory needs to be searched for library and header files, so one
80could build Duchamp by typing:
81
82 >  ./configure \
83LIBDIRS="/home/mduchamp/wcslib/C /home/mduchamp/wcslib/pgsbox" \
84INCDIRS="/home/mduchamp/wcslib/C /home/mduchamp/wcslib/pgsbox"
85And then just run make in the usual fashion:
86 >  make
87
88If PGPLOT is not installed on your system, but WCSLIB and CFITSIO are,
89it is still possible to install Duchamp. It will not be capable of
90providing graphical output, but will still perform the searching as
91usual.
92
93There is a script included in the distribution that allows you to make
94sure Duchamp is running correctly. It will use a dummy FITS image in
95the verification/ directory -- this image has some Gaussian random
96noise, with five Gaussian sources present, plus a dummy WCS. The
97script runs Duchamp on this image with three different sets of inputs,
98and compares to known results, looking for differences and reporting
99any. There should be none reported if everything is working
100correctly. To run, enter the command
101
102 >  VerifyDuchamp.sh
103
104You can also use the dummy image for your own testing if you like (for
105instance, testing different thresholds to get a feel for how the
106program works).
107
108
109Using Duchamp
110---------------
111
112There are two possible ways to run Duchamp. The first is:
113
114 >  Duchamp -f image.fits
115
116where image.fits is the data cube to be searched. This method simply
117uses the default values of all parameters.
118
119The second method allows some determination of the parameter values by
120the user. Type:
121
122 >  Duchamp -p parameterFile
123
124where parameterFile is a file with the input parameters, including the
125name of the cube you want to search. There are two example input files
126included with the distribution. The smaller one, InputExample, shows
127the typical parameters one might want to set. The large one,
128InputComplete, lists all possible parameters that can be entered, and
129a brief description of them. To get going quickly, just replace the
130"your-file-here" in InputExample with your image name, and type
131
132 >  Duchamp -p InputExample
133
134By default, a map of detections is displayed in a PGPLOT
135X-window. This can be disabled by using the flagXOutput parameter, or
136using the -x command-line option along with the -f or -p options. The
137-x option will override the setting in the parameter file.
138
139A User's Guide in the docs/ directory provides complete
140documentation. It comes in both postscript and portable document
141format (pdf -- note that this contains hyperlinks). This guide will
142provide full descriptions of all parameters, and of all steps in the
143execution of Duchamp.
144
145Any questions, please contact me. To report problems or bugs, or to
146suggest improvements, please go to the Duchamp Trac wiki site:
147http://svn.atnf.csiro.au/trac/duchamp/newticket
148and submit a "ticket", or view previously submitted reports.
149
150Author:
151  Matthew Whiting, Australia Telescope National Facility, July 2007
152  Matthew.Whiting [at] csiro.au
153
Note: See TracBrowser for help on using the repository browser.