source: trunk/docs/app-install.tex @ 298

Last change on this file since 298 was 298, checked in by Matthew Whiting, 17 years ago

Updated documentation, and changed the version number to 1.1 ready for the next release.

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