SkyPixSystem

class lsst.daf.butler.SkyPixSystem(name: str, *, maxLevel: int, PixelizationClass: type[lsst.sphgeom.pixelization_abc.PixelizationABC])

Bases: TopologicalFamily

Class for hierarchical pixelization of the sky.

A TopologicalFamily that represents a hierarchical pixelization of the sky.

Parameters:
namestr

Name of the system.

maxLevelint

Maximum level (inclusive) of the hierarchy.

PixelizationClasstype (lsst.sphgeom.PixelizationABC subclass)

Class whose instances represent a particular level of this pixelization.

Methods Summary

choose(endpoints, universe)

Select the best member of this family to use.

Methods Documentation

choose(endpoints: Set[str], universe: DimensionUniverse) SkyPixDimension

Select the best member of this family to use.

These are to be used in a query join or data ID when more than one is present.

Usually this should correspond to the most fine-grained region.

Parameters:
endpointsSet [str]

Endpoints to choose from. May include endpoints that are not members of this family (which should be ignored).

universeDimensionUniverse

Object that manages all known dimensions.

Returns:
bestTopologicalRelationshipEndpoint

The best endpoint that is both a member of self and in endpoints.