healpix_convolution.neighbours#
- healpix_convolution.neighbours(cell_ids, *, grid_info, ring=1)#
determine the neighbours within the nth ring around the center pixel
- Parameters:
cell_ids (array-like) – The cell ids of which to find the neighbours.
grid_info (
xdggs.HealpixInfo) – The grid parameters.ring (
int, default:1) – The number of the ring. ring=0 returns just the cell id, ring=1 returns the 8 (or 7) immediate neighbours, ring=2 returns the 8 (or 7) immediate neighbours plus their immediate neighbours (a total of 24 cells), and so on.