LSST Applications g063fba187b+66a50001ff,g0f08755f38+1a22dc2551,g1653933729+a8ce1bb630,g168dd56ebc+a8ce1bb630,g217e2c1bcf+12e87a5bd8,g246886dfd9+466c7b6c06,g28da252d5a+858b171e04,g2bbee38e9b+404b60ec9b,g2bc492864f+404b60ec9b,g3156d2b45e+6e55a43351,g347aa1857d+404b60ec9b,g35bb328faa+a8ce1bb630,g3a166c0a6a+404b60ec9b,g3e281a1b8c+c5dd892a6c,g414038480c+6b9177ef31,g41af890bb2+70bea58702,g599934f4f4+b8c5400ca5,g781aacb6e4+a8ce1bb630,g7af13505b9+b5b9cefdb8,g80478fca09+c2997882f3,g82479be7b0+8974e6af0f,g858d7b2824+1a22dc2551,g89c8672015+f4add4ffd5,g8f1c07a47a+de51c9b0a5,g9125e01d80+a8ce1bb630,ga5288a1d22+b66f8cf76b,gb58c049af0+d64f4d3760,gc28159a63d+404b60ec9b,gcab2d0539d+66cf1de5d4,gcf0d15dbbd+12cb7e2563,gda6a2b7d83+12cb7e2563,gdaeeff99f8+1711a396fd,ge79ae78c31+404b60ec9b,gef2f8181fd+414189b318,gf0baf85859+c1f95f4921,gf0c06eb49c+1a22dc2551,gfa517265be+1a22dc2551,gfa999e8aa5+17cd334064,v28.0.0.rc2
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
lsst.skymap.tractInfo.ExplicitTractInfo Class Reference
Inheritance diagram for lsst.skymap.tractInfo.ExplicitTractInfo:
lsst.skymap.tractInfo.TractInfo

Public Member Functions

 __init__ (self, id, tractBuilder, ctrCoord, radius, tractOverlap, wcs, innerBoxCorners=None)
 

Protected Member Functions

 _minimumBoundingBox (self, wcs)
 

Protected Attributes

 _radius
 
 _vertexCoordList
 

Detailed Description

Information for a tract specified explicitly.

A tract is placed at the explicitly defined coordinates, with the nominated
radius.  The tracts are square (i.e., the radius is really a half-size).

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.
radius : `lsst.geom.Angle`
    Radius of the tract.
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 oppsed to a `lsst.sphgeom.ConvexPolygon` built from
    the ``vertex_list``.

Definition at line 431 of file tractInfo.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.skymap.tractInfo.ExplicitTractInfo.__init__ ( self,
id,
tractBuilder,
ctrCoord,
radius,
tractOverlap,
wcs,
innerBoxCorners = None )

Reimplemented from lsst.skymap.tractInfo.TractInfo.

Definition at line 459 of file tractInfo.py.

459 def __init__(self, id, tractBuilder, ctrCoord, radius, tractOverlap, wcs, innerBoxCorners=None):
460 # We don't want TractInfo setting the bbox on the basis of vertices,
461 # but on the radius.
462 vertexList = []
463 self._radius = radius
464 super(ExplicitTractInfo, self).__init__(
465 id,
466 tractBuilder,
467 ctrCoord,
468 vertexList,
469 tractOverlap,
470 wcs,
471 innerBoxCorners=innerBoxCorners,
472 )
473 # Shrink the box slightly to make sure the vertices are in the tract
474 bboxD = geom.BoxD(self.getBBox())
475 bboxD.grow(-0.001)
476 finalWcs = self.getWcs()
477 self._vertexCoordList = finalWcs.pixelToSky(bboxD.getCorners())
478
A floating-point coordinate rectangle geometry.
Definition Box.h:413

Member Function Documentation

◆ _minimumBoundingBox()

lsst.skymap.tractInfo.ExplicitTractInfo._minimumBoundingBox ( self,
wcs )
protected
Calculate the minimum bounding box for the tract, given the WCS, and
the nominated radius.

Reimplemented from lsst.skymap.tractInfo.TractInfo.

Definition at line 479 of file tractInfo.py.

479 def _minimumBoundingBox(self, wcs):
480 """Calculate the minimum bounding box for the tract, given the WCS, and
481 the nominated radius.
482 """
483 bbox = geom.Box2D()
484 for i in range(4):
485 cornerCoord = self._ctrCoord.offset(i*90*geom.degrees, self._radius + self._tractOverlap)
486 pixPos = wcs.skyToPixel(cornerCoord)
487 bbox.include(pixPos)
488 return bbox

Member Data Documentation

◆ _radius

lsst.skymap.tractInfo.ExplicitTractInfo._radius
protected

Definition at line 463 of file tractInfo.py.

◆ _vertexCoordList

lsst.skymap.tractInfo.ExplicitTractInfo._vertexCoordList
protected

Definition at line 477 of file tractInfo.py.


The documentation for this class was generated from the following file: