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

Last change on this file since 201 was 168, checked in by Matthew Whiting, 18 years ago

A couple of changes:

  • Removed the Fortran search in the configure script -- we don't use it.
  • Cleaned up some of the fits-I/O tasks, adding some functions that check for the existence of the FITS file (fits_file_exists).
  • This task is only in v2.5+ of cfitsio, so added notes to this effect in README and the Guide.
  • Improved the exiting and warning messages in mainDuchamp.cc.
File size: 4.1 KB
Line 
1\secA{Obtaining and installing \duchamp}
2\label{app-install}
3
4The \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}\\
7Here you can find a gzipped tar archive of the source code that can be
8downloaded and extracted, as well as this User's Guide in postscript
9and hyperlinked PDF formats.
10
11To build \duchamp, you will need three main external libraries:
12\textsc{pgplot}, \textsc{cfitsio} (this needs to be version 2.5 or
13greater -- version 3+ is better) and \textsc{wcslib}. If these are not
14present on your system, you can download them from the following
15locations:
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
29the prompt your terminal provides is a \texttt{> } -- don't type this
30character!):
31\begin{quote}
32\texttt{%
33> ./configure\\
34> make\\
35> make clean (optional -- to remove the object files)}
36\end{quote}
37
38Run in this manner, \texttt{configure} should find all the necessary
39libraries, but if some libraries have been installed in non-standard
40locations, it may fail. In this case, you can specify additional
41directories to look in by giving extra command-line arguments. There
42are separate options for library files (eg. libcpgplot.a) and header
43files (eg. cpgplot.h).
44
45For example, suppose \textsc{wcslib} had been locally installed in
46\texttt{/home/mduchamp/wcslib}. There will then be two libraries
47created that are likely to be in the following subdirectories:
48\texttt{C/} and \texttt{pgsbox/}. Each subdirectory needs to be
49searched for library and header files, so one could build Duchamp by
50typing:
51\begin{quote}
52\texttt{%
53>  ./configure $\backslash$ \\
54LIBDIRS="/home/mduchamp/wcslib/C /home/mduchamp/wcslib/pgsbox"
55$\backslash$\\
56INCDIRS="/home/mduchamp/wcslib/C /home/mduchamp/wcslib/pgsbox"}
57\end{quote}
58And then just run make in the usual fashion:
59\begin{quote}
60\texttt{> make}
61\end{quote}
62
63This will produce the executable \texttt{Duchamp}. You can verify that
64it is running correctly by running the verification shell script:
65\begin{quote}
66\texttt{> VerifyDuchamp.sh}
67\end{quote}
68This will use a dummy FITS image in the \texttt{verification/}
69directory -- this image has some Gaussian random noise, with five
70Gaussian sources present, plus a dummy WCS. The script runs
71Duchamp on this image with three different sets of inputs, and
72compares to known results, looking for differences and reporting
73any. There should be none reported if everything is working correctly.
74
75You can then run \duchamp\ on your own data. This can be done in one
76of two ways. The first is:
77\begin{quote}
78\texttt{> Duchamp -f [FITS file]}
79\end{quote}
80where \texttt{[FITS file]} is the file you wish to search. This method
81simply uses the default values of all parameters.
82
83The second method allows some determination of the parameter values by
84the user. Type:
85\begin{quote}
86\texttt{> Duchamp -p [parameter file]}
87\end{quote}
88where \texttt{[parameterFile]} is a file with the input parameters,
89including the name of the cube you want to search. There are two
90example input files included with the distribution. The smaller one,
91\texttt{InputExample}, shows the typical parameters one might want to
92set. The large one, \texttt{InputComplete}, lists all possible
93parameters that can be entered, and a brief description of them. To
94get 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
100The following appendices provide details on the individual parameters,
101and show examples of the output files that \duchamp\ produces.
Note: See TracBrowser for help on using the repository browser.