[110] | 1 | ----------------------------------------------------------------------- |
---|
| 2 | The Duchamp Source Finder |
---|
| 3 | ----------------------------------------------------------------------- |
---|
[529] | 4 | Duchamp 1.1.7 -- an object finder for spectral-line data cubes |
---|
[110] | 5 | Copyright (C) 2006, Matthew Whiting, ATNF |
---|
[3] | 6 | |
---|
[110] | 7 | Duchamp is free software; you can redistribute it and/or modify it |
---|
| 8 | under the terms of the GNU General Public License as published by the |
---|
| 9 | Free Software Foundation; either version 2 of the License, or (at your |
---|
| 10 | option) any later version. |
---|
[3] | 11 | |
---|
[110] | 12 | Duchamp is distributed in the hope that it will be useful, but WITHOUT |
---|
| 13 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
| 14 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
---|
| 15 | for more details. |
---|
[3] | 16 | |
---|
[110] | 17 | You should have received a copy of the GNU General Public License |
---|
[146] | 18 | along with Duchamp; if not, write to the Free Software Foundation, |
---|
[110] | 19 | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA |
---|
[3] | 20 | |
---|
[146] | 21 | Correspondence concerning Duchamp may be directed to: |
---|
[299] | 22 | Internet email: Matthew.Whiting [at] atnf.csiro.au |
---|
[110] | 23 | Postal address: Dr. Matthew Whiting |
---|
| 24 | Australia Telescope National Facility, CSIRO |
---|
| 25 | PO Box 76 |
---|
| 26 | Epping NSW 1710 |
---|
| 27 | AUSTRALIA |
---|
| 28 | ----------------------------------------------------------------------- |
---|
[3] | 29 | |
---|
[110] | 30 | Introduction |
---|
[338] | 31 | ============ |
---|
[3] | 32 | |
---|
[110] | 33 | Duchamp is a stand-alone program designed to find objects in |
---|
| 34 | astronomical data cubes, particularly spectral-line observations. Its |
---|
| 35 | features include a wavelet-based reconstruction technique for reducing |
---|
| 36 | the noise in the cube (and thereby enhancing detectability of |
---|
| 37 | sources), easy-to-use text-based interface, flexibility to control all |
---|
| 38 | relevant parameters such as detection thresholds, and a useful range |
---|
| 39 | of text- and graphics-based output. |
---|
| 40 | |
---|
| 41 | Duchamp works on any FITS image using the CFITSIO package, and uses |
---|
| 42 | Mark Calabretta's WCSLIB library to provide accurate position and |
---|
| 43 | velocity information for all detected sources. |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | Obtaining and Building Duchamp |
---|
[338] | 47 | ============================== |
---|
[110] | 48 | |
---|
| 49 | The Duchamp web page is at |
---|
| 50 | http://www.atnf.csiro.au/people/Matthew.Whiting/Duchamp |
---|
| 51 | where you can download a gzipped tar archive of the source code. |
---|
| 52 | |
---|
[328] | 53 | Duchamp uses three main external libraries: pgplot (although see note |
---|
| 54 | below), cfitsio (version 2.5 and greater, version 3+ preferred) and |
---|
| 55 | wcslib. If you do not have the libraries, they can be downloaded from |
---|
| 56 | the following locations: |
---|
[168] | 57 | |
---|
[338] | 58 | PGPLOT -- http://www.astro.caltech.edu/~tjp/pgplot/ |
---|
[110] | 59 | cfitsio -- http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html |
---|
[8] | 60 | wcslib -- http://www.atnf.csiro.au/people/Mark.Calabretta/WCS/index.html |
---|
| 61 | |
---|
[338] | 62 | Note that PGPLOT is optional. Duchamp can be compiled and run without |
---|
| 63 | PGPLOT, but you will miss out on the useful graphical outputs! The |
---|
| 64 | other two libraries, cftisio and wcslib, are essential. |
---|
[157] | 65 | |
---|
[338] | 66 | |
---|
| 67 | Basic Compilation and Installation |
---|
| 68 | ---------------------------------- |
---|
| 69 | |
---|
| 70 | Duchamp can be built and installed on Unix systems by typing (note |
---|
| 71 | that the terminal prompt here is represented by > -- don't type this |
---|
| 72 | character!): |
---|
| 73 | |
---|
[110] | 74 | > ./configure |
---|
| 75 | > make |
---|
[389] | 76 | > make lib (optional -- this makes a library for use in code |
---|
| 77 | development) |
---|
| 78 | > make clean (again optional -- to remove the object files from the |
---|
| 79 | src directory) |
---|
[338] | 80 | > make install |
---|
[3] | 81 | |
---|
[338] | 82 | This default setup will search in standard locations for the necessary |
---|
| 83 | libraries, and install the executable ("Duchamp") in /usr/local/bin (a |
---|
[389] | 84 | copy will also be in the current directory). It also installs the |
---|
| 85 | library libduchamp.a in /usr/local/lib and the header (.hh) files in |
---|
| 86 | /usr/local/include/duchamp. If you want these to go somewhere else, eg |
---|
| 87 | if you don't have write-access to that directory, or you need to tweak |
---|
| 88 | the libraries, see the next section. Otherwise, jump to the testing |
---|
| 89 | section. |
---|
[110] | 90 | |
---|
[157] | 91 | |
---|
[338] | 92 | Tweaking the installation setup |
---|
| 93 | ------------------------------- |
---|
| 94 | |
---|
| 95 | To install Duchamp in a directory other than /usr/local/bin, use the |
---|
[344] | 96 | --prefix option with configure, specifying the directory above the |
---|
| 97 | \texttt{bin/} directory. eg: |
---|
[338] | 98 | |
---|
[344] | 99 | > ./configure --prefix=/home/mduchamp |
---|
[338] | 100 | |
---|
[344] | 101 | which, if you run "make" and "make install", will result in the binary |
---|
[389] | 102 | being put in the directory /home/mduchamp/bin. Similarly the library |
---|
| 103 | will be put in /home/mduchamp/lib and the header files in |
---|
| 104 | /home/mduchamp/include/duchamp and subdirectories thereof. |
---|
[338] | 105 | |
---|
| 106 | If the above-mentioned libraries have been installed in non-standard |
---|
| 107 | locations, or you have more than one version installed on your system, |
---|
| 108 | you can specify specific locations by using the --with-cfitsio=<dir>, |
---|
| 109 | --with-wcslib=<dir> or --with-pgplot=<dir> flags. For example: |
---|
| 110 | |
---|
| 111 | > ./configure --with-wcslib=/home/mduchamp/wcslib-4.2 |
---|
[110] | 112 | And then just run make in the usual fashion: |
---|
| 113 | > make |
---|
| 114 | |
---|
[338] | 115 | Duchamp can be compiled without PGPLOT if it is not installed on your |
---|
| 116 | system -- the searching and text-based output remains the same, but |
---|
| 117 | you will not have any graphical output. |
---|
| 118 | To manually specify this option, use the --without-pgplot flag, eg: |
---|
[328] | 119 | |
---|
[338] | 120 | > ./configure --without-pgplot |
---|
| 121 | |
---|
| 122 | (Note that CFITSIO and WCSLIB are essential, however, so |
---|
| 123 | --without-wcslib or --without-cfitsio will not work.). |
---|
| 124 | Even if you do not give the --without-pgplot option, and the PGPLOT |
---|
| 125 | library is not found, Duchamp will still compile (albeit without |
---|
| 126 | graphical capabilities). |
---|
| 127 | |
---|
| 128 | |
---|
[362] | 129 | Installing on Mac OS X with gfortran |
---|
| 130 | ------------------------------------ |
---|
| 131 | |
---|
| 132 | Some recent testing on a Mac with OS X and gfortran has shown that |
---|
| 133 | slight tweaking needs to be done with the use of configure. In |
---|
| 134 | addition to the options noted above, configure should be run with F77 |
---|
| 135 | set to the desired fortran compiler command. Note that this should be |
---|
| 136 | the same as that used to compile the pgplot package, if you are using |
---|
| 137 | it: gfortran is probably the best choice. |
---|
| 138 | This is done simply by: |
---|
| 139 | |
---|
| 140 | > ./configure F77=gfortran ...[other options]... |
---|
| 141 | |
---|
| 142 | |
---|
[338] | 143 | Testing |
---|
| 144 | ======= |
---|
| 145 | |
---|
[154] | 146 | There is a script included in the distribution that allows you to make |
---|
[157] | 147 | sure Duchamp is running correctly. It will use a dummy FITS image in |
---|
| 148 | the verification/ directory -- this image has some Gaussian random |
---|
| 149 | noise, with five Gaussian sources present, plus a dummy WCS. The |
---|
| 150 | script runs Duchamp on this image with three different sets of inputs, |
---|
| 151 | and compares to known results, looking for differences and reporting |
---|
| 152 | any. There should be none reported if everything is working |
---|
[154] | 153 | correctly. To run, enter the command |
---|
[157] | 154 | |
---|
[382] | 155 | > ./VerifyDuchamp.sh |
---|
[110] | 156 | |
---|
[382] | 157 | Once you know it is working, you can install Duchamp on your system |
---|
| 158 | with the command |
---|
| 159 | |
---|
| 160 | > make install |
---|
| 161 | |
---|
[157] | 162 | You can also use the dummy image for your own testing if you like (for |
---|
| 163 | instance, testing different thresholds to get a feel for how the |
---|
[382] | 164 | program works). |
---|
[154] | 165 | |
---|
[157] | 166 | |
---|
[110] | 167 | Using Duchamp |
---|
[338] | 168 | ============= |
---|
[110] | 169 | |
---|
| 170 | There are two possible ways to run Duchamp. The first is: |
---|
| 171 | |
---|
| 172 | > Duchamp -f image.fits |
---|
| 173 | |
---|
| 174 | where image.fits is the data cube to be searched. This method simply |
---|
| 175 | uses the default values of all parameters. |
---|
| 176 | |
---|
| 177 | The second method allows some determination of the parameter values by |
---|
| 178 | the user. Type: |
---|
| 179 | |
---|
| 180 | > Duchamp -p parameterFile |
---|
| 181 | |
---|
[3] | 182 | where parameterFile is a file with the input parameters, including the |
---|
[110] | 183 | name of the cube you want to search. There are two example input files |
---|
| 184 | included with the distribution. The smaller one, InputExample, shows |
---|
| 185 | the typical parameters one might want to set. The large one, |
---|
| 186 | InputComplete, lists all possible parameters that can be entered, and |
---|
| 187 | a brief description of them. To get going quickly, just replace the |
---|
| 188 | "your-file-here" in InputExample with your image name, and type |
---|
[3] | 189 | |
---|
[110] | 190 | > Duchamp -p InputExample |
---|
[3] | 191 | |
---|
[298] | 192 | By default, a map of detections is displayed in a PGPLOT |
---|
| 193 | X-window. This can be disabled by using the flagXOutput parameter, or |
---|
| 194 | using the -x command-line option along with the -f or -p options. The |
---|
| 195 | -x option will override the setting in the parameter file. |
---|
| 196 | |
---|
[110] | 197 | A User's Guide in the docs/ directory provides complete |
---|
| 198 | documentation. It comes in both postscript and portable document |
---|
| 199 | format (pdf -- note that this contains hyperlinks). This guide will |
---|
| 200 | provide full descriptions of all parameters, and of all steps in the |
---|
| 201 | execution of Duchamp. |
---|
[3] | 202 | |
---|
[229] | 203 | Any questions, please contact me. To report problems or bugs, or to |
---|
| 204 | suggest improvements, please go to the Duchamp Trac wiki site: |
---|
[328] | 205 | http://svn.atnf.csiro.au/trac/duchamp/newticket |
---|
[229] | 206 | and submit a "ticket", or view previously submitted reports. |
---|
[3] | 207 | |
---|
[381] | 208 | Acknowledging the use of Duchamp |
---|
| 209 | ================================ |
---|
| 210 | |
---|
| 211 | Duchamp is provided in the hope that it will be useful for your |
---|
| 212 | research. If you find that it is, I would ask that you acknowledge it |
---|
| 213 | in your publication by using the following: |
---|
| 214 | "This research made use of the Duchamp source finder, produced at |
---|
| 215 | the Australia Telescope National Facility, CSIRO, by M. Whiting." |
---|
| 216 | |
---|
| 217 | There is a journal paper under preparation that describes Duchamp, but |
---|
[501] | 218 | until that is published, you can refer to the following paper in the |
---|
| 219 | proceedings of Local Volume meeting (held July 8-13 2007): |
---|
[381] | 220 | |
---|
[501] | 221 | "Astronomers! Do you know where your galaxies are?", M.Whiting, in |
---|
| 222 | "Galaxies in the Local Volume", Eds. B.Koribalski & H.Jerjen, |
---|
| 223 | Astrophysics & Space Science Proceedings, Springer, 2008 |
---|
| 224 | |
---|
[338] | 225 | ------- |
---|
[110] | 226 | Author: |
---|
[529] | 227 | Matthew Whiting, Australia Telescope National Facility, January 2009 |
---|
[299] | 228 | Matthew.Whiting [at] csiro.au |
---|
[3] | 229 | |
---|