healpy.pixelfunc.ring2nest¶
- healpy.pixelfunc.ring2nest(nside, ipix)¶
Convert pixel number from RING ordering to NESTED ordering.
- Parameters:
- nsideint, scalar or array-like
the healpix nside parameter
- ipixint, scalar or array-like
the pixel number in RING scheme
- Returns:
- ipixint, scalar or array-like
the pixel number in NESTED scheme
Examples
>>> import healpy as hp >>> hp.ring2nest(16, 1504) 1130
>>> print(hp.ring2nest(2, np.arange(10))) [ 3 7 11 15 2 1 6 5 10 9]
>>> print(hp.ring2nest([1, 2, 4, 8], 11)) [ 11 13 61 253]