LSST Applications g034a557a3c+dd8dd8f11d,g0afe43252f+b86e4b8053,g11f7dcd041+017865fdd3,g1cd03abf6b+8446defddb,g1ce3e0751c+f991eae79d,g28da252d5a+ca8a1a9fb3,g2bbee38e9b+b6588ad223,g2bc492864f+b6588ad223,g2cdde0e794+8523d0dbb4,g347aa1857d+b6588ad223,g35bb328faa+b86e4b8053,g3a166c0a6a+b6588ad223,g461a3dce89+b86e4b8053,g52b1c1532d+b86e4b8053,g7f3b0d46df+ad13c1b82d,g80478fca09+f29c5d6c70,g858d7b2824+293f439f82,g8cd86fa7b1+af721d2595,g965a9036f2+293f439f82,g979bb04a14+51ed57f74c,g9ddcbc5298+f24b38b85a,gae0086650b+b86e4b8053,gbb886bcc26+b97e247655,gc28159a63d+b6588ad223,gc30aee3386+a2f0f6cab9,gcaf7e4fdec+293f439f82,gcd45df26be+293f439f82,gcdd4ae20e8+70b5def7e6,gce08ada175+da9c58a417,gcf0d15dbbd+70b5def7e6,gdaeeff99f8+006e14e809,gdbce86181e+6a170ce272,ge3d4d395c2+224150c836,ge5f7162a3a+bb2241c923,ge6cb8fbbf7+d119aed356,ge79ae78c31+b6588ad223,gf048a9a2f4+40ffced2b8,gf0baf85859+b4cca3d10f,w.2024.30
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: