(nside, ipix)
return pixlib._ring2nest(nside, ipix)
Convert pixel number from RING ordering to NESTED ordering.

    Parameters
    ----------
    nside : int, scalar or array-like
      the healpix nside parameter
    ipix : int, scalar or array-like
      the pixel number in RING scheme

    Returns
    -------
    ipix : int, scalar or array-like
      the pixel number in NESTED scheme

    See Also
    --------
    nest2ring, reorder

    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]
Convert pixel number from RING ordering to NESTED ordering.
Convert pixel number from RING ordering to NESTED ordering .
def ring2nest(nside, ipix):
    """Convert pixel number from RING ordering to NESTED ordering.

    Parameters
    ----------
    nside : int, scalar or array-like
      the healpix nside parameter
    ipix : int, scalar or array-like
      the pixel number in RING scheme

    Returns
    -------
    ipix : int, scalar or array-like
      the pixel number in NESTED scheme

    See Also
    --------
    nest2ring, reorder

    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]
    """
    check_nside(nside, nest=True)
    return pixlib._ring2nest(nside, ipix)
def ring2nest ( nside , ipix ) : check_nside ( nside , nest = True ) return pixlib . _ring2nest ( nside , ipix )