healpy.pixelfunc.nest2ring

healpy.pixelfunc.nest2ring(nside, ipix)

Convert pixel number from NESTED ordering to RING ordering.

Parameters:
nsideint, scalar or array-like

the healpix nside parameter

ipixint, scalar or array-like

the pixel number in NESTED scheme

Returns:
ipixint, scalar or array-like

the pixel number in RING scheme

See also

ring2nest, reorder

Examples

>>> import healpy as hp
>>> hp.nest2ring(16, 1130)
1504
>>> print(hp.nest2ring(2, np.arange(10)))
[13  5  4  0 15  7  6  1 17  9]
>>> print(hp.nest2ring([1, 2, 4, 8], 11))
[ 11   2  12 211]