def __getitem__(self, sliced):
        """This implements the global-to-local lookup.  For all-sky maps it
        just returns the input array.  For partial-sky maps in returns
        the local indices corresponding to the indices in the input
        array, and -1 for those pixels that are outside the selected
        region.

        Parameters
        ----------
        sliced: `~numpy.ndarray`
            An array of HEALPix pixel indices

        """
        if self._rmap is not None:
            retval = np.empty((sliced.size), 'i')
            retval.fill(-1)
            m = np.in1d(sliced.flat, self._ipix)
            retval[m] = np.searchsorted(self._ipix, sliced.flat[m])
            return retval.reshape(sliced.shape)
        return sliced
def __getitem__ ( self , sliced ) : if self . _rmap is not None : retval = np . empty ( ( sliced . size ) , 'i' ) retval . fill ( - 1 ) m = np . in1d ( sliced . flat , self . _ipix ) retval [ m ] = np . searchsorted ( self . _ipix , sliced . flat [ m ] ) return retval . reshape ( sliced . shape ) return sliced
This implements the global-to-local lookup.  For all-sky maps it
        just returns the input array.  For partial-sky maps in returns
        the local indices corresponding to the indices in the input
        array, and -1 for those pixels that are outside the selected
        region.

        Parameters
        ----------
        sliced: `~numpy.ndarray`
            An array of HEALPix pixel indices