hats.pixel_math.pixel_margins

hats.pixel_math.pixel_margins#

Utilities for find the pixels of higher orders that surround a given healpixel.

Functions#

get_margin(order, pixel, delta_order)

Get all the pixels at order order+delta_order bordering pixel pixel.

Module Contents#

get_margin(order, pixel, delta_order)[source]#

Get all the pixels at order order+delta_order bordering pixel pixel.

Parameters:
  • order (int) – the healpix order of pixel.

  • pix (int) – the healpix pixel to find margin pixels of.

  • delta_order (int) – the change in order that we wish to find the margins for.

Returns:

one-dimensional numpy array of integers, filled with the healpix pixels at order order+delta_order that border pixel.