source: tags/release-1.1/docs/app-install.tex @ 1323

Last change on this file since 1323 was 303, checked in by Matthew Whiting, 17 years ago
  • Update the Outputs chapter to mention the use of F_tot.
  • Fixed comments in pgplot_related.c
  • Added distribution text to tex files.
File size: 7.6 KB
Line 
1% -----------------------------------------------------------------------
2% app-install.tex: Section about how to download, install and run
3%                  Duchamp.
4% -----------------------------------------------------------------------
5% Copyright (C) 2006, Matthew Whiting, ATNF
6%
7% This program 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.
11%
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.
16%
17% You should have received a copy of the GNU General Public License
18% along with Duchamp; if not, write to the Free Software Foundation,
19% Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
20%
21% Correspondence concerning Duchamp may be directed to:
22%    Internet email: Matthew.Whiting [at] 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\secA{Obtaining and installing \duchamp}
30\label{app-install}
31
32\secB{Installing}
33The \duchamp web page can be found at the following location:\\
34\href{http://www.atnf.csiro.au/people/Matthew.Whiting/Duchamp}%
35{http://www.atnf.csiro.au/people/Matthew.Whiting/Duchamp}\\
36Here you can find a gzipped tar archive of the source code that can be
37downloaded and extracted, as well as this User's Guide in postscript
38and hyperlinked PDF formats.
39
40To build \duchamp, you will need three main external libraries:
41\textsc{pgplot}, \textsc{cfitsio} (this needs to be version 2.5 or
42greater -- version 3+ is better) and \textsc{wcslib}. If these are not
43present on your system, you can download them from the following
44locations:
45\begin{itemize}
46\item \textsc{pgplot}:
47\href{http://www.astro.caltech.edu/~tjp/pgplot/}%
48{\footnotesize http://www.astro.caltech.edu/~tjp/pgplot/}
49\item \textsc{cfitsio}:
50\href{http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html}%
51{\footnotesize http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html}
52\item \textsc{wcslib}:
53\href{http://www.atnf.csiro.au/people/Mark.Calabretta/WCS/index.html}%
54{\footnotesize http://www.atnf.csiro.au/people/Mark.Calabretta/WCS/index.html}
55\end{itemize}
56
57\duchamp can be built on Unix/Linux systems by typing (assuming that
58the prompt your terminal provides is a \texttt{> } -- don't type this
59character!):
60\begin{quote}
61{\footnotesize
62\texttt{%
63> ./configure\\
64> make\\
65> make clean (optional -- to remove the object files)}
66}
67\end{quote}
68
69Run in this manner, \texttt{configure} should find all the necessary
70libraries, but if some libraries have been installed in non-standard
71locations, it may fail. In this case, you can specify additional
72directories to look in by giving extra command-line arguments. There
73are separate options for library files (eg. libcpgplot.a) and header
74files (eg. cpgplot.h).
75
76For example, suppose \textsc{wcslib} had been locally installed in the
77directory \texttt{/home/mduchamp/wcslib}. There will then be two
78libraries created that are likely to be in the following
79subdirectories: \texttt{C/} and \texttt{pgsbox/}. Each subdirectory
80needs to be searched for library and header files, so one could build
81Duchamp by typing:
82\begin{quote}
83{\footnotesize
84\texttt{%
85>  ./configure $\backslash$ \\
86LIBDIRS="/home/mduchamp/wcslib/C /home/mduchamp/wcslib/pgsbox"
87$\backslash$\\
88INCDIRS="/home/mduchamp/wcslib/C /home/mduchamp/wcslib/pgsbox"}
89}
90\end{quote}
91And then just run make in the usual fashion:
92\begin{quote}
93{\footnotesize
94\texttt{> make}
95}
96\end{quote}
97
98This will produce the executable \texttt{Duchamp}. You can verify that
99it is running correctly by running the verification shell script:
100\begin{quote}
101{\footnotesize
102\texttt{> VerifyDuchamp.sh}
103}
104\end{quote}
105This will use a dummy FITS image in the \texttt{verification/}
106directory -- this image has some Gaussian random noise, with five
107Gaussian sources present, plus a dummy WCS. The script runs
108Duchamp on this image with four different sets of inputs, and
109compares to known results, looking for differences and reporting
110any. There should be none reported if everything is working correctly.
111
112\secB{Running \duchamp}
113You can then run \duchamp on your own data. This can be done in one
114of two ways. The first is:
115\begin{quote}
116{\footnotesize
117\texttt{> Duchamp -f [FITS file]}
118}
119\end{quote}
120where \texttt{[FITS file]} is the file you wish to search. This method
121simply uses the default values of all parameters.
122
123The second method allows some determination of the parameter values by
124the user. Type:
125\begin{quote}
126{\footnotesize
127\texttt{> Duchamp -p [parameter file]}
128}
129\end{quote}
130where \texttt{[parameterFile]} is a file with the input parameters,
131including the name of the cube you want to search. There are two
132example input files included with the distribution. The smaller one,
133\texttt{InputExample}, shows the typical parameters one might want to
134set. The large one, \texttt{InputComplete}, lists all possible
135parameters that can be entered, and a brief description of them. To
136get going quickly, just replace the \texttt{"your-file-here"} in the
137\texttt{InputExample} file with your image name, and type
138\begin{quote}
139{\footnotesize
140\texttt{> Duchamp -p InputExample}
141}
142\end{quote}
143
144To disable the use of X-window plotting (in displaying the map of
145detections), one can either set the parameter \texttt{flagXOutput =
146false} or use the \texttt{-x} command-line option:
147\begin{quote}
148{\footnotesize
149\texttt{> Duchamp -x -p [parameter file]}
150}, or\\
151{\footnotesize
152\texttt{> Duchamp -x -f [FITS file]}
153}
154\end{quote}
155
156The following appendices provide details on the individual parameters,
157and show examples of the output files that \duchamp produces.
158
159\secB{Feedback}
160It may happen that you discover bugs or problems with \duchamp, or you
161have suggestions for improvements or additional features to be
162included in future releases. You can submit a ``ticket'' (a trackable
163bug report) at the \duchamp Trac wiki at the following location:\\
164\href{http://sourcecode.atnf.csiro.au/cgi-bin/trac\_duchamp.cgi/newticket}%
165{\footnotesize
166http://sourcecode.atnf.csiro.au/cgi-bin/trac\_duchamp.cgi/newticket}
167\\(there is a link to this page from the Duchamp website).
168
169There is also an email exploder, duchamp-user\textbf{[at]}atnf.csiro.au,
170that users can subscribe to keep up to date with changes, updates, and
171other news about \duchamp. To subscribe, send an email (from the
172account you wish to subscribe to the list) to
173duchamp-user-request\textbf{[at]}atnf.csiro.au with the single word
174``subscribe'' in the body of the message. To be removed from this
175list, send a message with ``unsubscribe'' in its body to the same
176address.
177
178\secB{Beta Versions}
179
180On the \duchamp website there may be a beta version listed in the
181downloads section. As \duchamp is still under development, there will
182be times when there has been new functionality added to the code, but
183the time has not yet come to release a new minor (or indeed major)
184version.
185
186Sometimes I will post the updated version of the code on the website
187as a ``beta'' version, particularly if I'm interested in people
188testing it. It will not have been tested as rigorously as the proper
189releases, but it will certainly work in the basic cases that I use to
190test it during development. So feel free to give it a try -- the
191\texttt{CHANGES} file will usually detail what is different to the last
192numbered release.
Note: See TracBrowser for help on using the repository browser.