Index2D

class lsst.skymap.detail.Index2D

Bases: tuple

Two dimensional index for patches and cells.

This class contains the x and y values of the location of a patch within a tract, or a cell within a patch.

Parameters:
x : int
y : int

Attributes Summary

x Alias for field number 0
y Alias for field number 1

Methods Summary

count($self, value, /) Return number of occurrences of value.
index($self, value[, start, stop]) Return first index of value.

Attributes Documentation

x

Alias for field number 0

y

Alias for field number 1

Methods Documentation

count($self, value, /)

Return number of occurrences of value.

index($self, value, start=0, stop=sys.maxsize, /)

Return first index of value.

Raises ValueError if the value is not present.