lsst.skymap gb9c20d2722+4386e1d82d
Loading...
Searching...
No Matches
lsst.skymap.tractBuilder.CellTractBuilder Class Reference
Inheritance diagram for lsst.skymap.tractBuilder.CellTractBuilder:
lsst.skymap.tractBuilder.BaseTractBuilder

Public Member Functions

 __init__ (self, config)
 getPatchInfo (self, index, tractWcs)
 getPackedConfig (self, config)
Public Member Functions inherited from lsst.skymap.tractBuilder.BaseTractBuilder
 __init__ (self, config)
 setupPatches (self, minBBox, wcs)
 getPatchBorder (self)
 getPatchInnerDimensions (self)
 getSequentialPatchIndex (self, patchInfo)
 getSequentialPatchIndexFromPair (self, index)
 getPatchIndexPair (self, sequentialIndex)

Static Public Attributes

 ConfigClass = CellTractBuilderConfig

Protected Attributes

 _cellInnerDimensions
 _cellBorder = config.cellBorder
 _numCellsPerPatchInner = config.numCellsPerPatchInner
 _numCellsInPatchBorder = config.numCellsInPatchBorder
 _patchBorder = config.numCellsInPatchBorder*config.cellInnerDimensions[0] + self._cellBorder
Protected Attributes inherited from lsst.skymap.tractBuilder.BaseTractBuilder
 _patchInnerDimensions
 _numPatches = numPatches
 _tractBBox = geom.Box2I(geom.Point2I(0, 0), bbox.getDimensions())
bool _initialized = True

Additional Inherited Members

Public Attributes inherited from lsst.skymap.tractBuilder.BaseTractBuilder
 config = config

Member Function Documentation

◆ getPackedConfig()

lsst.skymap.tractBuilder.CellTractBuilder.getPackedConfig ( self,
config )
Get a packed config suitable for using in a sha1.

Parameters
----------
config : `lsst.skymap.BaseTractBuilderConfig`

Returns
-------
configPacked : `bytes`

Reimplemented from lsst.skymap.tractBuilder.BaseTractBuilder.

◆ getPatchInfo()

lsst.skymap.tractBuilder.CellTractBuilder.getPatchInfo ( self,
index,
tractWcs )
Return information for the specified patch.

Parameters
----------
index : `lsst.skymap.Index2D` or `~collections.abc.Iterable` of 2 `int`
    Index of patch, as Index2D or pair of ints;
    or a sequential index as returned by getSequentialPatchIndex;
    negative values are not supported.
tractWcs : `lsst.afw.geom.SkyWcs`
    WCS associated with the tract.

Returns
-------
result : `lsst.skymap.PatchInfo`
    The patch info for that index.

Raises
------
IndexError
    Raised if index is out of range.

Reimplemented from lsst.skymap.tractBuilder.BaseTractBuilder.

Member Data Documentation

◆ _cellInnerDimensions

lsst.skymap.tractBuilder.CellTractBuilder._cellInnerDimensions
protected
Initial value:
= geom.Extent2I(*(val
for val in config.cellInnerDimensions))

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