ComputeVisitRegionsTask#
- class lsst.obs.base.ComputeVisitRegionsTask(config: ComputeVisitRegionsConfig, *, butler: Butler, **kwargs: Any)#
Bases:
TaskAbstract base class for the subtask of
DefineVisitsTaskthat is responsible for extracting spatial regions for visits and visit+detector combinations.Subclasses should be registered with
ComputeVisitRegionsTask.registryto enable use byDefineVisitsTask.Parameters#
- config
ComputeVisitRegionsConfig Configuration information.
- butler
lsst.daf.butler.Butler The butler to use.
- **kwargs
Additional keyword arguments forwarded to the
Taskconstructor.
Attributes Summary
Methods Summary
compute(visit, *[, collections])Compute regions for the given visit and all detectors in that visit.
getInstrument(instrumentName)Retrieve an
Instrumentassociated with this instrument name.Attributes Documentation
- registry = <abc.Registry object>#
Methods Documentation
- abstract compute(visit: VisitDefinitionData, *, collections: Sequence[str] | str | None = None) tuple[Region, dict[int, Region]]#
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
collections.abc.Sequence[str] orstrorNone Collections to be searched for camera geometry, overriding
self.butler.collections.defaults. Can be any of the types supported by thecollectionsargument 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.
- visit
- getInstrument(instrumentName: str) Instrument#
Retrieve an
Instrumentassociated with this instrument name.Parameters#
- instrumentName
str The name of the instrument.
Returns#
- instrument
Instrument The associated instrument object.
Notes#
The result is cached.
- instrumentName
- config