GlobalInput#

class lsst.drp.tasks.update_visit_summary.GlobalInput(catalog: ExposureCatalog)#

Bases: PossiblyMultipleInput

Wrapper class for input ExposureCatalog datasets that are not per-tract.

Attributes Summary

catalog

Loaded per-visit catalog dataset (lsst.afw.table.ExposureCatalog).

Methods Summary

best_for_detector(detector_id[, center, bbox])

Return the exposure record for this detector that is the best match for this detector.

Attributes Documentation

catalog: ExposureCatalog = <dataclasses._MISSING_TYPE object>#

Loaded per-visit catalog dataset (lsst.afw.table.ExposureCatalog).

Methods Documentation

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

Return the exposure record for this detector that is the best match for this detector.

Parameters#

detector_idint

Detector ID; used to find the right row in the catalog or catalogs.

centerlsst.geom.SpherePoint or None

Center of the detector in sky coordinates. If not provided, one will be computed via compute_center_for_detector_record.

bboxlsst.geom.Box2I, optional

Bounding box for the detector in its own pixel coordinates.

Returns#

tract_idint

ID of the tract that supplied this record, or -1 if record is None or if the input was not per-tract.

recordlsst.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.