nside2ntemplates


Function to provide the number of template pixels

\begin{displaymath}{N_{\rm templates}}=\frac{1+{N_{\rm side}}({N_{\rm side}}+6)}{4}\end{displaymath}

corresponding to resolution parameter ${N_{\rm 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_{\rm side}}$ parameter.
var I8B OUT the number of template pixels ${N_{\rm templates}}$.


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.31, 2017-01-06