LSST Applications g02d81e74bb+86cf3d8bc9,g180d380827+7a4e862ed4,g2079a07aa2+86d27d4dc4,g2305ad1205+e1ca1c66fa,g29320951ab+012e1474a1,g295015adf3+341ea1ce94,g2bbee38e9b+0e5473021a,g337abbeb29+0e5473021a,g33d1c0ed96+0e5473021a,g3a166c0a6a+0e5473021a,g3ddfee87b4+c429d67c83,g48712c4677+f88676dd22,g487adcacf7+27e1e21933,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+b41db86c35,g5a732f18d5+53520f316c,g64a986408d+86cf3d8bc9,g858d7b2824+86cf3d8bc9,g8a8a8dda67+585e252eca,g99cad8db69+84912a7fdc,g9ddcbc5298+9a081db1e4,ga1e77700b3+15fc3df1f7,ga8c6da7877+a2b54eae19,gb0e22166c9+60f28cb32d,gba4ed39666+c2a2e4ac27,gbb8dafda3b+6681f309db,gc120e1dc64+f0fcc2f6d8,gc28159a63d+0e5473021a,gcf0d15dbbd+c429d67c83,gdaeeff99f8+f9a426f77a,ge6526c86ff+0433e6603d,ge79ae78c31+0e5473021a,gee10cc3b42+585e252eca,gff1a9f87cc+86cf3d8bc9,w.2024.17
LSST Data Management Base Package
|
Public Member Functions | |
__init__ (self, config) | |
setupPatches (self, minBBox, wcs) | |
getPatchBorder (self) | |
getPatchInfo (self, index, tractWcs) | |
getPatchInnerDimensions (self) | |
getSequentialPatchIndex (self, patchInfo) | |
getSequentialPatchIndexFromPair (self, index) | |
getPatchIndexPair (self, sequentialIndex) | |
getPackedConfig (self, config) | |
Public Attributes | |
config | |
Protected Attributes | |
_patchInnerDimensions | |
_numPatches | |
_tractBBox | |
_initialized | |
Base class for algorithms that define patches within the tract. Parameters ---------- config : `lsst.pexConfig.Config` Input for configuring the algorithm
Definition at line 42 of file tractBuilder.py.
lsst.skymap.tractBuilder.BaseTractBuilder.__init__ | ( | self, | |
config ) |
Reimplemented in lsst.skymap.tractBuilder.LegacyTractBuilder, and lsst.skymap.tractBuilder.CellTractBuilder.
Definition at line 50 of file tractBuilder.py.
lsst.skymap.tractBuilder.BaseTractBuilder.getPackedConfig | ( | self, | |
config ) |
Get a packed config suitable for using in a sha1. Parameters ---------- config : `lsst.skymap.BaseTractBuilderConfig` Returns ------- configPacked : `bytes`
Reimplemented in lsst.skymap.tractBuilder.LegacyTractBuilder, and lsst.skymap.tractBuilder.CellTractBuilder.
Definition at line 184 of file tractBuilder.py.
lsst.skymap.tractBuilder.BaseTractBuilder.getPatchBorder | ( | self | ) |
Definition at line 96 of file tractBuilder.py.
lsst.skymap.tractBuilder.BaseTractBuilder.getPatchIndexPair | ( | self, | |
sequentialIndex ) |
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.BaseTractBuilder.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 in lsst.skymap.tractBuilder.LegacyTractBuilder, and lsst.skymap.tractBuilder.CellTractBuilder.
Definition at line 100 of file tractBuilder.py.
lsst.skymap.tractBuilder.BaseTractBuilder.getPatchInnerDimensions | ( | self | ) |
Get dimensions of inner region of the patches (all are the same)
Definition at line 124 of file tractBuilder.py.
lsst.skymap.tractBuilder.BaseTractBuilder.getSequentialPatchIndex | ( | self, | |
patchInfo ) |
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.
lsst.skymap.tractBuilder.BaseTractBuilder.getSequentialPatchIndexFromPair | ( | self, | |
index ) |
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.
lsst.skymap.tractBuilder.BaseTractBuilder.setupPatches | ( | self, | |
minBBox, | |||
wcs ) |
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 92 of file tractBuilder.py.
|
protected |
Definition at line 89 of file tractBuilder.py.
|
protected |
Definition at line 80 of file tractBuilder.py.
|
protected |
Definition at line 91 of file tractBuilder.py.
lsst.skymap.tractBuilder.BaseTractBuilder.config |
Definition at line 51 of file tractBuilder.py.