Return the 8 nearest pixels.
Parameters : | nside : int
theta, phi : scalar or array-like
nest : bool
|
---|---|
Returns : | ipix : int, array
|
See also
Examples
>>> import healpy as hp
>>> hp.get_all_neighbours(1, 4)
array([11, 7, 3, -1, 0, 5, 8, -1])
>>> hp.get_all_neighbours(1, np.pi/2, np.pi/2)
array([ 8, 4, 0, -1, 1, 6, 9, -1])