Index2D

class lsst.skymap.Index2D(x: int, y: int)

Bases: NamedTuple

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:
xint
yint

Attributes Summary

x

Alias for field number 0

y

Alias for field number 1

Methods Summary

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes Documentation

x: int

Alias for field number 0

y: int

Alias for field number 1

Methods Documentation

count(value, /)

Return number of occurrences of value.

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

Return first index of value.

Raises ValueError if the value is not present.