healpy.pix2ring

Contents

healpy.pix2ring#

healpy.pix2ring(nside, pix, nest=False)#

Convert pixel identifier to ring number

Rings are specified by a positive integer, 1 <= ring <= 4*nside-1.

Parameters:
nsideint

The healpix nside parameter, must be a power of 2, less than 2**30

pixint64, scalar or array-like

The pixel identifier(s)

nestbool

Is pix specified in the NEST ordering scheme?

Returns:
ringint, length equal to that of pix

Ring number