LSST Applications 24.1.0,g0b6bd0c080+e62dec11b2,g17e5ecfddb+2f99ec5bff,g1d67935e3f+aeba7d5376,g33b6a96d52+e24369602a,g38293774b4+ac198e9f13,g396055baef+a9fc9fe987,g3b44f30a73+6ed7a0bf37,g45a0052f0b+d5a0214cf8,g48ccf36440+89c08d0516,g5c4744a4d9+9e5e24d318,g6c8d09e9e7+60190443eb,g8b9e2231ea+b61c7debcc,g9c8be92ad0+d5a0214cf8,g9d27549199+9e5e24d318,ga1cf026fa3+ac198e9f13,ga32aa97882+7403ac30ac,ga786bb30fb+8c170280cc,gaa63f70f4e+a45a85e39e,gabf319e997+a153293d79,gb22ebf5633+adf3385ca5,gbec6a3398f+aeba7d5376,gc75b51116a+846e1f9efd,gca4adeb000+d5a0214cf8,gd01420fc67+aeba7d5376,gd82bb2a289+52e0a19ca3,gd877ba84e5+aeba7d5376,gd95cd18b76+8a093cac5b,gdb4cecd868+a5301bf5a0,gecc7e12556+d5a0214cf8,gf14d0188e3+a153293d79,gf3ee170dca+60190443eb,gf4ac96e456+a153293d79,gf51b12da82+3612beda7c,gf8609944d8+9adb1d6802,gf9f5ea5b4d+ac198e9f13,gff490e6085+9d6cf01b2b
LSST Data Management Base Package
Loading...
Searching...
No Matches
Classes | Functions | Variables
lsst.pipe.tasks.update_visit_summary Namespace Reference

Classes

class  GlobalInput
 
class  PerTractInput
 
class  PossiblyMultipleInput
 
class  UpdateVisitSummaryConnections
 

Functions

SpherePoint|None compute_center_for_detector_record (ExposureRecord record, Box2I|None bbox=None, SkyWcs|None wcs=None)
 

Variables

 wcs_provider
 
 photo_calib_provider
 
 background_provider
 

Function Documentation

◆ compute_center_for_detector_record()

SpherePoint | None lsst.pipe.tasks.update_visit_summary.compute_center_for_detector_record ( ExposureRecord  record,
Box2I | None   bbox = None,
SkyWcs | None   wcs = None 
)
Compute the sky coordinate center for a detector to be used when
testing distance to tract center.

Parameters
----------
record : `lsst.afw.table.ExposureRecord`
    Exposure record to obtain WCS and bbox from if not provided.
bbox : `lsst.geom.Box2I`, optional
    Bounding box for the detector in its own pixel coordinates.
wcs : `lsst.afw.geom.SkyWcs`, optional
    WCS that maps the detector's pixel coordinate system to celestial
    coordinates.

Returns
-------
center : `lsst.geom.SpherePoint` or `None`
    Center of the detector in sky coordinates, or `None` if no WCS was
    given or present in the given record.

Definition at line 62 of file update_visit_summary.py.

64) -> SpherePoint | None:
65 """Compute the sky coordinate center for a detector to be used when
66 testing distance to tract center.
67
68 Parameters
69 ----------
71 Exposure record to obtain WCS and bbox from if not provided.
72 bbox : `lsst.geom.Box2I`, optional
73 Bounding box for the detector in its own pixel coordinates.
74 wcs : `lsst.afw.geom.SkyWcs`, optional
75 WCS that maps the detector's pixel coordinate system to celestial
76 coordinates.
77
78 Returns
79 -------
80 center : `lsst.geom.SpherePoint` or `None`
81 Center of the detector in sky coordinates, or `None` if no WCS was
82 given or present in the given record.
83 """
84 if bbox is None:
85 bbox = record.getBBox()
86 if wcs is None:
87 wcs = record.getWcs()
88 if wcs is None:
89 return None
90 region = makeSkyPolygonFromBBox(bbox, wcs)
91 return SpherePoint(region.getCentroid())
92
93
A 2-dimensional celestial WCS that transform pixels to ICRS RA/Dec, using the LSST standard for pixel...
Definition: SkyWcs.h:117
Record class used to store exposure metadata.
Definition: Exposure.h:79
An integer coordinate rectangle.
Definition: Box.h:55
Point in an unspecified spherical coordinate system.
Definition: SpherePoint.h:57

Variable Documentation

◆ background_provider

lsst.pipe.tasks.update_visit_summary.background_provider

Definition at line 382 of file update_visit_summary.py.

◆ photo_calib_provider

lsst.pipe.tasks.update_visit_summary.photo_calib_provider

Definition at line 372 of file update_visit_summary.py.

◆ wcs_provider

lsst.pipe.tasks.update_visit_summary.wcs_provider

Definition at line 360 of file update_visit_summary.py.