[110] | 1 | ----------------------------------------------------------------------- |
---|
| 2 | The Duchamp Source Finder |
---|
| 3 | ----------------------------------------------------------------------- |
---|
[328] | 4 | Duchamp 1.1.1 -- 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 |
---|
[334] | 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 |
---|
[334] | 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 | |
---|
[334] | 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 | |
---|
[334] | 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 | |
---|
[334] | 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 |
---|
| 76 | > make clean (optional -- to remove the object files from the src |
---|
| 77 | directory) |
---|
[334] | 78 | > make install |
---|
[3] | 79 | |
---|
[334] | 80 | This default setup will search in standard locations for the necessary |
---|
| 81 | libraries, and install the executable ("Duchamp") in /usr/local/bin (a |
---|
| 82 | copy will also be in the current directory). If you want this to go |
---|
| 83 | somewhere else, eg if you don't have write-access to that directory, |
---|
| 84 | or you need to tweak the libraries, see the next section. Otherwise, |
---|
| 85 | jump to the testing section. |
---|
[110] | 86 | |
---|
[157] | 87 | |
---|
[334] | 88 | Tweaking the installation setup |
---|
| 89 | ------------------------------- |
---|
| 90 | |
---|
| 91 | To install Duchamp in a directory other than /usr/local/bin, use the |
---|
[345] | 92 | --prefix option with configure, specifying the directory above the |
---|
| 93 | \texttt{bin/} directory. eg: |
---|
[334] | 94 | |
---|
[345] | 95 | > ./configure --prefix=/home/mduchamp |
---|
[334] | 96 | |
---|
[345] | 97 | which, if you run "make" and "make install", will result in the binary |
---|
| 98 | being put in the directory /home/mduchamp/bin. |
---|
[334] | 99 | |
---|
| 100 | If the above-mentioned libraries have been installed in non-standard |
---|
| 101 | locations, or you have more than one version installed on your system, |
---|
| 102 | you can specify specific locations by using the --with-cfitsio=<dir>, |
---|
| 103 | --with-wcslib=<dir> or --with-pgplot=<dir> flags. For example: |
---|
| 104 | |
---|
| 105 | > ./configure --with-wcslib=/home/mduchamp/wcslib-4.2 |
---|
[110] | 106 | And then just run make in the usual fashion: |
---|
| 107 | > make |
---|
| 108 | |
---|
[334] | 109 | Duchamp can be compiled without PGPLOT if it is not installed on your |
---|
| 110 | system -- the searching and text-based output remains the same, but |
---|
| 111 | you will not have any graphical output. |
---|
| 112 | To manually specify this option, use the --without-pgplot flag, eg: |
---|
[328] | 113 | |
---|
[334] | 114 | > ./configure --without-pgplot |
---|
| 115 | |
---|
| 116 | (Note that CFITSIO and WCSLIB are essential, however, so |
---|
| 117 | --without-wcslib or --without-cfitsio will not work.). |
---|
| 118 | Even if you do not give the --without-pgplot option, and the PGPLOT |
---|
| 119 | library is not found, Duchamp will still compile (albeit without |
---|
| 120 | graphical capabilities). |
---|
| 121 | |
---|
| 122 | |
---|
| 123 | Testing |
---|
| 124 | ======= |
---|
| 125 | |
---|
[154] | 126 | There is a script included in the distribution that allows you to make |
---|
[157] | 127 | sure Duchamp is running correctly. It will use a dummy FITS image in |
---|
| 128 | the verification/ directory -- this image has some Gaussian random |
---|
| 129 | noise, with five Gaussian sources present, plus a dummy WCS. The |
---|
| 130 | script runs Duchamp on this image with three different sets of inputs, |
---|
| 131 | and compares to known results, looking for differences and reporting |
---|
| 132 | any. There should be none reported if everything is working |
---|
[154] | 133 | correctly. To run, enter the command |
---|
[157] | 134 | |
---|
[154] | 135 | > VerifyDuchamp.sh |
---|
[110] | 136 | |
---|
[157] | 137 | You can also use the dummy image for your own testing if you like (for |
---|
| 138 | instance, testing different thresholds to get a feel for how the |
---|
| 139 | program works). |
---|
[154] | 140 | |
---|
[157] | 141 | |
---|
[110] | 142 | Using Duchamp |
---|
[334] | 143 | ============= |
---|
[110] | 144 | |
---|
| 145 | There are two possible ways to run Duchamp. The first is: |
---|
| 146 | |
---|
| 147 | > Duchamp -f image.fits |
---|
| 148 | |
---|
| 149 | where image.fits is the data cube to be searched. This method simply |
---|
| 150 | uses the default values of all parameters. |
---|
| 151 | |
---|
| 152 | The second method allows some determination of the parameter values by |
---|
| 153 | the user. Type: |
---|
| 154 | |
---|
| 155 | > Duchamp -p parameterFile |
---|
| 156 | |
---|
[3] | 157 | where parameterFile is a file with the input parameters, including the |
---|
[110] | 158 | name of the cube you want to search. There are two example input files |
---|
| 159 | included with the distribution. The smaller one, InputExample, shows |
---|
| 160 | the typical parameters one might want to set. The large one, |
---|
| 161 | InputComplete, lists all possible parameters that can be entered, and |
---|
| 162 | a brief description of them. To get going quickly, just replace the |
---|
| 163 | "your-file-here" in InputExample with your image name, and type |
---|
[3] | 164 | |
---|
[110] | 165 | > Duchamp -p InputExample |
---|
[3] | 166 | |
---|
[298] | 167 | By default, a map of detections is displayed in a PGPLOT |
---|
| 168 | X-window. This can be disabled by using the flagXOutput parameter, or |
---|
| 169 | using the -x command-line option along with the -f or -p options. The |
---|
| 170 | -x option will override the setting in the parameter file. |
---|
| 171 | |
---|
[110] | 172 | A User's Guide in the docs/ directory provides complete |
---|
| 173 | documentation. It comes in both postscript and portable document |
---|
| 174 | format (pdf -- note that this contains hyperlinks). This guide will |
---|
| 175 | provide full descriptions of all parameters, and of all steps in the |
---|
| 176 | execution of Duchamp. |
---|
[3] | 177 | |
---|
[229] | 178 | Any questions, please contact me. To report problems or bugs, or to |
---|
| 179 | suggest improvements, please go to the Duchamp Trac wiki site: |
---|
[328] | 180 | http://svn.atnf.csiro.au/trac/duchamp/newticket |
---|
[229] | 181 | and submit a "ticket", or view previously submitted reports. |
---|
[3] | 182 | |
---|
[334] | 183 | ------- |
---|
[110] | 184 | Author: |
---|
[328] | 185 | Matthew Whiting, Australia Telescope National Facility, July 2007 |
---|
[299] | 186 | Matthew.Whiting [at] csiro.au |
---|
[3] | 187 | |
---|