LSST Applications g1653933729+34a971ddd9,g1a997c3884+34a971ddd9,g2160c40384+da0d0eec6b,g28da252d5a+1236b942f7,g2bbee38e9b+e5a1bc5b38,g2bc492864f+e5a1bc5b38,g2ca4be77d2+192fe503f0,g2cdde0e794+704103fe75,g3156d2b45e+6e87dc994a,g347aa1857d+e5a1bc5b38,g35bb328faa+34a971ddd9,g3a166c0a6a+e5a1bc5b38,g3e281a1b8c+8ec26ec694,g4005a62e65+ba0306790b,g414038480c+9f5be647b3,g41af890bb2+c3a10c924f,g5065538af8+e7237db731,g5a0bb5165c+eae055db26,g717e5f8c0f+b65b5c3ae4,g80478fca09+4ce5a07937,g82479be7b0+08790af60f,g858d7b2824+b65b5c3ae4,g9125e01d80+34a971ddd9,ga5288a1d22+5df949a35e,gae0086650b+34a971ddd9,gb58c049af0+ace264a4f2,gbd397ab92a+2141afb137,gc28159a63d+e5a1bc5b38,gc805d3fbd4+b65b5c3ae4,gcf0d15dbbd+97632ccc20,gd6b7c0dfd1+de826e8718,gda6a2b7d83+97632ccc20,gdaeeff99f8+7774323b41,ge2409df99d+e6cadbf968,ge33fd446bb+b65b5c3ae4,ge79ae78c31+e5a1bc5b38,gf0baf85859+890af219f9,gf5289d68f6+a27069ed62,w.2024.37
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: