GammaLib  1.7.0.dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GHealpix.cpp File Reference

HealPix projection class implementation. More...

#include <cmath>
#include "GException.hpp"
#include "GTools.hpp"
#include "GMath.hpp"
#include "GVector.hpp"
#include "GHealpix.hpp"

Go to the source code of this file.

Macros

#define G_CONSTRUCT   "GHealpix::GHealpix(int& ,std::string& ,std::string&)"
 
#define G_READ   "GHealpix::read(GFitsHDU&)"
 
#define G_XY2DIR   "GHealpix::xy2dir(GSkyPixel&)"
 
#define G_DIR2XY2   "GHealpix::dir2xy(GSkyDir&)"
 
#define G_NEST2RING   "GHealpix::nest2ring(int&)"
 
#define G_RING2NEST   "GHealpix::ring2nest(int&)"
 
#define G_PIX2ANG_RING   "GHealpix::pix2ang_ring(int, double*, double*)"
 
#define G_PIX2ANG_NEST   "GHealpix::pix2ang_nest(int, double*, double*)"
 
#define G_ORDERING_SET   "GHealpix::ordering(std::string&)"
 
#define G_INTERPOLATOR   "GHealpix::interpolator(double&, double&)"
 
#define G_NEIGHBOURS   "GHealpix::neighbours(GSkyPixel&)"
 
#define G_BOUNDARIES   "GHealpix::boundaries(GSkyPixel&, int&)"
 

Variables

const int jrll [12] = {2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4}
 
const int jpll [12] = {1, 3, 5, 7, 0, 2, 4, 6, 1, 3, 5, 7}
 
const int nb_xoffset [] = {-1,-1, 0, 1, 1, 1, 0,-1}
 
const int nb_yoffset [] = { 0, 1, 1, 1, 0,-1,-1,-1}
 
const int nb_facearray [][12]
 
const int nb_swaparray [][3]
 
const int order_max = 13
 
const int ns_max = 1 << order_max
 
static short ctab [0x100]
 
static short utab [0x100]
 

Detailed Description

HealPix projection class implementation.

Author
Juergen Knoedlseder

Definition in file GHealpix.cpp.

Macro Definition Documentation

#define G_BOUNDARIES   "GHealpix::boundaries(GSkyPixel&, int&)"

Definition at line 50 of file GHealpix.cpp.

Referenced by GHealpix::boundaries().

#define G_CONSTRUCT   "GHealpix::GHealpix(int& ,std::string& ,std::string&)"

Definition at line 39 of file GHealpix.cpp.

Referenced by GHealpix::GHealpix().

#define G_DIR2XY2   "GHealpix::dir2xy(GSkyDir&)"

Definition at line 42 of file GHealpix.cpp.

#define G_INTERPOLATOR   "GHealpix::interpolator(double&, double&)"

Definition at line 48 of file GHealpix.cpp.

Referenced by GHealpix::interpolator().

#define G_NEIGHBOURS   "GHealpix::neighbours(GSkyPixel&)"

Definition at line 49 of file GHealpix.cpp.

Referenced by GHealpix::neighbours().

#define G_NEST2RING   "GHealpix::nest2ring(int&)"

Definition at line 43 of file GHealpix.cpp.

Referenced by GHealpix::nest2ring().

#define G_ORDERING_SET   "GHealpix::ordering(std::string&)"

Definition at line 47 of file GHealpix.cpp.

Referenced by GHealpix::ordering().

#define G_PIX2ANG_NEST   "GHealpix::pix2ang_nest(int, double*, double*)"

Definition at line 46 of file GHealpix.cpp.

Referenced by GHealpix::pix2ang_nest().

#define G_PIX2ANG_RING   "GHealpix::pix2ang_ring(int, double*, double*)"

Definition at line 45 of file GHealpix.cpp.

Referenced by GHealpix::pix2ang_ring().

#define G_READ   "GHealpix::read(GFitsHDU&)"

Definition at line 40 of file GHealpix.cpp.

Referenced by GHealpix::read().

#define G_RING2NEST   "GHealpix::ring2nest(int&)"

Definition at line 44 of file GHealpix.cpp.

Referenced by GHealpix::ring2nest().

#define G_XY2DIR   "GHealpix::xy2dir(GSkyPixel&)"

Definition at line 41 of file GHealpix.cpp.

Referenced by GHealpix::pix2dir().

Variable Documentation

short ctab[0x100]
static

Definition at line 87 of file GHealpix.cpp.

Referenced by GHealpix::compress_bits(), GHealpix::init_members(), and GHealpix::pix2xy().

const int jpll[12] = {1, 3, 5, 7, 0, 2, 4, 6, 1, 3, 5, 7}
const int jrll[12] = {2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4}
const int nb_facearray[][12]
Initial value:
= {{ 8, 9,10,11,-1,-1,-1,-1,10,11, 8, 9 },
{ 5, 6, 7, 4, 8, 9,10,11, 9,10,11, 8 },
{ -1,-1,-1,-1, 5, 6, 7, 4,-1,-1,-1,-1 },
{ 4, 5, 6, 7,11, 8, 9,10,11, 8, 9,10 },
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11 },
{ 1, 2, 3, 0, 0, 1, 2, 3, 5, 6, 7, 4 },
{ -1,-1,-1,-1, 7, 4, 5, 6,-1,-1,-1,-1 },
{ 3, 0, 1, 2, 3, 0, 1, 2, 4, 5, 6, 7 },
{ 2, 3, 0, 1,-1,-1,-1,-1, 0, 1, 2, 3 }}

Definition at line 65 of file GHealpix.cpp.

Referenced by GHealpix::neighbours().

const int nb_swaparray[][3]
Initial value:
= {{ 0,0,3 },
{ 0,0,6 },
{ 0,0,0 },
{ 0,0,5 },
{ 0,0,0 },
{ 5,0,0 },
{ 0,0,0 },
{ 6,0,0 },
{ 3,0,0 }}

Definition at line 74 of file GHealpix.cpp.

Referenced by GHealpix::neighbours().

const int nb_xoffset[] = {-1,-1, 0, 1, 1, 1, 0,-1}

Definition at line 63 of file GHealpix.cpp.

Referenced by GHealpix::neighbours().

const int nb_yoffset[] = { 0, 1, 1, 1, 0,-1,-1,-1}

Definition at line 64 of file GHealpix.cpp.

Referenced by GHealpix::neighbours().

const int ns_max = 1 << order_max

Definition at line 84 of file GHealpix.cpp.

Referenced by GHealpix::ang2pix_z_phi_nest().

const int order_max = 13

Definition at line 83 of file GHealpix.cpp.

Referenced by GHealpix::ang2pix_z_phi_nest(), and GHealpix::nside2order().

short utab[0x100]
static

Definition at line 88 of file GHealpix.cpp.

Referenced by GHealpix::init_members(), GHealpix::spread_bits(), and GHealpix::xy2pix().