LSST Applications g0f08755f38+9c285cab97,g1635faa6d4+13f3999e92,g1653933729+a8ce1bb630,g1a0ca8cf93+bf6eb00ceb,g28da252d5a+0829b12dee,g29321ee8c0+5700dc9eac,g2bbee38e9b+9634bc57db,g2bc492864f+9634bc57db,g2cdde0e794+c2c89b37c4,g3156d2b45e+41e33cbcdc,g347aa1857d+9634bc57db,g35bb328faa+a8ce1bb630,g3a166c0a6a+9634bc57db,g3e281a1b8c+9f2c4e2fc3,g414038480c+077ccc18e7,g41af890bb2+fde0dd39b6,g5fbc88fb19+17cd334064,g781aacb6e4+a8ce1bb630,g80478fca09+55a9465950,g82479be7b0+d730eedb7d,g858d7b2824+9c285cab97,g9125e01d80+a8ce1bb630,g9726552aa6+10f999ec6a,ga5288a1d22+2a84bb7594,gacf8899fa4+c69c5206e8,gae0086650b+a8ce1bb630,gb58c049af0+d64f4d3760,gc28159a63d+9634bc57db,gcf0d15dbbd+4b7d09cae4,gda3e153d99+9c285cab97,gda6a2b7d83+4b7d09cae4,gdaeeff99f8+1711a396fd,ge2409df99d+5e831397f4,ge79ae78c31+9634bc57db,gf0baf85859+147a0692ba,gf3967379c6+41c94011de,gf3fb38a9a8+8f07a9901b,gfb92a5be7c+9c285cab97,w.2024.46
LSST Data Management Base Package
|
Public Member Functions | |
__init__ (self, id, tractBuilder, ctrCoord, vertexCoordList, tractOverlap, wcs, innerBoxCorners=None) | |
getSequentialPatchIndex (self, patchInfo) | |
getSequentialPatchIndexFromPair (self, index) | |
getPatchIndexPair (self, sequentialIndex) | |
findPatch (self, coord) | |
findPatchList (self, coordList) | |
getBBox (self) | |
getCtrCoord (self) | |
getId (self) | |
getNumPatches (self) | |
getPatchBorder (self) | |
getPatchInfo (self, index) | |
getPatchInnerDimensions (self) | |
getTractOverlap (self) | |
getVertexList (self) | |
getInnerSkyPolygon (self) | |
getInnerSkyRegion (self) | |
getOuterSkyPolygon (self) | |
getWcs (self) | |
__str__ (self) | |
__repr__ (self) | |
__iter__ (self) | |
__len__ (self) | |
__getitem__ (self, index) | |
contains (self, coord) | |
Protected Member Functions | |
_minimumBoundingBox (self, wcs) | |
_finalOrientation (self, bbox, wcs) | |
Protected Attributes | |
_id | |
_ctrCoord | |
_vertexCoordList | |
_tractOverlap | |
_tractBuilder | |
_innerBoxCorners | |
_numPatches | |
_bbox | |
_wcs | |
Properties | |
bbox = property(getBBox) | |
ctr_coord = property(getCtrCoord) | |
tract_id = property(getId) | |
num_patches = property(getNumPatches) | |
patch_border = property(getPatchBorder) | |
patch_inner_dimensions = property(getPatchInnerDimensions) | |
tract_overlap = property(getTractOverlap) | |
vertex_list = property(getVertexList) | |
inner_sky_polygon = property(getInnerSkyPolygon) | |
inner_sky_region = property(getInnerSkyRegion) | |
outer_sky_polygon = property(getOuterSkyPolygon) | |
wcs = property(getWcs) | |
Information about a tract in a SkyMap sky pixelization Parameters ---------- id : `int` tract ID tractBuilder : Subclass of `lsst.skymap.BaseTractBuilder` Object used to compute patch geometry. ctrCoord : `lsst.geom.SpherePoint` ICRS sky coordinate of center of inner region of tract; also used as the CRVAL for the WCS. vertexCoordList : `list` of `lsst.geom.SpherePoint` Vertices that define the boundaries of the inner region. tractOverlap : `lsst.geom.Angle` Minimum overlap between adjacent sky tracts; this defines the minimum distance the tract extends beyond the inner region in all directions. wcs : `lsst.afw.image.SkyWcs` WCS for tract. The reference pixel will be shifted as required so that the lower left-hand pixel (index 0,0) has pixel position 0.0, 0.0. innerBoxCorners : `list` [`lsst.sphgeom.LonLat`], optional If set then the ``inner_sky_region`` will be a `lsst.sphgeom.Box` with these corners as opposed to a `lsst.sphgeom.ConvexPolygon` built from the ``vertex_list``. Notes ----- The tract is subdivided into rectangular patches. Each patch has the following properties: - An inner region defined by an inner bounding box. The inner regions of the patches exactly tile the tract, and all inner regions have the same dimensions. The tract is made larger as required to make this work. - An outer region defined by an outer bounding box. The outer region extends beyond the inner region by patchBorder pixels in all directions, except there is no border at the edges of the tract. Thus patches overlap each other but never extend off the tract. If you do not want any overlap between adjacent patches then set patchBorder to 0. - An index that consists of a pair of integers: * 0 <= x index < numPatches[0] * 0 <= y index < numPatches[1] Patch 0,0 is at the minimum corner of the tract bounding box. - It is not enforced that ctrCoord is the center of vertexCoordList, but SkyMap relies on it.
Definition at line 35 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.__init__ | ( | self, | |
id, | |||
tractBuilder, | |||
ctrCoord, | |||
vertexCoordList, | |||
tractOverlap, | |||
wcs, | |||
innerBoxCorners = None ) |
Reimplemented in lsst.skymap.tractInfo.ExplicitTractInfo, and lsst.skymap.healpixSkyMap.HealpixTractInfo.
Definition at line 87 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.__getitem__ | ( | self, | |
index ) |
Definition at line 415 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.__iter__ | ( | self | ) |
Definition at line 405 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.__len__ | ( | self | ) |
Definition at line 411 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.__repr__ | ( | self | ) |
Definition at line 402 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.__str__ | ( | self | ) |
Definition at line 399 of file tractInfo.py.
|
protected |
Determine the final orientation We offset everything so the lower-left corner is at 0,0 and compute the final Wcs. Parameters ---------- bbox : `lsst.geom.Box2I` Current bounding box. wcs : `lsst.afw.geom.SkyWcs Current Wcs. Returns ------- finalBBox : `lsst.geom.Box2I` Revised bounding box. wcs : `lsst.afw.geom.SkyWcs` Revised Wcs.
Definition at line 123 of file tractInfo.py.
|
protected |
Calculate the minimum bounding box for the tract, given the WCS. The bounding box is created in the frame of the supplied WCS, so that it's OK if the coordinates are negative. We compute the bounding box that holds all the vertices and the desired overlap.
Reimplemented in lsst.skymap.tractInfo.ExplicitTractInfo.
Definition at line 99 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.contains | ( | self, | |
coord ) |
Does this tract contain the coordinate?
Definition at line 418 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.findPatch | ( | self, | |
coord ) |
Find the patch containing the specified coord. Parameters ---------- coord : `lsst.geom.SpherePoint` ICRS sky coordinate to search for. Returns ------- result : `lsst.skymap.PatchInfo` PatchInfo of patch whose inner bbox contains the specified coord Raises ------ LookupError Raised if coord is not in tract or we cannot determine the pixel coordinate (which likely means the coord is off the tract).
Definition at line 192 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.findPatchList | ( | self, | |
coordList ) |
Find patches containing the specified list of coords. Parameters ---------- coordList : `list` of `lsst.geom.SpherePoint` ICRS sky coordinates to search for. Returns ------- result : `list` of `lsst.skymap.PatchInfo` List of PatchInfo for patches that contain, or may contain, the specified region. The list will be empty if there is no overlap. Notes ----- **Warning:** - This may give incorrect answers on regions that are larger than a tract. - This uses a naive algorithm that may find some patches that do not overlap the region (especially if the region is not a rectangle aligned along patch x,y).
Definition at line 224 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.getBBox | ( | self | ) |
Get bounding box of tract (as an geom.Box2I)
Definition at line 270 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.getCtrCoord | ( | self | ) |
Get ICRS sky coordinate of center of tract (as an lsst.geom.SpherePoint)
Definition at line 277 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.getId | ( | self | ) |
Get ID of tract
Definition at line 285 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.getInnerSkyPolygon | ( | self | ) |
Get inner on-sky region as a sphgeom.ConvexPolygon.
Definition at line 361 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.getInnerSkyRegion | ( | self | ) |
Get inner on-sky region.
Definition at line 369 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.getNumPatches | ( | self | ) |
Get the number of patches in x, y. Returns ------- result : `lsst.skymap.Index2D` The number of patches in x, y
Definition at line 292 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.getOuterSkyPolygon | ( | self | ) |
Get outer on-sky region as a sphgeom.ConvexPolygon
Definition at line 380 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.getPatchBorder | ( | self | ) |
Definition at line 304 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.getPatchIndexPair | ( | self, | |
sequentialIndex ) |
Convert sequential index into patch index (x,y) pair. Parameters ---------- sequentialIndex : `int` Returns ------- x, y : `lsst.skymap.Index2D`
Definition at line 179 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.getPatchInfo | ( | self, | |
index ) |
Return information for the specified patch. Parameters ---------- index : `typing.NamedTuple` ['x': `int`, 'y': `int`] Index of patch, as a pair of ints; or a sequential index as returned by getSequentialPatchIndex; negative values are not supported. Returns ------- result : `lsst.skymap.PatchInfo` The patch info for that index. Raises ------ IndexError Raised if index is out of range.
Definition at line 309 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.getPatchInnerDimensions | ( | self | ) |
Get dimensions of inner region of the patches (all are the same)
Definition at line 331 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.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 151 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.getSequentialPatchIndexFromPair | ( | self, | |
index ) |
Return a single integer that uniquely identifies the patch index within the tract. Parameters ---------- index : `lsst.skymap.Index2D` Returns ------- sequentialIndex : `int`
Definition at line 165 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.getTractOverlap | ( | self | ) |
Get minimum overlap of adjacent sky tracts.
Definition at line 338 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.getVertexList | ( | self | ) |
Get list of ICRS sky coordinates of vertices that define the boundary of the inner region. Notes ----- **warning:** this is not a deep copy.
Definition at line 345 of file tractInfo.py.
lsst.skymap.tractInfo.TractInfo.getWcs | ( | self | ) |
Get WCS of tract. Returns ------- wcs : `lsst.afw.geom.SkyWcs` The WCS of this tract
Definition at line 387 of file tractInfo.py.
|
protected |
Definition at line 97 of file tractInfo.py.
|
protected |
Definition at line 89 of file tractInfo.py.
|
protected |
Definition at line 88 of file tractInfo.py.
|
protected |
Definition at line 93 of file tractInfo.py.
|
protected |
Definition at line 96 of file tractInfo.py.
|
protected |
Definition at line 92 of file tractInfo.py.
|
protected |
Definition at line 91 of file tractInfo.py.
|
protected |
Definition at line 90 of file tractInfo.py.
|
protected |
Definition at line 97 of file tractInfo.py.
|
static |
Definition at line 275 of file tractInfo.py.
|
static |
Definition at line 283 of file tractInfo.py.
|
static |
Definition at line 367 of file tractInfo.py.
|
static |
Definition at line 378 of file tractInfo.py.
|
static |
Definition at line 302 of file tractInfo.py.
|
static |
Definition at line 385 of file tractInfo.py.
|
static |
Definition at line 307 of file tractInfo.py.
|
static |
Definition at line 336 of file tractInfo.py.
|
static |
Definition at line 290 of file tractInfo.py.
|
static |
Definition at line 343 of file tractInfo.py.
|
static |
Definition at line 355 of file tractInfo.py.
|
static |
Definition at line 397 of file tractInfo.py.