npix2nside

Function to provide the resolution parameter Nside corresponding to the number of pixels Npix over the full sky.

Location in HEALPix directory tree: src/C/subs/chealpix.c 


FORMAT

long npix2nside(const long npix)


ARGUMENTS

name&dimensionality kind in/out description
       
npix long IN the number of pixels Npix of the map .
npix2nside long OUT returns the Nside parameter of the map such that Npix=12Nside2.


EXAMPLE:

nside= npix2nside(786432);
Returns the resolution parameter (256) corresponding to 786432 HEALPix pixels.


RELATED ROUTINES

This section lists the routines related to npix2nside

ang2vec
converts $(\theta,\phi) $ spherical coordinates into (x,y,z) cartesian coordinates.
vec2ang
converts (x,y,z) cartesian coordinates into $(\theta,\phi) $ spherical coordinates.
nside2npix
converts number of full sky pixels Npix into resolution parameter Nside

Version 3.82, 2022-07-28