LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
Public Member Functions | |
def | __init__ |
def | findPatch |
def | findPatchList |
def | getBBox |
def | getCtrCoord |
def | getId |
def | getNumPatches |
def | getPatchBorder |
def | getPatchInfo |
def | getPatchInnerDimensions |
def | getTractOverlap |
def | getVertexList |
def | getWcs |
def | __str__ |
def | __repr__ |
def | __iter__ |
def | __len__ |
def | __getitem__ |
Private Member Functions | |
def | _minimumBoundingBox |
def | _setupPatches |
def | _finalOrientation |
Private Attributes | |
_id | |
_patchInnerDimensions | |
_patchBorder | |
_ctrCoord | |
_vertexCoordList | |
_tractOverlap | |
_numPatches | |
_wcs | |
Information about a tract in a SkyMap sky pixelization The tract is subdivided into rectangular patches. Each patch has the following properties: - An inner region defined by an inner bounding. 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.
Definition at line 30 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.__init__ | ( | self, | |
id, | |||
patchInnerDimensions, | |||
patchBorder, | |||
ctrCoord, | |||
vertexCoordList, | |||
tractOverlap, | |||
wcs | |||
) |
Construct a TractInfo @param[in] id: tract ID @param[in] patchInnerDimensions: dimensions of inner region of patches (x,y pixels) @param[in] patchBorder: overlap between adjacent patches (in pixels, one int) @param[in] ctrCoord: sky coordinate of center of inner region of tract, as an afwCoord.Coord; also used as the CRVAL for the WCS. @param[in] vertexCoordList: list of sky coordinates (afwCoord.Coord) of vertices that define the boundaries of the inner region @param[in] tractOverlap: minimum overlap between adjacent sky tracts; an afwGeom.Angle; this defines the minimum distance the tract extends beyond the inner region in all directions @param[in,out] wcs: an afwImage.Wcs; 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 @warning - It is not enforced that ctrCoord is the center of vertexCoordList, but SkyMap relies on it - vertexCoordList will likely become a geom SphericalConvexPolygon someday.
Definition at line 45 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.__getitem__ | ( | self, | |
index | |||
) |
Definition at line 302 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.__iter__ | ( | self | ) |
Definition at line 292 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.__len__ | ( | self | ) |
Definition at line 298 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.__repr__ | ( | self | ) |
Definition at line 289 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.__str__ | ( | self | ) |
Definition at line 286 of file tractInfo.py.
|
private |
Determine the final orientation We offset everything so the lower-left corner is at 0,0 and compute the final Wcs. @param bbox Current bounding box @param wcs Current Wcs @return revised bounding box, revised Wcs
Definition at line 134 of file tractInfo.py.
|
private |
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.
Definition at line 80 of file tractInfo.py.
|
private |
Setup for patches of a particular size. We grow the bounding box to hold an exact multiple of the desired size (patchInnerDimensions), while keeping the center roughly the same. We return the final bounding box, and the number of patches in each dimension (as an Extent2I). @param minBBox Minimum bounding box for tract @param wcs Wcs object @return final bounding box, number of patches
Definition at line 106 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.findPatch | ( | self, | |
coord | |||
) |
Find the patch containing the specified coord @param[in] coord: sky coordinate (afwCoord.Coord) @return PatchInfo of patch whose inner bbox contains the specified coord @raise LookupError if coord is not in tract @note This routine will be more efficient if coord is ICRS.
Definition at line 153 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.findPatchList | ( | self, | |
coordList | |||
) |
Find patches containing the specified list of coords @param[in] coordList: list of sky coordinates (afwCoord.Coord) @return list of PatchInfo for patches that contain, or may contain, the specified region. The list will be empty if there is no overlap. @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 169 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.getBBox | ( | self | ) |
def lsst.skymap.tractInfo.TractInfo.getCtrCoord | ( | self | ) |
Get sky coordinate of center of tract (as an afwCoord.Coord)
Definition at line 206 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.getId | ( | self | ) |
Get ID of tract
Definition at line 211 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.getNumPatches | ( | self | ) |
Get the number of patches in x, y @return the number of patches in x, y
Definition at line 216 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.getPatchBorder | ( | self | ) |
def lsst.skymap.tractInfo.TractInfo.getPatchInfo | ( | self, | |
index | |||
) |
Return information for the specified patch @param[in] index: index of patch, as a pair of ints @return patch info, an instance of PatchInfo @raise IndexError if index is out of range
Definition at line 230 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.getPatchInnerDimensions | ( | self | ) |
Get dimensions of inner region of the patches (all are the same) @return dimensions of inner region of the patches (as an afwGeom Extent2I)
Definition at line 257 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.getTractOverlap | ( | self | ) |
Get minimum overlap of adjacent sky tracts @return minimum overlap between adjacent sky tracts, as an afwGeom Angle
Definition at line 264 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.getVertexList | ( | self | ) |
Get list of sky coordinates of vertices that define the boundary of the inner region @warning: this is not a deep copy @warning vertexCoordList will likely become a geom SphericalConvexPolygon someday.
Definition at line 271 of file tractInfo.py.
def lsst.skymap.tractInfo.TractInfo.getWcs | ( | self | ) |
|
private |
Definition at line 71 of file tractInfo.py.
|
private |
Definition at line 64 of file tractInfo.py.
|
private |
Definition at line 76 of file tractInfo.py.
|
private |
Definition at line 70 of file tractInfo.py.
|
private |
Definition at line 67 of file tractInfo.py.
|
private |
Definition at line 73 of file tractInfo.py.
|
private |
Definition at line 72 of file tractInfo.py.
|
private |
Definition at line 77 of file tractInfo.py.