S

Spherelib

spherelib

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

Installation of the python package

Dependencies

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.

The following libraries are also required:

  • GSL
  • FFTW3

The swig program is used to interface c++ with python, together with the numpy core headers (in particular numpy/arrayobject.h)

Installing the spherelib python package

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

Using the C++ library