lsst.obs.base
20.0.0-52-g73d9071+9bf1eb8e0a
|
Public Member Functions | |
Dict[int, List[UnitVector3d]] | computeExposureBounds (self, DimensionRecord exposure, *Any collections=None) |
Tuple[Region, Dict[int, Region]] | compute (self, VisitDefinitionData visit, *Any collections=None) |
Instrument | getInstrument (self, instrumentName) |
Public Attributes | |
butler | |
instrumentMap | |
Static Public Attributes | |
ConfigClass = _ComputeVisitRegionsFromSingleRawWcsConfig | |
registry | |
A visit region calculator that uses a single raw WCS and a camera to project the bounding boxes of all detectors onto the sky, relating different detectors by their positions in focal plane coordinates. Notes ----- Most instruments should have their raw WCSs determined from a combination of boresight angle, rotator angle, and camera geometry, and hence this algorithm should produce stable results regardless of which detector the raw corresponds to. If this is not the case (e.g. because a per-file FITS WCS is used instead), either the ID of the detector should be fixed (see the ``detectorId`` config parameter) or a different algorithm used.
Definition at line 682 of file defineVisits.py.
Tuple[Region, Dict[int, Region]] lsst.obs.base.defineVisits._ComputeVisitRegionsFromSingleRawWcsTask.compute | ( | self, | |
VisitDefinitionData | visit, | ||
*Any | collections = None |
||
) |
Compute regions for the given visit and all detectors in that visit. Parameters ---------- visit : `VisitDefinitionData` Struct describing the visit and the exposures associated with it. collections : Any, optional Collections to be searched for raws and camera geometry, overriding ``self.butler.collections``. Can be any of the types supported by the ``collections`` argument to butler construction. Returns ------- visitRegion : `lsst.sphgeom.Region` Region for the full visit. visitDetectorRegions : `dict` [ `int`, `lsst.sphgeom.Region` ] Dictionary mapping detector ID to the region for that detector. Should include all detectors in the visit.
Reimplemented from lsst.obs.base.defineVisits.ComputeVisitRegionsTask.
Definition at line 772 of file defineVisits.py.
Dict[int, List[UnitVector3d]] lsst.obs.base.defineVisits._ComputeVisitRegionsFromSingleRawWcsTask.computeExposureBounds | ( | self, | |
DimensionRecord | exposure, | ||
*Any | collections = None |
||
) |
Compute the lists of unit vectors on the sphere that correspond to the sky positions of detector corners. Parameters ---------- exposure : `DimensionRecord` Dimension record for the exposure. collections : Any, optional Collections to be searched for raws and camera geometry, overriding ``self.butler.collections``. Can be any of the types supported by the ``collections`` argument to butler construction. Returns ------- bounds : `dict` Dictionary mapping detector ID to a list of unit vectors on the sphere representing that detector's corners projected onto the sky.
Definition at line 699 of file defineVisits.py.
|
inherited |
Retrieve an `~lsst.obs.base.Instrument` associated with this instrument name. Parameters ---------- instrumentName : `str` The name of the instrument. Returns ------- instrument : `~lsst.obs.base.Instrument` The associated instrument object. Notes ----- The result is cached.
Definition at line 212 of file defineVisits.py.
|
inherited |
Definition at line 199 of file defineVisits.py.
|
static |
Definition at line 697 of file defineVisits.py.
|
inherited |
Definition at line 200 of file defineVisits.py.
|
staticinherited |
Definition at line 206 of file defineVisits.py.