Index2D¶
- class lsst.skymap.detail.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.
Attributes Summary
Alias for field number 0
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
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.