hats.pixel_math.healpix_pixel_convertor

hats.pixel_math.healpix_pixel_convertor#

Functions#

get_healpix_pixel(...)

Function to convert argument of either HealpixPixel or a tuple of (order, pixel) to a

get_healpix_tuple(→ tuple[int, int])

Function to convert argument of either HealpixPixel or a tuple of (order, pixel) to a

Module Contents#

get_healpix_pixel(pixel: hats.pixel_math.healpix_pixel.HealpixPixel | tuple[int, int]) hats.pixel_math.healpix_pixel.HealpixPixel[source]#

Function to convert argument of either HealpixPixel or a tuple of (order, pixel) to a HealpixPixel

Parameters:

pixel – an object to be converted to a HealpixPixel object

get_healpix_tuple(pixel: hats.pixel_math.healpix_pixel.HealpixPixel | tuple[int, int]) tuple[int, int][source]#

Function to convert argument of either HealpixPixel or a tuple of (order, pixel) to a tuple of (order, pixel)

Parameters:

pixel – an object to be converted to a HealpixPixel object