def pix2vec(nside, ipix, nest=False):
    """Drop-in replacement for healpy `~healpy.pixelfunc.pix2vec`."""
    lon, lat = healpix_to_lonlat(ipix, nside, order='nested' if nest else 'ring')
    return ang2vec(*_lonlat_to_healpy(lon, lat))
def pix2vec ( nside , ipix , nest = False ) : lon , lat = healpix_to_lonlat ( ipix , nside , order = 'nested' if nest else 'ring' ) return ang2vec ( * _lonlat_to_healpy ( lon , lat ) )
Drop-in replacement for healpy `~healpy.pixelfunc.pix2vec`.