neighbours_nest calls pix2xy_nest to find location of central pixel within the pixelation base-face, and then xy2pix_nest to find neighbouring pixels within the same face, or one of the bit manipulation routines if the neighbouring pixel is on a different base-face.
neighbours_nest , 4, 1, list, nneigh | |
print,nneigh,list |
will return:8 90 0 2 3 6 4 94 91, listing the NESTED-indexed 8 neighbors of pixel #1 for Nside=4
Version 3.83, 2024-11-13