source: tags/release-1.0.5/README

Last change on this file was 168, checked in by Matthew Whiting, 18 years ago

A couple of changes:

  • Removed the Fortran search in the configure script -- we don't use it.
  • Cleaned up some of the fits-I/O tasks, adding some functions that check for the existence of the FITS file (fits_file_exists).
  • This task is only in v2.5+ of cfitsio, so added notes to this effect in README and the Guide.
  • Improved the exiting and warning messages in mainDuchamp.cc.
File size: 5.5 KB
Line 
1-----------------------------------------------------------------------
2               The Duchamp Source Finder
3-----------------------------------------------------------------------
4Duchamp 1.0.5 -- 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@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, cfitsio (version
542.5 and greater, version 3+ preferred) and wcslib. If you do not have
55the libraries, they can be downloaded from the following locations:
56
57PGPlot -- http://www.astro.caltech.edu/~tjp/pgplot/
58cfitsio -- http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
59wcslib -- http://www.atnf.csiro.au/people/Mark.Calabretta/WCS/index.html
60
61Duchamp can be built on Unix systems by typing (note that the terminal
62prompt here is represented by > -- don't type this character!):
63
64 >  ./configure
65 >  make
66 >  make clean (optional -- to remove the object files from the src
67                directory)
68
69This way, configure should find all the necessary libraries, but if
70the above-mentioned libraries have been installed in non-standard
71locations, you can specify additional directories to look in. There
72are separate options for library files (eg. libcpgplot.a) and header
73files (eg. cpgplot.h).
74
75For example, suppose wcslib had been locally installed in
76/home/mduchamp/wcslib. There will then be two libraries created that
77are likely to be in separate subdirectories: C/ and pgsbox/. Each
78subdirectory needs to be searched for library and header files, so one
79could build Duchamp by typing:
80
81 >  ./configure \
82LIBDIRS="/home/mduchamp/wcslib/C /home/mduchamp/wcslib/pgsbox" \
83INCDIRS="/home/mduchamp/wcslib/C /home/mduchamp/wcslib/pgsbox"
84And then just run make in the usual fashion:
85 >  make
86
87There is a script included in the distribution that allows you to make
88sure Duchamp is running correctly. It will use a dummy FITS image in
89the verification/ directory -- this image has some Gaussian random
90noise, with five Gaussian sources present, plus a dummy WCS. The
91script runs Duchamp on this image with three different sets of inputs,
92and compares to known results, looking for differences and reporting
93any. There should be none reported if everything is working
94correctly. To run, enter the command
95
96 >  VerifyDuchamp.sh
97
98You can also use the dummy image for your own testing if you like (for
99instance, testing different thresholds to get a feel for how the
100program works).
101
102
103Using Duchamp
104---------------
105
106There are two possible ways to run Duchamp. The first is:
107
108 >  Duchamp -f image.fits
109
110where image.fits is the data cube to be searched. This method simply
111uses the default values of all parameters.
112
113The second method allows some determination of the parameter values by
114the user. Type:
115
116 >  Duchamp -p parameterFile
117
118where parameterFile is a file with the input parameters, including the
119name of the cube you want to search. There are two example input files
120included with the distribution. The smaller one, InputExample, shows
121the typical parameters one might want to set. The large one,
122InputComplete, lists all possible parameters that can be entered, and
123a brief description of them. To get going quickly, just replace the
124"your-file-here" in InputExample with your image name, and type
125
126 >  Duchamp -p InputExample
127
128A User's Guide in the docs/ directory provides complete
129documentation. It comes in both postscript and portable document
130format (pdf -- note that this contains hyperlinks). This guide will
131provide full descriptions of all parameters, and of all steps in the
132execution of Duchamp.
133
134Any questions, please contact me!
135
136Author:
137  Matthew Whiting, Australia Telescope National Facility, September 2006
138  Matthew.Whiting@csiro.au
139
Note: See TracBrowser for help on using the repository browser.