nside2ntemplates

Function to provide the number of template pixels

$\displaystyle N_{\mathrm{template}}=\frac{1+N_{\mathrm{side}}(N_{\mathrm{side}}+6)}{4}$

corresponding to resolution parameter $N_{\mathrm{side}}$. Each template pixel has a different shape that can not be matched (by rotation or reflexion) to that of any of the other templates.

Location in HEALPix directory tree: src/f90/mod/pix_tools.F90 


FORMAT

var=nside2ntemplates( nside )


ARGUMENTS

name & dimensionality kind in/out description
       
nside I4B IN the $N_{\mathrm{side}}$ parameter.
var I8B OUT the number of template pixels $N_{\mathrm{template}}$.


EXAMPLE:

use healpix_modules
integer(I8B) :: ntpl
ntpl= nside2ntemplates(256)
Returns in ntpl the number of HEALPix template pixels (16768) for the resolution parameter 256.

RELATED ROUTINES

This section lists the routines related to nside2ntemplates

template_pixel_ring
template_pixel_nest
return the template pixel associated with any HEALPix pixel
same_shape_pixels_ring
same_shape_pixels_nest
return the ordered list of pixels having the same shape as a given pixel template

Version 3.82, 2022-07-28