README.org 1.18 KB
Newer Older
Maude Le Jeune's avatar
Maude Le Jeune committed
1
#+TITLE: spherelib
Maude Le Jeune's avatar
Maude Le Jeune committed
2 3
#+STYLE: <link rel="stylesheet" type="text/css" href="org.css" />
#+AUTHOR: M. Le Jeune
Maude Le Jeune's avatar
Maude Le Jeune committed
4
#+DATE: 2013-02-21 13:58:59 CET
Maude Le Jeune's avatar
Maude Le Jeune committed
5 6
#+EMAIL: lejeune@apc.univ-paris7.fr

Maude Le Jeune's avatar
Maude Le Jeune committed
7 8 9 10
The spherelib package extends the healpix functionnalities. It includes: 
+ a c++ librabry (/lib)
+ a python package (/python)
+ a needlet ilc binary (/nilc) See NILC_README.org for more info 
Maude Le Jeune's avatar
Maude Le Jeune committed
11

Maude Le Jeune's avatar
Maude Le Jeune committed
12
* Installation of the python package
Maude Le Jeune's avatar
Maude Le Jeune committed
13

Maude Le Jeune's avatar
Maude Le Jeune committed
14 15
** Dependencies

16 17 18 19
The spherelib python package relies on healpy python package
(https://github.com/healpy/healpy) and Healpix C++ library.  
The Healpix software provides both (http://sourceforge.net/projects/healpix/)
The healpy package can also be installed through =pip= tools.  
Maude Le Jeune's avatar
Maude Le Jeune committed
20

Maude Le Jeune's avatar
Maude Le Jeune committed
21 22 23
The following libraries are also required: 
+ *GSL*
+ *FFTW3*
Maude Le Jeune's avatar
Maude Le Jeune committed
24

Maude Le Jeune's avatar
Maude Le Jeune committed
25 26
The *swig* program is used to interface c++ with python, together with the numpy
core headers (in particular numpy/arrayobject.h)
Maude Le Jeune's avatar
Maude Le Jeune committed
27 28


Maude Le Jeune's avatar
Maude Le Jeune committed
29
** Installing the spherelib python package
Maude Le Jeune's avatar
Maude Le Jeune committed
30

31 32 33 34 35 36
  =cd spherelib/python=
  =./waf configure --healpix_prefix=$HEALPIX/src/cxx/$HEALPIX_TARGET --prefix=$HOME=
  =./waf install=
  =export PYTHONPATH=$HOME/lib/python2.6/site-packages:$PYTHONPATH=
  =export LD_LIBRARY_PATH=$HOME/lib:$LD_LIBRARY_PATH=

Maude Le Jeune's avatar
Maude Le Jeune committed
37

Maude Le Jeune's avatar
Maude Le Jeune committed
38
* Using the C++ library
Maude Le Jeune's avatar
Maude Le Jeune committed
39 40