Abstract base class for the subtask of `DefineVisitsTask` that is
responsible for extracting spatial regions for visits and visit+detector
combinations.
Subclasses should be registered with `ComputeVisitRegionsTask.registry` to
enable use by `DefineVisitsTask`.
Parameters
----------
config : `ComputeVisitRegionsConfig`
Configuration information.
butler : `lsst.daf.butler.Butler`
The butler to use.
**kwargs
Additional keyword arguments forwarded to the `Task` constructor.
Definition at line 180 of file defineVisits.py.
Tuple[Region, Dict[int, Region]] lsst.obs.base.defineVisits.ComputeVisitRegionsTask.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 in lsst.obs.base.defineVisits._ComputeVisitRegionsFromSingleRawWcsTask.
Definition at line 237 of file defineVisits.py.