lsdb.dask.divisions

lsdb.dask.divisions#

Functions#

get_pixels_divisions(→ tuple[int, Ellipsis] | None)

Calculates the Dask Dataframe divisions for a list of HEALPix pixels.

Module Contents#

get_pixels_divisions(healpix_pixels: list[hats.pixel_math.HealpixPixel]) tuple[int, Ellipsis] | None[source]#

Calculates the Dask Dataframe divisions for a list of HEALPix pixels.

Divisions include the minimum value of every HEALPix pixel spatial_index and the maximum value of the last HEALPix pixel spatial_index. In practice they represent the bounds of spatial_index values for the target pixels.

Parameters:

healpix_pixels (List[HealpixPixel]) – The list of HEALPix pixels to calculate the spatial_index bounds for.

Returns:

The Dask Dataframe divisions, as a tuple of integer.