CellIJ#

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

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.

Parameters:

Methods Summary

as_tuple()

Convert to an (i, j) tuple.

from_legacy(legacy_index)

Convert from a legacy lsst.skymap.Index2D instance.

to_legacy()

Convert to a legacy lsst.skymap.Index2D instance.

Methods Documentation

as_tuple()#

Convert to an (i, j) tuple.

Return type:

tuple[int, int]

static from_legacy(legacy_index)#

Convert from a legacy lsst.skymap.Index2D instance.

Parameters:

legacy_index (TypeAliasType) – Legacy lsst.skymap.Index2D to convert.

Return type:

CellIJ

Notes

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

to_legacy()#

Convert to a legacy lsst.skymap.Index2D instance.

Return type:

TypeAliasType

Notes

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

This page was last modified on .