LSST Applications 24.1.5,g02d81e74bb+fa3a7a026e,g180d380827+a53a32eff8,g2079a07aa2+86d27d4dc4,g2305ad1205+c0501b3732,g295015adf3+7d3e92f0ec,g2bbee38e9b+0e5473021a,g337abbeb29+0e5473021a,g33d1c0ed96+0e5473021a,g3a166c0a6a+0e5473021a,g3ddfee87b4+5dd1654d75,g48712c4677+3bf1020dcb,g487adcacf7+065c13d9cf,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+d7ac436cfb,g5a732f18d5+53520f316c,g64a986408d+fa3a7a026e,g858d7b2824+fa3a7a026e,g8a8a8dda67+585e252eca,g99cad8db69+a5a909b84f,g9ddcbc5298+9a081db1e4,ga1e77700b3+15fc3df1f7,ga8c6da7877+4cf350ccb2,gb0e22166c9+60f28cb32d,gba4ed39666+c2a2e4ac27,gbb8dafda3b+f991a0b59f,gc120e1dc64+9ccbfdb8be,gc28159a63d+0e5473021a,gcf0d15dbbd+5dd1654d75,gd96a1ce819+42fd0ee607,gdaeeff99f8+f9a426f77a,ge6526c86ff+0d71447b4b,ge79ae78c31+0e5473021a,gee10cc3b42+585e252eca,gff1a9f87cc+fa3a7a026e
LSST Data Management Base Package
|
Public Member Functions | |
__init__ (self, display, dims=None, use_opencv=False, verbose=False, *args, **kwargs) | |
embed (self) | |
get_viewer (self) | |
show_color_bar (self, show=True) | |
show_pan_mark (self, show=True, color='red') | |
overlay_mask (self, maskImage, maskDict, maskAlpha) | |
beginMarking (self, symb='+', ctype='cyan', size=10, label='interactive') | |
endMarking (self) | |
getMarkers (self, label='interactive') | |
clearMarkers (self, label=None) | |
linkMarkers (self, ctype='brown', label='interactive') | |
clearLines (self) | |
Public Attributes | |
logger | |
Static Public Attributes | |
dict | markerDict = {'+': 'plus', 'x': 'cross', '.': 'circle', '*': 'circle', 'o': 'circle'} |
Protected Member Functions | |
_setMaskTransparency (self, transparency, maskplane=None) | |
_getMaskTransparency (self, maskplane=None) | |
_mtv (self, image, mask=None, wcs=None, title="") | |
_buffer (self, enable=True) | |
_flush (self) | |
_erase (self) | |
_dot (self, symb, c, r, size, ctype, fontFamily="helvetica", textAngle=None, label='_dot') | |
_drawLines (self, points, ctype) | |
_scale (self, algorithm, min, max, unit, *args, **kwargs) | |
_show (self) | |
_zoom (self, zoomfac) | |
_pan (self, colc, rowc) | |
_getEvent (self) | |
Protected Attributes | |
_viewer | |
_defaultMarkTagName | |
_callbackDict | |
_gingaViewer | |
_canvas | |
_maskTransparency | |
_redraw | |
Virtual device display implementation. Parameters ---------- display : `lsst.afw.display.virtualDevice.DisplayImpl` Display object to connect to. dims : `tuple` [`int`, `int`], optional Dimensions of the viewer window. use_opencv : `bool`, optional Should openCV be used to speed drawing? verbose : `bool`, optional Increase log verbosity?
Definition at line 81 of file astrowidgets.py.
lsst.display.astrowidgets.astrowidgets.DisplayImpl.__init__ | ( | self, | |
display, | |||
dims = None, | |||
use_opencv = False, | |||
verbose = False, | |||
* | args, | ||
** | kwargs ) |
Definition at line 97 of file astrowidgets.py.
|
protected |
Definition at line 279 of file astrowidgets.py.
|
protected |
Draw a symbol at (col,row) = (c,r) [0-based coordinates]. Parameters ---------- symb : `str` Symbol to draw. Should be one of '+', 'x', '*', 'o', '.'. c : `int` Image column for dot center (0-based coordinates). r : `int` Image row for dot center (0-based coordinate). size : `int` Size of dot. fontFamily : `str`, optional Font to use for text symbols. textAngle : `float`, optional Text rotation angle. label : `str`, optional Label to store this dot in the internal list.
Definition at line 289 of file astrowidgets.py.
|
protected |
Connect the points, a list of (col,row). Parameters ---------- points : `list` [`tuple` [`int`, `int`]] Points to connect with lines. ctype : `str` Color to use.
Definition at line 335 of file astrowidgets.py.
|
protected |
Erase the display
Definition at line 285 of file astrowidgets.py.
|
protected |
Definition at line 282 of file astrowidgets.py.
|
protected |
Listen for a key press on a frame in DS9 and return an event. Returns ------- event : `Ds9Event` Event with (key, x, y).
Definition at line 489 of file astrowidgets.py.
|
protected |
Return the current mask transparency.
Definition at line 170 of file astrowidgets.py.
|
protected |
Display an Image and/or Mask on a ginga display Parameters ---------- image : `lsst.afw.image.Image` or `lsst.afw.image.Exposure` Image to display. mask : `lsst.afw.image.Mask`, optional Mask to use, if the input does not contain one. wcs : `ginga.util.wcsmod.wcs_astropy` WCS to use, if the input does not contain one. title : `str`, optional Unsupported display title.
Definition at line 174 of file astrowidgets.py.
|
protected |
Pan to (colc, rowc) Parameters ---------- colc : `int` Column to center in viewer (0-based coordinate). rowc : `int` Row to center in viewer (0-based coordinate).
Definition at line 477 of file astrowidgets.py.
|
protected |
Set greyscale values. Parameters ---------- algorithm : `str` Image scaling algorithm to use. min : `float` or `str` Minimum value to set to black. If a string, should be one of 'zscale' or 'minmax'. max : `float` Maximum value to set to white. unit : `str` Scaling units. This is ignored.
Definition at line 425 of file astrowidgets.py.
|
protected |
Specify mask transparency (percent); or None to not set it when loading masks. Parameters ---------- transparency : `float` Transparency of the masks in percent (0-100). maskplane : `str`, optional Unsupported option to only change the transparency of certain masks.
Definition at line 152 of file astrowidgets.py.
|
protected |
Show the requested display. In this case, embed it in the notebook (equivalent to Display.get_viewer().show(); see also Display.get_viewer().embed() N.b. These command *must* be the last entry in their cell
Definition at line 454 of file astrowidgets.py.
|
protected |
Zoom by specified amount Parameters ---------- zoomfac : `float` Zoom factor to use.
Definition at line 467 of file astrowidgets.py.
lsst.display.astrowidgets.astrowidgets.DisplayImpl.beginMarking | ( | self, | |
symb = '+', | |||
ctype = 'cyan', | |||
size = 10, | |||
label = 'interactive' ) |
Begin interactive mark adding. Parameters ---------- symb : `str`, optional Symbol to use. Should be one of '+', 'x', '*', 'o', '.'. ctype : `str`, optional Color of markers. size : `float`, optional Size of marker. label : `str` Label to store this marker in the internal list.
Definition at line 351 of file astrowidgets.py.
lsst.display.astrowidgets.astrowidgets.DisplayImpl.clearLines | ( | self | ) |
Remove all lines from the display.
Definition at line 421 of file astrowidgets.py.
lsst.display.astrowidgets.astrowidgets.DisplayImpl.clearMarkers | ( | self, | |
label = None ) |
Clear markers. Parameters ---------- label : `str`, optional Marker label to clear. If None, all markers are cleared.
Definition at line 387 of file astrowidgets.py.
lsst.display.astrowidgets.astrowidgets.DisplayImpl.embed | ( | self | ) |
Attach this display to the output of the current cell.
Definition at line 122 of file astrowidgets.py.
lsst.display.astrowidgets.astrowidgets.DisplayImpl.endMarking | ( | self | ) |
End interactive mark adding.
Definition at line 368 of file astrowidgets.py.
lsst.display.astrowidgets.astrowidgets.DisplayImpl.get_viewer | ( | self | ) |
Return the ginga viewer
Definition at line 126 of file astrowidgets.py.
lsst.display.astrowidgets.astrowidgets.DisplayImpl.getMarkers | ( | self, | |
label = 'interactive' ) |
Get list of markers. Parameters ---------- label : `str`, optional Marker label to return. Returns ------- table : `astropy.table.Table` Table of markers with the given label.
Definition at line 372 of file astrowidgets.py.
lsst.display.astrowidgets.astrowidgets.DisplayImpl.linkMarkers | ( | self, | |
ctype = 'brown', | |||
label = 'interactive' ) |
Connect markers with lines. Parameters ---------- ctype : `str`, optional Color to draw the lines. label : `str`, optional Marker label to connect. Lines are drawn in the order found in the table.
Definition at line 400 of file astrowidgets.py.
lsst.display.astrowidgets.astrowidgets.DisplayImpl.overlay_mask | ( | self, | |
maskImage, | |||
maskDict, | |||
maskAlpha ) |
Draw mask onto the image display. Parameters ---------- maskImage : `lsst.afw.image.Mask` Mask to display. maskDict : `dict` [`str`, `str`] Dictionary of mask plane names to colors. maskAlpha : `float` Transparency to display the mask.
Definition at line 231 of file astrowidgets.py.
lsst.display.astrowidgets.astrowidgets.DisplayImpl.show_color_bar | ( | self, | |
show = True ) |
Show (or hide) the colour bar. Parameters ---------- show : `bool`, optional Should the color bar be shown?
Definition at line 130 of file astrowidgets.py.
lsst.display.astrowidgets.astrowidgets.DisplayImpl.show_pan_mark | ( | self, | |
show = True, | |||
color = 'red' ) |
Show (or hide) the pan mark. Parameters ---------- show : `bool`, optional Should the pan marker be shown? color : `str`, optional What color should the pan mark be?
Definition at line 140 of file astrowidgets.py.
|
protected |
Definition at line 110 of file astrowidgets.py.
|
protected |
Definition at line 117 of file astrowidgets.py.
|
protected |
Definition at line 109 of file astrowidgets.py.
|
protected |
Definition at line 113 of file astrowidgets.py.
|
protected |
Definition at line 119 of file astrowidgets.py.
|
protected |
Definition at line 120 of file astrowidgets.py.
|
protected |
Definition at line 107 of file astrowidgets.py.
lsst.display.astrowidgets.astrowidgets.DisplayImpl.logger |
Definition at line 104 of file astrowidgets.py.
|
static |
Definition at line 95 of file astrowidgets.py.