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 578 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 643 of file defineVisits.py.