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
>>> 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]