Index2D

class lsst.skymap.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(value, /) Return number of occurrences of value.
index(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(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.