H3C HEALPix library for PostgreSQL  (version 1.2)
h3cpp_healpix.cc File Reference

interface the Healpix C++ library More...

#include "healpix_base.h"
#include "common.h"
#include "h3c_util.h"
#include "h3cpp_healpix.h"
+ Include dependency graph for h3cpp_healpix.cc:

Go to the source code of this file.

Functions

h3c_ipix_t * h3cpp_disk_ipix (h3c_coord_t ra, h3c_coord_t dec, double radius, int nside, int *nresult, int inclusive)
 retrieve the ipix list for a cone More...
 
int h3cpp_number_ipix (int nside)
 get the number of ipix for a given nside More...
 
h3c_coord_t h3cpp_radius (int nside)
 get the max radius of the circles arround the ipix for a given nside More...
 
h3c_ipix_t * h3cpp_get_neighbors (h3c_ipix_t ipix, int nside)
 get ipix neighbors More...
 
void h3cpp_ring2nest (long nside, h3c_ipix_t ipring, h3c_ipix_t *ipnest)
 transform ipix (RING) to ipix (NEST) More...
 

Detailed Description

interface the Healpix C++ library

Author
G.Landais (CDS)
Date
26/07/2011

Definition in file h3cpp_healpix.cc.

Function Documentation

◆ h3cpp_disk_ipix()

h3c_ipix_t* h3cpp_disk_ipix ( h3c_coord_t  ra,
h3c_coord_t  dec,
double  radius,
int  nside,
int *  nresult,
int  inclusive 
)

retrieve the ipix list for a cone

Parameters
raright ascension
decdeclination
radiusradius
nsidenside level
nresultnumber of elements in result
Returns
ipix list NULL if no ipix found if too much ipix (*nresult > 0)

Definition at line 49 of file h3cpp_healpix.cc.

References h3c_dec2theta().

+ Here is the call graph for this function:

◆ h3cpp_get_neighbors()

h3c_ipix_t* h3cpp_get_neighbors ( h3c_ipix_t  ipix,
int  nside 
)

get ipix neighbors

Parameters
ipixthe ipix
nsidethe nside level
Returns
Array containing the ipix (static)

Definition at line 148 of file h3cpp_healpix.cc.

References h3c_order().

+ Here is the call graph for this function:

◆ h3cpp_number_ipix()

int h3cpp_number_ipix ( int  nside)

get the number of ipix for a given nside

Parameters
nsidethe nside level
Returns
number of ipix

Definition at line 112 of file h3cpp_healpix.cc.

References h3c_order().

+ Here is the call graph for this function:

◆ h3cpp_radius()

h3c_coord_t h3cpp_radius ( int  nside)

get the max radius of the circles arround the ipix for a given nside

Parameters
nsidethe nside level
Returns
the radius

Definition at line 130 of file h3cpp_healpix.cc.

References h3c_order().

+ Here is the call graph for this function:

◆ h3cpp_ring2nest()

void h3cpp_ring2nest ( long  nside,
h3c_ipix_t  ipring,
h3c_ipix_t *  ipnest 
)

transform ipix (RING) to ipix (NEST)

Parameters
ipringthe ipix (in RING)
ipnestthe ipix (in NEST) (OUT)

Definition at line 220 of file h3cpp_healpix.cc.

References h3c_order().

+ Here is the call graph for this function: