[110] | 1 | ----------------------------------------------------------------------- |
---|
| 2 | The Duchamp Source Finder |
---|
| 3 | ----------------------------------------------------------------------- |
---|
[1391] | 4 | Duchamp 1.6.1 -- an object finder for spectral-line data cubes |
---|
[1377] | 5 | Copyright (C) 2006-2014 |
---|
[853] | 6 | Matthew Whiting, CSIRO Astronomy & Space Science |
---|
[3] | 7 | |
---|
[110] | 8 | Duchamp is free software; you can redistribute it and/or modify it |
---|
| 9 | under the terms of the GNU General Public License as published by the |
---|
| 10 | Free Software Foundation; either version 2 of the License, or (at your |
---|
| 11 | option) any later version. |
---|
[3] | 12 | |
---|
[110] | 13 | Duchamp is distributed in the hope that it will be useful, but WITHOUT |
---|
| 14 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
| 15 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
---|
| 16 | for more details. |
---|
[3] | 17 | |
---|
[110] | 18 | You should have received a copy of the GNU General Public License |
---|
[146] | 19 | along with Duchamp; if not, write to the Free Software Foundation, |
---|
[110] | 20 | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA |
---|
[3] | 21 | |
---|
[146] | 22 | Correspondence concerning Duchamp may be directed to: |
---|
[299] | 23 | Internet email: Matthew.Whiting [at] atnf.csiro.au |
---|
[110] | 24 | Postal address: Dr. Matthew Whiting |
---|
| 25 | Australia Telescope National Facility, CSIRO |
---|
| 26 | PO Box 76 |
---|
| 27 | Epping NSW 1710 |
---|
| 28 | AUSTRALIA |
---|
| 29 | ----------------------------------------------------------------------- |
---|
[3] | 30 | |
---|
[110] | 31 | Introduction |
---|
[338] | 32 | ============ |
---|
[3] | 33 | |
---|
[110] | 34 | Duchamp is a stand-alone program designed to find objects in |
---|
| 35 | astronomical data cubes, particularly spectral-line observations. Its |
---|
| 36 | features include a wavelet-based reconstruction technique for reducing |
---|
| 37 | the noise in the cube (and thereby enhancing detectability of |
---|
| 38 | sources), easy-to-use text-based interface, flexibility to control all |
---|
| 39 | relevant parameters such as detection thresholds, and a useful range |
---|
| 40 | of text- and graphics-based output. |
---|
| 41 | |
---|
| 42 | Duchamp works on any FITS image using the CFITSIO package, and uses |
---|
| 43 | Mark Calabretta's WCSLIB library to provide accurate position and |
---|
| 44 | velocity information for all detected sources. |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | Obtaining and Building Duchamp |
---|
[338] | 48 | ============================== |
---|
[110] | 49 | |
---|
| 50 | The Duchamp web page is at |
---|
| 51 | http://www.atnf.csiro.au/people/Matthew.Whiting/Duchamp |
---|
| 52 | where you can download a gzipped tar archive of the source code. |
---|
| 53 | |
---|
[328] | 54 | Duchamp uses three main external libraries: pgplot (although see note |
---|
| 55 | below), cfitsio (version 2.5 and greater, version 3+ preferred) and |
---|
| 56 | wcslib. If you do not have the libraries, they can be downloaded from |
---|
| 57 | the following locations: |
---|
[168] | 58 | |
---|
[338] | 59 | PGPLOT -- http://www.astro.caltech.edu/~tjp/pgplot/ |
---|
[110] | 60 | cfitsio -- http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html |
---|
[8] | 61 | wcslib -- http://www.atnf.csiro.au/people/Mark.Calabretta/WCS/index.html |
---|
| 62 | |
---|
[338] | 63 | Note that PGPLOT is optional. Duchamp can be compiled and run without |
---|
| 64 | PGPLOT, but you will miss out on the useful graphical outputs! The |
---|
| 65 | other two libraries, cftisio and wcslib, are essential. |
---|
[157] | 66 | |
---|
[338] | 67 | |
---|
| 68 | Basic Compilation and Installation |
---|
| 69 | ---------------------------------- |
---|
| 70 | |
---|
| 71 | Duchamp can be built and installed on Unix systems by typing (note |
---|
| 72 | that the terminal prompt here is represented by > -- don't type this |
---|
| 73 | character!): |
---|
| 74 | |
---|
[110] | 75 | > ./configure |
---|
| 76 | > make |
---|
[1229] | 77 | > make lib (optional -- this makes libraries for use in code |
---|
[389] | 78 | development) |
---|
| 79 | > make clean (again optional -- to remove the object files from the |
---|
| 80 | src directory) |
---|
[338] | 81 | > make install |
---|
[3] | 82 | |
---|
[338] | 83 | This default setup will search in standard locations for the necessary |
---|
| 84 | libraries, and install the executable ("Duchamp") in /usr/local/bin (a |
---|
[389] | 85 | copy will also be in the current directory). It also installs the |
---|
[1360] | 86 | libraries libduchamp.1.6.a and libduchamp.1.6.so in /usr/local/lib and |
---|
[1229] | 87 | the header (.hh) files in /usr/local/include/duchamp. If you want |
---|
| 88 | these to go somewhere else, eg if you don't have write-access to that |
---|
| 89 | directory, or you need to tweak the libraries, see the next |
---|
| 90 | section. Otherwise, jump to the testing section. |
---|
[110] | 91 | |
---|
[157] | 92 | |
---|
[338] | 93 | Tweaking the installation setup |
---|
| 94 | ------------------------------- |
---|
| 95 | |
---|
| 96 | To install Duchamp in a directory other than /usr/local/bin, use the |
---|
[344] | 97 | --prefix option with configure, specifying the directory above the |
---|
| 98 | \texttt{bin/} directory. eg: |
---|
[338] | 99 | |
---|
[344] | 100 | > ./configure --prefix=/home/mduchamp |
---|
[338] | 101 | |
---|
[344] | 102 | which, if you run "make" and "make install", will result in the binary |
---|
[389] | 103 | being put in the directory /home/mduchamp/bin. Similarly the library |
---|
| 104 | will be put in /home/mduchamp/lib and the header files in |
---|
| 105 | /home/mduchamp/include/duchamp and subdirectories thereof. |
---|
[338] | 106 | |
---|
| 107 | If the above-mentioned libraries have been installed in non-standard |
---|
| 108 | locations, or you have more than one version installed on your system, |
---|
| 109 | you can specify specific locations by using the --with-cfitsio=<dir>, |
---|
| 110 | --with-wcslib=<dir> or --with-pgplot=<dir> flags. For example: |
---|
| 111 | |
---|
| 112 | > ./configure --with-wcslib=/home/mduchamp/wcslib-4.2 |
---|
[1358] | 113 | |
---|
[110] | 114 | And then just run make in the usual fashion: |
---|
[1358] | 115 | |
---|
[110] | 116 | > make |
---|
| 117 | |
---|
[338] | 118 | Duchamp can be compiled without PGPLOT if it is not installed on your |
---|
| 119 | system -- the searching and text-based output remains the same, but |
---|
| 120 | you will not have any graphical output. |
---|
| 121 | To manually specify this option, use the --without-pgplot flag, eg: |
---|
[328] | 122 | |
---|
[338] | 123 | > ./configure --without-pgplot |
---|
| 124 | |
---|
| 125 | (Note that CFITSIO and WCSLIB are essential, however, so |
---|
| 126 | --without-wcslib or --without-cfitsio will not work.). |
---|
| 127 | Even if you do not give the --without-pgplot option, and the PGPLOT |
---|
| 128 | library is not found, Duchamp will still compile (albeit without |
---|
| 129 | graphical capabilities). |
---|
| 130 | |
---|
[1358] | 131 | Troubleshooting the installation |
---|
| 132 | -------------------------------- |
---|
[338] | 133 | |
---|
[1358] | 134 | There may be issues with the configure/make/install process that arise |
---|
| 135 | from non-standard locations of key libraries. The User's Guide has a |
---|
| 136 | section in Appendix A discussing some of the more common problems |
---|
| 137 | and potential solutions. |
---|
[362] | 138 | |
---|
[1358] | 139 | Feeback is welcome if you have trouble getting Duchamp working -- see |
---|
| 140 | the feedback section below. |
---|
[362] | 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 | |
---|
[1087] | 157 | This performs basic checks on the output files, but ignoring most of |
---|
| 158 | the actual values of source parameters (to avoid picking up just |
---|
| 159 | differences due to precision errors). For complete checks of the |
---|
| 160 | files, run |
---|
| 161 | |
---|
| 162 | > ./VerifyDuchamp.sh -f |
---|
| 163 | |
---|
| 164 | Be warned that on some systems this could provide a large number of |
---|
| 165 | apparent errors which may only be due to precision differences. |
---|
| 166 | |
---|
[382] | 167 | Once you know it is working, you can install Duchamp on your system |
---|
| 168 | with the command |
---|
| 169 | |
---|
| 170 | > make install |
---|
| 171 | |
---|
[1087] | 172 | (this may need to be run as sudo depending on your system setup and |
---|
| 173 | your prefix directory). |
---|
| 174 | |
---|
[157] | 175 | You can also use the dummy image for your own testing if you like (for |
---|
| 176 | instance, testing different thresholds to get a feel for how the |
---|
[382] | 177 | program works). |
---|
[154] | 178 | |
---|
[157] | 179 | |
---|
[110] | 180 | Using Duchamp |
---|
[338] | 181 | ============= |
---|
[110] | 182 | |
---|
| 183 | There are two possible ways to run Duchamp. The first is: |
---|
| 184 | |
---|
| 185 | > Duchamp -f image.fits |
---|
| 186 | |
---|
| 187 | where image.fits is the data cube to be searched. This method simply |
---|
| 188 | uses the default values of all parameters. |
---|
| 189 | |
---|
| 190 | The second method allows some determination of the parameter values by |
---|
| 191 | the user. Type: |
---|
| 192 | |
---|
| 193 | > Duchamp -p parameterFile |
---|
| 194 | |
---|
[3] | 195 | where parameterFile is a file with the input parameters, including the |
---|
[110] | 196 | name of the cube you want to search. There are two example input files |
---|
| 197 | included with the distribution. The smaller one, InputExample, shows |
---|
| 198 | the typical parameters one might want to set. The large one, |
---|
| 199 | InputComplete, lists all possible parameters that can be entered, and |
---|
| 200 | a brief description of them. To get going quickly, just replace the |
---|
| 201 | "your-file-here" in InputExample with your image name, and type |
---|
[3] | 202 | |
---|
[110] | 203 | > Duchamp -p InputExample |
---|
[3] | 204 | |
---|
[298] | 205 | By default, a map of detections is displayed in a PGPLOT |
---|
| 206 | X-window. This can be disabled by using the flagXOutput parameter, or |
---|
| 207 | using the -x command-line option along with the -f or -p options. The |
---|
| 208 | -x option will override the setting in the parameter file. |
---|
| 209 | |
---|
[1160] | 210 | You can specify a flux threshold from the command line by using the -t |
---|
| 211 | option. This is particularly useful when combined with -f to enable a |
---|
| 212 | quick search to some flux level: |
---|
| 213 | |
---|
| 214 | > Duchamp -f image.fits -t 0.001 |
---|
| 215 | |
---|
[110] | 216 | A User's Guide in the docs/ directory provides complete |
---|
| 217 | documentation. It comes in both postscript and portable document |
---|
| 218 | format (pdf -- note that this contains hyperlinks). This guide will |
---|
| 219 | provide full descriptions of all parameters, and of all steps in the |
---|
| 220 | execution of Duchamp. |
---|
[3] | 221 | |
---|
[1358] | 222 | Feedback |
---|
| 223 | ======== |
---|
| 224 | |
---|
[229] | 225 | Any questions, please contact me. To report problems or bugs, or to |
---|
| 226 | suggest improvements, please go to the Duchamp Trac wiki site: |
---|
[328] | 227 | http://svn.atnf.csiro.au/trac/duchamp/newticket |
---|
[229] | 228 | and submit a "ticket", or view previously submitted reports. |
---|
[3] | 229 | |
---|
[381] | 230 | Acknowledging the use of Duchamp |
---|
| 231 | ================================ |
---|
| 232 | |
---|
| 233 | Duchamp is provided in the hope that it will be useful for your |
---|
| 234 | research. If you find that it is, I would ask that you acknowledge it |
---|
| 235 | in your publication by using the following: |
---|
| 236 | "This research made use of the Duchamp source finder, produced at |
---|
| 237 | the Australia Telescope National Facility, CSIRO, by M. Whiting." |
---|
| 238 | |
---|
[875] | 239 | The journal paper describing Duchamp, and providing basic comparative |
---|
[885] | 240 | tests of its different functions, is Whiting 2012, MNRAS 421, |
---|
| 241 | 3242, which can be found online at |
---|
| 242 | http://onlinelibrary.wiley.com/doi/10.1111/j.1365-2966.2012.20548.x/full. |
---|
| 243 | This paper should be cited when describing Duchamp. |
---|
[381] | 244 | |
---|
[875] | 245 | An earlier conference proceedings paper briefly describing it was: |
---|
[501] | 246 | "Astronomers! Do you know where your galaxies are?", M.Whiting, in |
---|
| 247 | "Galaxies in the Local Volume", Eds. B.Koribalski & H.Jerjen, |
---|
[580] | 248 | Astrophysics & Space Science Proceedings, Springer, 2008, p.343-344 |
---|
[676] | 249 | http://adsabs.harvard.edu/abs/2008glv..book..343W |
---|
[501] | 250 | |
---|
[1087] | 251 | Those interested in the development of a source-finder for ASKAP |
---|
| 252 | (known for now as Selavy), which make use of the Duchamp code, should |
---|
| 253 | read Whiting & Humphreys 2012, PASA 29, 371, which can be found online |
---|
| 254 | at http://www.publish.csiro.au/paper/AS12028.htm |
---|
| 255 | |
---|
[338] | 256 | ------- |
---|
[110] | 257 | Author: |
---|
[1377] | 258 | Matthew Whiting, Australia Telescope National Facility, April 2014 |
---|
[299] | 259 | Matthew.Whiting [at] csiro.au |
---|
[3] | 260 | |
---|