|
lsst.meas.astrom
15.0-9-g8a634e0+1
|
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
- 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
@param[in] refCat reference object catalog; must have fields "centroid_x" and "centroid_y"
@param[in] sourceCat source catalog; must have field "slot_Centroid_x" and "slot_Centroid_y"
@param[in] distortedCentroidKey key for sourceCat with field to use for distorted positions, or None
@param[in] exposure exposure to display, or None for a blank exposure
@param[in] bbox bounding box of exposure; used if exposure is None for a blank image
@param[in] matches a list of lsst.afw.table.ReferenceMatch, or None
@param[in] frame frame number for ds9 display
@param[in] title title for ds9 display
@param[in] pause pause for inspection of display? This is done by dropping into pdb.
Definition at line 35 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
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
@param[in] matches list of matches
@param[in] refCat reference object catalog, or None to not plot reference objects
@param[in] sourceCat source catalog, or None to not plot sources
@param[in] refMarker pyplot marker for reference objects
@param[in] refColor pyplot color for reference objects
@param[in] sourceMarker pyplot marker for sources
@param[in] sourceColor pyplot color for sources
@param[in] matchColor color for matches; can be a constant
or a function taking one match and returning a string
Definition at line 110 of file display.py.
1.8.13