PRESTO

More info about PRESTO can be found here

can be downloaded from here.

Installation

1.  Install FFTW3.  (will test first with debian packages)
cdelacruz@metis:/usr/local/presto$ sudo apt-get install fftw3 fftw3-dev fftw3-doc

otherwise will compile using source version as follows:


  You need to compile FFTW for _single_
  precision (see the config flags I recommend below).

  For all architectures I recommend the following configuration:
  ./configure --enable-shared --enable-single

  Use the --prefix=SOME_PATH option to install the library and
  its related files to SOME_PATH.  (If you have admin access to 
  your machine, --prefix=/usr/local is the default for FFTW and
  is a safe bet).

  If you have a modern version of GCC installed (v3.2 or
  better) and a modern CPU (Intel Pentium III, IV, or newer;
  AMD Athlon or better), you can get drastically better performance 
  by using the following options:

  For Intel:
  --enable-sse --enable-sse2
  
  For Athlon:
  --enable-k7

  For Opteron:
  --enable-sse

  NOTE:  If you will do lots of precessing of WAPP data from
  Arecibo, I have a specially modified verion of FFTW3 that
  computes very fast custom DCTs for converting the correlator
  lags into spectra.  Let me know if you want it and I'll send
  it to you.



6.  cd to $PRESTO/src.  Check and modify the Makefile and insure that the library and include file
  directories are correct for FFTW, PGPLOT, GLIB, and TEMPO.

PRESTO="/usr/local/presto"
PGPLOT_DIR="/usr/lib/pgplot5"
TEMPO=/usr/local/tempo11

export PRESTO
export PGPLOT_DIR
export TEMPO


Modify the Makefile (under src directory):

FFTINCDIR =-I/usr/include
FFTLIBDIR =-L/usr/lib

OTHERINCDIR = -I/usr/include/libglib-2.0.so.0 

Make sure gcc/g77 are available:
run g77 and check the /usr/bin/ for the proper g77 link
carlos@phobos:/usr/bin$ sudo apt-get install g77

7.  If you are using FFTW, do a 'make makewisdom'.  This gets
  FFTW acquainted with your system.  It is best if you are the
  only user on the machine when you run this, as it is very
  computation intensive and may take a while.

8.  Do a 'make'.  This will make all of the executables.

ftp://ftp.cv.nrao.edu/NRAO-staff/sransom/ 


Compiler complains of missing glib.h. Installed libglib2.0-dev libglib2.0-doc

carlos@phobos:/usr/local/presto/src$ sudo apt-get install libglib2.0-dev libglib2.0-doc

Also tried:

libgtk2.0-0 - The GTK+ graphical user interface library

libgtk2.0-dev - Development files for the GTK+ library


Missing X11 headers??? (part of build-essential?)


libglib2.0-0-dbg - The GLib libraries and debugging symbols

carlos@phobos:/usr/lib$ sudo apt-get install libglib1.2 libglib1.2-dev



9.  The required libraries and miscellaneous files will be
  located in presto/lib.  You may copy or move the executables
  wherever you like, but the library files should stay put.
  (That's why you define the PRESTO variable -- so the routines
  can find them).

10.  If you want to save some disk space, do a 'make clean' in
  the 'src' directory.  This will leave the libraries and
  binaries in their respective directories but will get rid of
  all the extra stuff in the 'src' directory.

11.  Go find pulsars.

12.  If you want to use all the python routines, you need Python >=
  version 2.3, and SciPy.  You can get the latter here:
  http://www.scipy.org/download/

Our workstations have python 2.4.2:
cdelacruz@metis:/usr/local/presto/presto/src$ python
Python 2.4.2 (#2, Sep 30 2005, 21:19:01)
[GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
cdelacruz@metis:/usr/local/presto/presto/src$

python2.4-ipython - enhanced interactive Python shell [built for python 2.4]
python2.4-scipy - scientific tools for Python 2.4
python2.4-scipy-core - low level utilities for scipy (for python 2.4)

cdelacruz@metis:/usr/local/presto/presto/src$ sudo apt-get install python2.4-ipython

Selecting previously deselected package python2.4-ipython.

cdelacruz@metis:/usr/local/presto/presto/src$ sudo apt-get install python2.4-profiler

cdelacruz@metis:/usr/local/presto/presto/src$ sudo apt-get install python2.4-numeric-ext

cdelacruz@metis:/usr/local/presto/presto/src$ sudo apt-get install python2.4-scipy

cdelacruz@metis:/usr/local/presto/presto/src$ sudo apt-get install python2.4-f2py



cdelacruz@metis:/usr/local/presto/presto/src$ sudo apt-get install python-wxgtk2.4
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  libglib1.2 libgtk1.2 libgtk1.2-common libwxgtk2.4-1 python-wxversion
Suggested packages:
  wx2.4-doc wx2.4-examples
The following NEW packages will be installed:
  libglib1.2 libgtk1.2 libgtk1.2-common libwxgtk2.4-1 python-wxgtk2.4
  python-wxversion
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 5027kB of archives.
After unpacking 18.2MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com breezy/main libgtk1.2-common 1.2.10-17build1 [158kB]
Get:2 http://us.archive.ubuntu.com breezy/main libglib1.2 1.2.10-10ubuntu1 [117kB]
Get:3 http://us.archive.ubuntu.com breezy/main libgtk1.2 1.2.10-17build1 [837kB]Get:4 http://us.archive.ubuntu.com breezy/universe libwxgtk2.4-1 2.4.4.1ubuntu1 [1490kB]
Get:5 http://us.archive.ubuntu.com breezy/universe python-wxversion 2.6.1.1.1ubuntu2 [20.3kB]
Get:6 http://us.archive.ubuntu.com breezy/universe python-wxgtk2.4 2.4.4.1ubuntu1 [2405kB]
Fetched 5027kB in 3s (1465kB/s)

Preconfiguring packages ...
Selecting previously deselected package libgtk1.2-common.
(Reading database ... 88787 files and directories currently installed.)
Unpacking libgtk1.2-common (from .../libgtk1.2-common_1.2.10-17build1_all.deb) ...
Selecting previously deselected package libglib1.2.
Unpacking libglib1.2 (from .../libglib1.2_1.2.10-10ubuntu1_i386.deb) ...
Selecting previously deselected package libgtk1.2.
Unpacking libgtk1.2 (from .../libgtk1.2_1.2.10-17build1_i386.deb) ...
Selecting previously deselected package libwxgtk2.4-1.
Unpacking libwxgtk2.4-1 (from .../libwxgtk2.4-1_2.4.4.1ubuntu1_i386.deb) ...
Selecting previously deselected package python-wxversion.
Unpacking python-wxversion (from .../python-wxversion_2.6.1.1.1ubuntu2_all.deb) ...
Selecting previously deselected package python-wxgtk2.4.
Unpacking python-wxgtk2.4 (from .../python-wxgtk2.4_2.4.4.1ubuntu1_i386.deb) ...Setting up libgtk1.2-common (1.2.10-17build1) ...

Setting up libglib1.2 (1.2.10-10ubuntu1) ...

Setting up libgtk1.2 (1.2.10-17build1) ...

Setting up libwxgtk2.4-1 (2.4.4.1ubuntu1) ...

Setting up python-wxversion (2.6.1.1.1ubuntu2) ...
Setting up python-wxgtk2.4 (2.4.4.1ubuntu1) ...

cdelacruz@metis:/usr/local/presto/presto/src$


cdelacruz@metis:/usr/local/presto/presto/src$ sudo apt-get install wx2.4-doc Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed:
  wx2.4-doc
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1007kB of archives.
After unpacking 5951kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com breezy/universe wx2.4-doc 2.4.4.1ubuntu1 [1007kB]
Fetched 1007kB in 0s (1463kB/s)

Preconfiguring packages ...
Selecting previously deselected package wx2.4-doc.
(Reading database ... 89251 files and directories currently installed.)
Unpacking wx2.4-doc (from .../wx2.4-doc_2.4.4.1ubuntu1_all.deb) ...
Setting up wx2.4-doc (2.4.4.1ubuntu1) ...

cdelacruz@metis:/usr/local/presto/presto/src$ sudo apt-get install wx2.4-examples
Reading package lists... Done
Building dependency tree... Done
Suggested packages:
  libwxgtk2.4-dev
The following NEW packages will be installed:
  wx2.4-examples
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2685kB of archives.
After unpacking 5427kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com breezy/universe wx2.4-examples 2.4.4.1ubuntu1 [2685kB]
Fetched 2685kB in 1s (2014kB/s)

Preconfiguring packages ...
Selecting previously deselected package wx2.4-examples.
(Reading database ... 89793 files and directories currently installed.)
Unpacking wx2.4-examples (from .../wx2.4-examples_2.4.4.1ubuntu1_all.deb) ...
Setting up wx2.4-examples (2.4.4.1ubuntu1) ...
cdelacruz@metis:/usr/local/presto/presto/src$

Package Dependencies

PGPLOT  http://www.astro.caltech.edu/~tjp/pgplot/
  You need the X-windows and postscript drivers at a minimum.

TEMPO.  Make sure to set the TEMPO environment variable.
  http://pulsar.princeton.edu/tempo/index.html

GLIB.
  ftp://ftp.gnome.org/pub/GNOME/stable/sources/glib/ On Linux
  machines this is almost certainly already on your system
  (check in /usr/lib and /usr/include/glib*).  Although you may
  need to install a glib development package in order to have
  the required include files...



cdelacruz@metis:/usr/bin$ sudo apt-get install dmalloc
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  libdmalloc4 libdmalloc4-dev
The following NEW packages will be installed:
  dmalloc libdmalloc4 libdmalloc4-dev
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 384kB of archives.
After unpacking 1106kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com breezy/universe libdmalloc4 5.4.2-1 [103kB]
Get:2 http://us.archive.ubuntu.com breezy/universe libdmalloc4-dev 5.4.2-1 [278kB]
Get:3 http://us.archive.ubuntu.com breezy/universe dmalloc 5.4.2-1 [3976B]
Fetched 384kB in 0s (604kB/s)

Preconfiguring packages ...
Selecting previously deselected package libdmalloc4.
(Reading database ... 89115 files and directories currently installed.)
Unpacking libdmalloc4 (from .../libdmalloc4_5.4.2-1_i386.deb) ...
Selecting previously deselected package libdmalloc4-dev.
Unpacking libdmalloc4-dev (from .../libdmalloc4-dev_5.4.2-1_i386.deb) ...
Selecting previously deselected package dmalloc.
Unpacking dmalloc (from .../dmalloc_5.4.2-1_all.deb) ...
Setting up libdmalloc4 (5.4.2-1) ...
Setting up libdmalloc4-dev (5.4.2-1) ...

Setting up dmalloc (5.4.2-1) ...
cdelacruz@metis:/usr/bin$