|
lsst.skymap g6512b7a353+6ecdf13bca
|
Public Member Functions | |
| __init__ (self, config) | |
| getPatchInfo (self, index, tractWcs) | |
| getPackedConfig (self, config) | |
| setupPatches (self, minBBox, wcs) | |
| getPatchBorder (self) | |
| getPatchInnerDimensions (self) | |
| getSequentialPatchIndex (self, patchInfo) | |
| getSequentialPatchIndexFromPair (self, index) | |
| getPatchIndexPair (self, sequentialIndex) | |
Public Attributes | |
| config = config | |
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 | |
| _patchInnerDimensions | |
| _numPatches = numPatches | |
| _tractBBox = geom.Box2I(geom.Point2I(0, 0), bbox.getDimensions()) | |
| bool | _initialized = True |
Definition at line 302 of file tractBuilder.py.
| lsst.skymap.tractBuilder.CellTractBuilder.__init__ | ( | self, | |
| config ) |
Definition at line 305 of file tractBuilder.py.
| 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.
Definition at line 356 of file tractBuilder.py.
|
inherited |
Definition at line 96 of file tractBuilder.py.
|
inherited |
Convert sequential index into patch index (x,y) pair. Parameters ---------- sequentialIndex : `int` Returns ------- x, y : `lsst.skymap.Index2D`
Definition at line 167 of file tractBuilder.py.
| 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.
Definition at line 320 of file tractBuilder.py.
|
inherited |
Get dimensions of inner region of the patches (all are the same)
Definition at line 124 of file tractBuilder.py.
|
inherited |
Return a single integer that uniquely identifies the given patch within this tract. Parameters ---------- patchInfo : `lsst.skymap.PatchInfo` Returns ------- sequentialIndex : `int`
Definition at line 129 of file tractBuilder.py.
|
inherited |
Return a single integer that uniquely identifies the patch index within the tract. Parameters ---------- index : `lsst.skymap.Index2D` or `~collections.abc.Iterable` of 2 `int` Returns ------- sequentialIndex : `int`
Definition at line 144 of file tractBuilder.py.
|
inherited |
Set up the patches of a particular size in a tract.
We grow the tract bounding box to hold an exact multiple of
the desired size (patchInnerDimensions or
numCellsPerPatchInner*cellInnerDimensions), while keeping
the center roughly the same. We return the final tract
bounding box, and the number of patches in each dimension
(as an Index2D).
Parameters
----------
minBBox : `lsst.geom.Box2I`
Minimum bounding box for tract.
wcs : `lsst.afw.geom.SkyWcs`
Wcs object.
Returns
-------
bbox : `lsst.geom.Box2I`
final bounding box, number of patches.
numPatches : `lsst.skymap.Index2D`
Definition at line 53 of file tractBuilder.py.
|
protected |
Definition at line 310 of file tractBuilder.py.
|
protected |
Definition at line 308 of file tractBuilder.py.
|
protectedinherited |
Definition at line 92 of file tractBuilder.py.
|
protected |
Definition at line 312 of file tractBuilder.py.
|
protected |
Definition at line 311 of file tractBuilder.py.
|
protectedinherited |
Definition at line 89 of file tractBuilder.py.
|
protected |
Definition at line 317 of file tractBuilder.py.
|
protectedinherited |
Definition at line 80 of file tractBuilder.py.
|
protectedinherited |
Definition at line 91 of file tractBuilder.py.
|
inherited |
Definition at line 51 of file tractBuilder.py.
|
static |
Definition at line 303 of file tractBuilder.py.