DART-Ray
Modules | Functions/Subroutines | Variables
healpix_routines.f90 File Reference

Modules

module  healpix_routines
 Contains slightly modified subroutines from the Healpix package.
 

Functions/Subroutines

subroutine healpix_routines::pix2ang_nest (nside, ipix, theta, phi)
 renders theta and phi coordinates of the nominal pixel center for the pixel number ipix (NESTED scheme) given the map resolution parameter nside More...
 
subroutine healpix_routines::mk_pix2xy ()
 constructs the array giving x and y in the face from pixel number for the nested (quad-cube like) ordering of pixels the bits corresponding to x and y are interleaved in the pixel number one breaks up the pixel number by even and odd bits More...
 
integer(kind=int64) function healpix_routines::nside2npix (nside)
 given nside, returns npix such that npix = 12*nside^2 nside should be a power of 2 smaller than ns_max if not, -1 is returned. More...
 
character(len=lch) function healpix_routines::string_i (arg, format)
 
subroutine healpix_routines::ang2pix_nest (nside, theta, phi, ipix)
 renders the pixel number ipix (NESTED scheme) for a pixel which contains a point on a sphere at coordinates theta and phi, given the map resolution parameter nside. More...
 
subroutine healpix_routines::mk_xy2pix1 ()
 
subroutine healpix_routines::neighbours_nest (nside, ipix, n, nneigh)
 Returns list n(8) of neighbours of pixel ipix (in NESTED scheme) the neighbours are ordered in the following way: First pixel is the one to the south (the one west of the south direction is taken for the pixels which don't have a southern neighbour). From then on the neighbours are ordered in the clockwise direction about the pixel with number ipix. More...
 
subroutine healpix_routines::xy2pix_nest (nside, ix_in, iy_in, face_num, ipix)
 
subroutine healpix_routines::pix2xy_nest (nside, ipf_in, ix, iy)
 gives the x, y coords in a face from pixel number within the face (NESTED) More...
 
integer(int32) function healpix_routines::swaplsbmsb (i)
 Returns i with even and odd bit positions interchanged. More...
 
integer(int32) function healpix_routines::invmsb (i)
 Returns i with even (0,2,4,...) bits inverted. More...
 
integer(int32) function healpix_routines::invlsb (i)
 Returns i with odd (1,3,5,...) bits inverted. More...
 

Variables

integer(kind=int32), dimension(0:1023), save, private healpix_routines::pix2x =0
 
integer(kind=int32), dimension(0:1023), save, private healpix_routines::pix2y =0
 
integer(kind=int32), dimension(0:127), save, private healpix_routines::x2pix1 =0
 
integer(kind=int32), dimension(0:127), save, private healpix_routines::y2pix1 =0
 
character(len=3000) healpix_routines::string
 
integer, parameter, private healpix_routines::lch =48
 
integer(kind=int32), parameter, private healpix_routines::ns_max4 =8192
 
integer(kind=int32), parameter, private healpix_routines::ns_max =ns_max4
 
integer(int32), parameter healpix_routines::oddbits =89478485
 
integer(int32), parameter healpix_routines::evenbits =178956970
 
real(kind=real64), parameter, private healpix_routines::halfpi =asin(1.)
 
real(kind=real64), parameter, private healpix_routines::pi =2*halfpi
 
real(kind=real64), parameter, private healpix_routines::twopi = 2*pi
 
real(kind=real64), parameter, private healpix_routines::twothird =2./3.