LSST Applications
21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
|
Public Member Functions | |
def | __init__ (self, id, tractBuilder, ctrCoord, vertexCoordList, tractOverlap, wcs) |
def | getSequentialPatchIndex (self, patchInfo) |
def | getSequentialPatchIndexFromPair (self, index) |
def | getPatchIndexPair (self, sequentialIndex) |
def | findPatch (self, coord) |
def | findPatchList (self, coordList) |
def | getBBox (self) |
def | getCtrCoord (self) |
def | getId (self) |
def | getNumPatches (self) |
def | getPatchBorder (self) |
def | getPatchInfo (self, index) |
def | getPatchInnerDimensions (self) |
def | getTractOverlap (self) |
def | getVertexList (self) |
def | getInnerSkyPolygon (self) |
def | getOuterSkyPolygon (self) |
def | getWcs (self) |
def | __str__ (self) |
def | __repr__ (self) |
def | __iter__ (self) |
def | __len__ (self) |
def | __getitem__ (self, index) |
def | contains (self, coord) |
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) | |
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. 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 34 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.__init__ | ( | self, | |
id, | |||
tractBuilder, | |||
ctrCoord, | |||
vertexCoordList, | |||
tractOverlap, | |||
wcs | |||
) |
Reimplemented in lsst.skymap.tractInfo.ExplicitTractInfo.
Definition at line 82 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.__getitem__ | ( | self, | |
index | |||
) |
Definition at line 393 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.__iter__ | ( | self | ) |
Definition at line 383 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.__len__ | ( | self | ) |
Definition at line 389 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.__repr__ | ( | self | ) |
Definition at line 380 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.__str__ | ( | self | ) |
Definition at line 377 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.contains | ( | self, | |
coord | |||
) |
Does this tract contain the coordinate?
Definition at line 396 of file tractInfo.py.
def 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 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 186 of file tractInfo.py.
def 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 218 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.getBBox | ( | self | ) |
def lsst.skymap.tractInfo.TractInfo.getCtrCoord | ( | self | ) |
Get ICRS sky coordinate of center of tract (as an lsst.geom.SpherePoint)
Definition at line 270 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.getId | ( | self | ) |
Get ID of tract
Definition at line 278 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.getInnerSkyPolygon | ( | self | ) |
Get inner on-sky region as a sphgeom.ConvexPolygon.
Definition at line 350 of file tractInfo.py.
def 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 285 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.getOuterSkyPolygon | ( | self | ) |
Get outer on-sky region as a sphgeom.ConvexPolygon
Definition at line 358 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.getPatchBorder | ( | self | ) |
Definition at line 297 of file tractInfo.py.
def 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 173 of file tractInfo.py.
def 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 If index is out of range.
Definition at line 302 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.getPatchInnerDimensions | ( | self | ) |
Get dimensions of inner region of the patches (all are the same)
Definition at line 324 of file tractInfo.py.
def 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 145 of file tractInfo.py.
def 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 159 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.getTractOverlap | ( | self | ) |
Get minimum overlap of adjacent sky tracts.
Definition at line 331 of file tractInfo.py.
def 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 338 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.getWcs | ( | self | ) |
Get WCS of tract. Returns ------- wcs : `lsst.afw.geom.SkyWcs` The WCS of this tract
Definition at line 365 of file tractInfo.py.
|
static |
Definition at line 268 of file tractInfo.py.
|
static |
Definition at line 276 of file tractInfo.py.
|
static |
Definition at line 356 of file tractInfo.py.
|
static |
Definition at line 295 of file tractInfo.py.
|
static |
Definition at line 363 of file tractInfo.py.
|
static |
Definition at line 300 of file tractInfo.py.
|
static |
Definition at line 329 of file tractInfo.py.
|
static |
Definition at line 283 of file tractInfo.py.
|
static |
Definition at line 336 of file tractInfo.py.
|
static |
Definition at line 348 of file tractInfo.py.
|
static |
Definition at line 375 of file tractInfo.py.