Healpix cxx
This page contains hints for using HEALPix's c++ classes. It's very much a work in progress, with things added as and when I discover them. If you have any suggestions/comments, please leave them on the talk page.
Compilation
You probably want to add the following libraries to your make command for your application:
-lhealpix_cxx -lcfitsio -lcxxsupport -lfftpack
The first of these is the main healpix one; the second deals with FITS input/output; the third provides various supporting functions and definitions, and is needed for FITS input/output. The fourth is the fourier transform pack.
Also, make sure that the healpix compile path looked at, via putting something like the following also in your make command:
-B$(HEALPIXPATH)/bin -I$(HEALPIXPATH)/include -L$(HEALPIXPATH)/lib
where
HEALPIXPATH = /Healpix/src/cxx/generic_gcc
... altered so that it points to your healpix compile path, of course. Otherwise, your program won't be able to find HEALPix, and will fail.
Creating a map
You need to include both healpix_map.h and healpix_base.h (or possibly just the former?). You can create the map using something like:
Healpix_Map<double> map = Healpix_Map<double>(); map.SetNside(HEALPIX_NSIDE, RING);
FITS output
You need to compile with both of the fitsio libraries above (cfitsio and cxxsupport), and include healpix_data_io.h, healpix_map_fitsio.h and fitshandle.h.
The third parameter, int datatype, of write_Healpix_map_to_fits can be one of the following:
TFLOAT TDOUBLE TINT TINT32BIT TSTRING
