射电天文软件安装之PRESTO

1. update the source

$ sudo apt-get update

2.1 install git and support libraries

$ sudo apt-get install git libfftw3-bin libfftw3-dbg libfftw3-dev libfftw3-doc libfftw3-double3 libfftw3-long3 libfftw3-quad3 libfftw3-single3 pgplot5 csh automake gfortran libglib2.0-dev libccfits-dev libcfitsio3 libcfitsio3-dev libx11-dev libpng12-dev nvidia-cuda-dev libcuda1-331

answer yes wherever it is necessary

$ sudo apt-get install python-numpy libopenblas-dev liblapack-dev libatlas-base-dev python-scipy
$ cd ~
$ mkdir PRESTO
$ cd PRESTO

4. download the presto and tempo via GIT

$ git clone git://github.com/scottransom/presto.git
$ git clone git://git.code.sf.net/p/tempo/tempo
$ git clone https://github.com/scottransom/pyslalib.git

5. install pyslalib

$ cd pyslalib-master
$ python setup.py install
$ sudo find / -name slalib.so 

6. install tempo

$ cd tempo
$ ./prepare
$ ./configure
$ make && sudo make install
$ cp tempo.cfg src/
$ cp tempo.hlp src/

7. add the environment

$ sudo nano /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/zhen/Developer/PRESTO/presto/bin:/usr/local/cuda-5.5/bin"

TEMPO="/home/zhen/Developer/PRESTO/tempo/src"

PRESTO="/home/zhen/Developer/PRESTO/presto"

PGPLOT_DIR=”/usr/lib/pgplot5”

FFTW_PATH=”/usr”

LD_LIBRARY_PATH=”/usr/local/cuda/lib64:/usr/local/cuda/lib:/home/zhen/Developer/PRESTO/presto/lib:/usr/local/lib/python2.7/dist-packages/pyslalib/slalib.so”

PYTHONPATH=”/home/zhen/Developer/PRESTO/presto/python:/home/zhen/Developer/PRESTO/presto/lib/python”

8. Reboot computer

$ sudo reboot

9. install presto

$ cd ~/Developer/PRESTO/presto/src
$ make makewisdom
$ make prep
$ make

10. test it

$ cd ~/Downloads/presto/bin
$ wget http://www.cv.nrao.edu/~sransom/GBT_Lband_PSR.fil
$ readfile GBT_Lband_PSR.fil
$ rfifind -time 2.0 -o Lband GBT_Lband_PSR.fil
$ prepfold -n 64 -nsub 96 -p 0.004621638 -dm 62.0 GBT_Lband_PSR.fil

References

[1]. http://www.cv.nrao.edu/~sransom/presto/

[2]. https://summerpulsar.wordpress.com/2015/01/29/presto-installation-and-usage/

[3]. http://www.ljtwebdevelopment.com/pulsarref/pulsar-software-install-ubuntu-64bit.html

[4]. http://blog.csdn.net/sinat_34850075/article/details/52434526

[5]. http://www.cv.nrao.edu/~sransom/PRESTO_search_tutorial.pdf

Table of Contents