1 | \secA{Obtaining and installing \duchamp} |
---|
2 | \label{app-install} |
---|
3 | |
---|
4 | The \duchamp\ web page can be found at the following location:\\ |
---|
5 | \href{http://www.atnf.csiro.au/people/Matthew.Whiting/Duchamp}% |
---|
6 | {http://www.atnf.csiro.au/people/Matthew.Whiting/Duchamp}\\ |
---|
7 | Here you can find a gzipped tar archive of the source code that can be |
---|
8 | downloaded and extracted, as well as this User's Guide in postscript |
---|
9 | and hyperlinked PDF formats. |
---|
10 | |
---|
11 | To build \duchamp, you will need three main external libraries: |
---|
12 | \textsc{pgplot}, \textsc{cfitsio} (this needs to be version 2.5 or |
---|
13 | greater -- version 3+ is better) and \textsc{wcslib}. If these are not |
---|
14 | present on your system, you can download them from the following |
---|
15 | locations: |
---|
16 | \begin{itemize} |
---|
17 | \item \textsc{pgplot}: |
---|
18 | \href{http://www.astro.caltech.edu/~tjp/pgplot/}% |
---|
19 | {http://www.astro.caltech.edu/~tjp/pgplot/} |
---|
20 | \item \textsc{cfitsio}: |
---|
21 | \href{http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html}% |
---|
22 | {http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html} |
---|
23 | \item \textsc{wcslib}: |
---|
24 | \href{http://www.atnf.csiro.au/people/Mark.Calabretta/WCS/index.html}% |
---|
25 | {http://www.atnf.csiro.au/people/Mark.Calabretta/WCS/index.html} |
---|
26 | \end{itemize} |
---|
27 | |
---|
28 | \duchamp\ can be built on Unix/Linux systems by typing (assuming that |
---|
29 | the prompt your terminal provides is a \texttt{> } -- don't type this |
---|
30 | character!): |
---|
31 | \begin{quote} |
---|
32 | \texttt{% |
---|
33 | > ./configure\\ |
---|
34 | > make\\ |
---|
35 | > make clean (optional -- to remove the object files)} |
---|
36 | \end{quote} |
---|
37 | |
---|
38 | Run in this manner, \texttt{configure} should find all the necessary |
---|
39 | libraries, but if some libraries have been installed in non-standard |
---|
40 | locations, it may fail. In this case, you can specify additional |
---|
41 | directories to look in by giving extra command-line arguments. There |
---|
42 | are separate options for library files (eg. libcpgplot.a) and header |
---|
43 | files (eg. cpgplot.h). |
---|
44 | |
---|
45 | For example, suppose \textsc{wcslib} had been locally installed in |
---|
46 | \texttt{/home/mduchamp/wcslib}. There will then be two libraries |
---|
47 | created that are likely to be in the following subdirectories: |
---|
48 | \texttt{C/} and \texttt{pgsbox/}. Each subdirectory needs to be |
---|
49 | searched for library and header files, so one could build Duchamp by |
---|
50 | typing: |
---|
51 | \begin{quote} |
---|
52 | \texttt{% |
---|
53 | > ./configure $\backslash$ \\ |
---|
54 | LIBDIRS="/home/mduchamp/wcslib/C /home/mduchamp/wcslib/pgsbox" |
---|
55 | $\backslash$\\ |
---|
56 | INCDIRS="/home/mduchamp/wcslib/C /home/mduchamp/wcslib/pgsbox"} |
---|
57 | \end{quote} |
---|
58 | And then just run make in the usual fashion: |
---|
59 | \begin{quote} |
---|
60 | \texttt{> make} |
---|
61 | \end{quote} |
---|
62 | |
---|
63 | This will produce the executable \texttt{Duchamp}. You can verify that |
---|
64 | it is running correctly by running the verification shell script: |
---|
65 | \begin{quote} |
---|
66 | \texttt{> VerifyDuchamp.sh} |
---|
67 | \end{quote} |
---|
68 | This will use a dummy FITS image in the \texttt{verification/} |
---|
69 | directory -- this image has some Gaussian random noise, with five |
---|
70 | Gaussian sources present, plus a dummy WCS. The script runs |
---|
71 | Duchamp on this image with three different sets of inputs, and |
---|
72 | compares to known results, looking for differences and reporting |
---|
73 | any. There should be none reported if everything is working correctly. |
---|
74 | |
---|
75 | You can then run \duchamp\ on your own data. This can be done in one |
---|
76 | of two ways. The first is: |
---|
77 | \begin{quote} |
---|
78 | \texttt{> Duchamp -f [FITS file]} |
---|
79 | \end{quote} |
---|
80 | where \texttt{[FITS file]} is the file you wish to search. This method |
---|
81 | simply uses the default values of all parameters. |
---|
82 | |
---|
83 | The second method allows some determination of the parameter values by |
---|
84 | the user. Type: |
---|
85 | \begin{quote} |
---|
86 | \texttt{> Duchamp -p [parameter file]} |
---|
87 | \end{quote} |
---|
88 | where \texttt{[parameterFile]} is a file with the input parameters, |
---|
89 | including the name of the cube you want to search. There are two |
---|
90 | example input files included with the distribution. The smaller one, |
---|
91 | \texttt{InputExample}, shows the typical parameters one might want to |
---|
92 | set. The large one, \texttt{InputComplete}, lists all possible |
---|
93 | parameters that can be entered, and a brief description of them. To |
---|
94 | get going quickly, just replace the "your-file-here" in |
---|
95 | \texttt{InputExample} with your image name, and type |
---|
96 | \begin{quote} |
---|
97 | \texttt{> Duchamp -p InputExample} |
---|
98 | \end{quote} |
---|
99 | |
---|
100 | The following appendices provide details on the individual parameters, |
---|
101 | and show examples of the output files that \duchamp\ produces. |
---|