CellIJ#

class lsst.images.cells.CellIJ(i: int, j: int)#

Bases: object

An index in a grid of cells.

Notes#

This is deliberately not a tuple or other Sequence in order to make it typing-incompatible with sequence-based pixel coordinate pairs (e.g. YX). This also allows it to have addition and subtraction operators.

Methods Summary

from_legacy(legacy_index)

Convert from a legacy lsst.skymap.Index2D instance.

to_legacy()

Convert to a legacy lsst.skymap.Index2D instance.

Methods Documentation

static from_legacy(legacy_index: Index2D) CellIJ#

Convert from a legacy lsst.skymap.Index2D instance.

Notes#

lsst.skymap.Index2D is ordered (x, y), i.e. (j, i).

to_legacy() Index2D#

Convert to a legacy lsst.skymap.Index2D instance.

Notes#

lsst.skymap.Index2D is ordered (x, y), i.e. (j, i).