Project

General

Profile

Installation guide

Downloading the code

Go to the installation directory and checkout the svn.

svn checkout http://svn.oamp.fr/repos/tips/tags/tips-1.0

Configuring and compiling the code

C code

Got to the "tips-1.0/axesim" directory and run the autotools :

./configure
The c code require:
  • gcc >= 2.95
  • gsl >= 1.0
  • wcstools >= 3.6
  • cfitsio >= 2.0
    You can specify the path to the library with the option "--with-lib-prefix" if they are not installed in the usual paths (/usr/lib or /usr/local/lib).
./configure --with-gsl-prefix=/path/to/libgsl --with-cfitsio-prefix=/path/to/libcfitsio --with-wcstools-prefix=/path/to/libwcs

Then compile the c code :

make
If all went okay, you'll find in the directory "tips-1.0/axesim/bin" the following binaries :
  • aXe_AF2PET
  • aXe_DIRIMAGE
  • aXe_DISPIMAGE
  • aXe_GOL2AF
  • aXe_PET2SPC
  • aXe_PETCONT
  • aXe_SEX2GOL
  • aXe_STAMPS

Python code

The python code require:
  • python >= 2.6.7
  • fitsio >= 0.9.5
  • asciidata >= 1.1.1
  • numpy >= 1.6.0
  • scipy >= 0.9.0

To be able to call tips module add the tips-1.0 directory to your python path.
In bash:

export PYTHONPATH=$PYTHONPATH:/path/to/dir/tips-1.0

In tcsh:

setenv PYTHONPATH $PYTHONPATH:/path/to/dir/tips-1.0

If you forecast to ofen use TIPS, you should set your python path in your session file (usualy "~/.bachrc" or "~/.tcshrc").

Test the installation

Create a working directory to test the code.
Launch python.

python

Load the test module.

>>> import test_tips

Run the tests.

>>> test_tips.run()

Many tests will be run during typicaly 20 minutes.
If the test finish without error, the installation should be ok.

Successful installation of the code

  • mardark@cppm
    • Scientific Linux release 5.8 (Boron)
    • Kernel : Linux 2.6.18-308.4.1.el5
    • gcc 4.1.2
    • gsl 1.13
    • wcstools 3.8.5
    • cfitsio 3.25
    • python 2.7.3
    • numpy 1.6.0
    • scipy 0.9.0
    • pyfits 3.0.1
    • asciidata 1.1.1
  • ppfb@lam
    • Scientific Linux release 6.1 (Carbon)
    • Kernel : Linux 2.6.32-220.4.1.el6.x86_64
    • gcc 4.4.6
    • gsl 1.15
    • wcstools 3.8.5
    • cfitsio 3.25
    • python 2.6.6
    • numpy 1.6.1
    • scipy 0.10.1
    • pyfits 3.0.1
    • asciidata 1.1.1
  • macbook pro
    • Debian 3.2.20 (wheezy/sid)
    • Kernel : Linux version 3.2.0-2-amd64
    • gcc 4.6.3
    • gsl 1.15
    • wcstools 3.8.5
    • cfitsio 3.30
    • python 2.7.3
    • numpy 1.6.2
    • scipy 0.10.1
    • pyfits 3.0.8
    • asciidata 1.1.1