lsst.skymap gb9c20d2722+4386e1d82d
Loading...
Searching...
No Matches
lsst.skymap.cellInfo.CellInfo Class Reference

Public Member Functions

 __init__ (self, index, innerBBox, outerBBox, sequentialIndex, tractWcs)
 getIndex (self)
 getSequentialIndex (self)
 getWcs (self)
 getInnerBBox (self)
 getOuterBBox (self)
 getInnerSkyPolygon (self, tractWcs=None)
 inner_sky_polygon (self)
 getOuterSkyPolygon (self, tractWcs=None)
 outer_sky_polygon (self)
 __eq__ (self, rhs)
 __ne__ (self, rhs)
 __str__ (self)
 __repr__ (self)

Protected Attributes

 _index = index
 _sequentialIndex = sequentialIndex
 _innerBBox = innerBBox
 _outerBBox = outerBBox
 _wcs = tractWcs

Properties

 index = property(getIndex)
 sequential_index = property(getSequentialIndex)
 wcs = property(getWcs)
 inner_bbox = property(getInnerBBox)
 outer_bbox = property(getOuterBBox)

Detailed Description

Information about a cell within a patch of a tract of a sky map.

See `PatchInfo` and `TractInfo` for more information.

Parameters
----------
index : `lsst.skymap.Index2D`
    x,y index of a cell (a pair of ints)
innerBBox : `lsst.geom.Box2I`
    Inner bounding box.
outerBBox : `lsst.geom.Box2I`
    Outer bounding box.
sequentialIndex : `int`
    Cell sequential index.
tractWcs : `lsst.afw.geom.SkyWcs`
    Tract WCS object.

Member Function Documentation

◆ getIndex()

lsst.skymap.cellInfo.CellInfo.getIndex ( self)
Return cell index: a tuple of (x, y)

Returns
-------
result : `lsst.skymap.Index2D`
    Patch index (x, y).

◆ getInnerBBox()

lsst.skymap.cellInfo.CellInfo.getInnerBBox ( self)
Get inner bounding box.

Returns
-------
bbox : `lsst.geom.Box2I`
    The inner bounding Box.

◆ getInnerSkyPolygon()

lsst.skymap.cellInfo.CellInfo.getInnerSkyPolygon ( self,
tractWcs = None )
Get the inner on-sky region.

Parameters
----------
tractWcs : `lsst.afw.image.SkyWcs`, optional
    WCS for the associated tract.

Returns
-------
result : `lsst.sphgeom.ConvexPolygon`
    The inner sky region.

◆ getOuterBBox()

lsst.skymap.cellInfo.CellInfo.getOuterBBox ( self)
Get outer bounding box.

Returns
-------
bbox : `lsst.geom.Box2I`
    The outer bounding Box.

◆ getOuterSkyPolygon()

lsst.skymap.cellInfo.CellInfo.getOuterSkyPolygon ( self,
tractWcs = None )
Get the outer on-sky region.

Parameters
----------
tractWcs : `lsst.afw.image.SkyWcs`, optional
    WCS for the associated tract.

Returns
-------
result : `lsst.sphgeom.ConvexPolygon`
    The outer sky region.

◆ getSequentialIndex()

lsst.skymap.cellInfo.CellInfo.getSequentialIndex ( self)
Return cell sequential index.

Returns
-------
result : `int`
    Sequential cell index.

◆ getWcs()

lsst.skymap.cellInfo.CellInfo.getWcs ( self)
Return the associated tract wcs

Returns
-------
wcs : `lsst.afw.geom.SkyWcs`
    Tract WCS.

The documentation for this class was generated from the following file:
  • python/lsst/skymap/cellInfo.py