lsst.pipe.tasks g11492f7fc6+8204a579d1
Public Member Functions | List of all members
lsst.pipe.tasks.update_visit_summary.GlobalInput Class Reference
Inheritance diagram for lsst.pipe.tasks.update_visit_summary.GlobalInput:
lsst.pipe.tasks.update_visit_summary.PossiblyMultipleInput

Public Member Functions

tuple[int, ExposureRecord|None] best_for_detector (self, int detector_id, SpherePoint|None center=None, Box2I|None bbox=None)
 

Detailed Description

Wrapper class for input `~lsst.afw.table.ExposureCatalog` datasets
that are not per-tract.

Definition at line 211 of file update_visit_summary.py.

Member Function Documentation

◆ best_for_detector()

tuple[int, ExposureRecord | None] lsst.pipe.tasks.update_visit_summary.GlobalInput.best_for_detector (   self,
int  detector_id,
SpherePoint | None   center = None,
Box2I | None   bbox = None 
)
A helper ABC for handling input `~lsst.afw.table.ExposureCatalog`
datasets that may be multiple (one per tract/visit combination) or
unique/global (one per visit).
Return the exposure record for this detector that is the best match
for this detector.

Parameters
----------
detector_id : `int`
    Detector ID; used to find the right row in the catalog or catalogs.
center : `lsst.geom.SpherePoint` or `None`
    Center of the detector in sky coordinates.  If not provided, one
    will be computed via `compute_center_for_detector_record`.
bbox : `lsst.geom.Box2I`, optional
    Bounding box for the detector in its own pixel coordinates.

Returns
-------
tract_id : `int`
    ID of the tract that supplied this record, or `-1` if ``record`` is
    `None` or if the input was not per-tract.
record : `lsst.afw.table.ExposureRecord` or `None`
    Best record for this detector, or `None` if there either were no
    records for this detector or no WCS available to compute a center.

Reimplemented from lsst.pipe.tasks.update_visit_summary.PossiblyMultipleInput.

Definition at line 220 of file update_visit_summary.py.


The documentation for this class was generated from the following file: