LSST Applications
21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
|
Functions | |
def | displayAstrometry (refCat=None, sourceCat=None, distortedCentroidKey=None, bbox=None, exposure=None, matches=None, frame=1, title="", pause=True) |
def | plotAstrometry (matches, refCat=None, sourceCat=None, refMarker="x", refColor="r", sourceMarker="+", sourceColor="g", matchColor="y") |
def lsst.meas.astrom.display.displayAstrometry | ( | refCat = None , |
|
sourceCat = None , |
|||
distortedCentroidKey = None , |
|||
bbox = None , |
|||
exposure = None , |
|||
matches = None , |
|||
frame = 1 , |
|||
title = "" , |
|||
pause = True |
|||
) |
Show an astrometry debug image. Parameters ---------- refCat : `lsst.afw.table.SimpleCatalog` reference object catalog; must have fields "centroid_x" an "centroid_y" sourceCat : `lsst.afw.table.SourceCatalg` source catalog; must have field "slot_Centroid_x" and "slot_Centroid_y" distortedCentroidKey : `lsst.afw.table.Key` key for sourceCat with field to use for distorted positions exposure : `lsst.afw.image.Exposure` exposure to display bbox : `lsst.geom.Box2I` bounding box of exposure; Used if the exposure is `None` matches : `list` of `lsst.afw.table.ReferenceMatch` List of matched objects frame : `int` frame number for display title : `str` title for display pause : `bool` pause for inspection of display? This is done by dropping into pdb. Notes ----- - reference objects in refCat are shown as red X - sources in sourceCat are shown as green + - distorted sources in sourceCat (position given by distortedCentroidKey) are shown as green o - matches are shown as a yellow circle around the source and a yellow line connecting the reference object and source - if both exposure and bbox are `None`, no image is displayed
Definition at line 33 of file display.py.
def lsst.meas.astrom.display.plotAstrometry | ( | matches, | |
refCat = None , |
|||
sourceCat = None , |
|||
refMarker = "x" , |
|||
refColor = "r" , |
|||
sourceMarker = "+" , |
|||
sourceColor = "g" , |
|||
matchColor = "y" |
|||
) |
Plot reference objects, sources and matches Parameters ---------- matches : `list` of `lsst.afw.table.ReferenceMatch` list of matches refCat : `lsst.afw.table.SimpleCatalog` reference object catalog, or None to not plot reference objects sourceCat : `lsst.afw.table.SourceCatalog` source catalog, or None to not plot sources refMarker : `str` pyplot marker for reference objects refColor : `str` pyplot color for reference objects sourceMarker : `str` pyplot marker for sources sourceColor : `str` pyplot color for sources matchColor : `str` color for matches; can be a constant or a function taking one match and returning a string Notes ----- By default: - reference objects in refCat are shown as red X - sources in sourceCat are shown as green + - matches are shown as a yellow circle around the source and a line connecting the reference object to the source
Definition at line 117 of file display.py.