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