GroupExposuresTask#
- class lsst.obs.base.GroupExposuresTask(config: GroupExposuresConfig, **kwargs: Any)#
Bases:
TaskAbstract base class for the subtask of
DefineVisitsTaskthat is responsible for grouping exposures into visits.Subclasses should be registered with
GroupExposuresTask.registryto enable use byDefineVisitsTask, and should generally correspond to a particular ‘visit_system’ dimension value. They are also responsible for defining visit IDs and names that are unique across all visit systems in use by an instrument.Parameters#
- config
GroupExposuresConfig Configuration information.
- **kwargs
Additional keyword arguments forwarded to the
Taskconstructor.
Attributes Summary
Methods Summary
find_missing(exposures, registry)Determine, if possible, which exposures might be missing.
Return identifiers for the 'visit_system' dimension this algorithm implements.
group(exposures, instrument)Group the given exposures into visits.
group_exposures(exposures)Group the exposures in a way most natural for this visit definition.
Attributes Documentation
- registry = <abc.Registry object>#
Methods Documentation
- abstract find_missing(exposures: list[DimensionRecord], registry: Registry) list[DimensionRecord]#
Determine, if possible, which exposures might be missing.
Parameters#
- exposures
listoflsst.daf.butler.DimensionRecord The exposure records to analyze.
- registry
lsst.daf.butler.Registry A butler registry that contains these exposure records.
Returns#
- missing
listoflsst.daf.butler.DimensionRecord Any exposure records present in registry that were related to the given exposures but were missing from that list and deemed to be relevant.
Notes#
Only some grouping schemes are able to find missing exposures. It is acceptable to return an empty list.
- exposures
- getVisitSystems() set[VisitSystem]#
Return identifiers for the ‘visit_system’ dimension this algorithm implements.
Returns#
- visit_systems
Set[VisitSystem] The visit systems used by this algorithm.
- visit_systems
- abstract group(exposures: list[DimensionRecord], instrument: Instrument) Iterable[VisitDefinitionData]#
Group the given exposures into visits.
Parameters#
- exposures
list[DimensionRecord] DimensionRecords (for the ‘exposure’ dimension) describing the exposures to group.
- instrument
Instrument Instrument specification that can be used to optionally support some visit ID definitions.
Returns#
- visits
Iterable[VisitDefinitionData] Structs identifying the visits and the exposures associated with them. This may be an iterator or a container.
- exposures
- abstract group_exposures(exposures: list[DimensionRecord]) dict[Any, list[DimensionRecord]]#
Group the exposures in a way most natural for this visit definition.
Parameters#
- exposures
listoflsst.daf.butler.DimensionRecord The exposure records to group.
Returns#
- groups
dict[Any,listofDimensionRecord] Groupings of exposure records. The key type is relevant to the specific visit definition and could be a string or a tuple.
- exposures
- config