LSST Applications 29.0.1,g0fba68d861+132dd21e0a,g107a963962+1bb9f809a9,g1fd858c14a+005be21cae,g21d47ad084+8a07b29876,g325378336f+5d73323c8f,g330003fc43+40b4eaffc6,g35bb328faa+fcb1d3bbc8,g36ff55ed5b+9c28a42a87,g4e0f332c67+5fbd1e3e73,g53246c7159+fcb1d3bbc8,g60b5630c4e+9c28a42a87,g67b6fd64d1+a38b34ea13,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g7b71ed6315+fcb1d3bbc8,g86c591e316+6b2b2d0295,g8852436030+bf14db0e33,g89139ef638+a38b34ea13,g8b8da53e10+e3777245af,g9125e01d80+fcb1d3bbc8,g989de1cb63+a38b34ea13,g9f1445be69+9c28a42a87,g9f33ca652e+52c8f07962,ga9baa6287d+9c28a42a87,ga9e4eb89a6+9f84bd6575,gabe3b4be73+1e0a283bba,gb037a4e798+f3cbcd26c0,gb1101e3267+e7be8da0f8,gb58c049af0+f03b321e39,gb89ab40317+a38b34ea13,gcf25f946ba+bf14db0e33,gd6cbbdb0b4+bce7f7457e,gd9a9a58781+fcb1d3bbc8,gde0f65d7ad+53d424b1ae,ge278dab8ac+222406d50a,ge410e46f29+a38b34ea13,ge80e9994a3+664d6357dc,gf67bdafdda+a38b34ea13
LSST Data Management Base Package
|
Public Member Functions | |
__init__ (self, display, verbose=False, url=None, name=None, *args, **kwargs) | |
getClient (self) | |
clearViewer (self) | |
resetLayout (self) | |
overlayFootprints (self, catalog, color='rgba(74, 144, 226, 0.60)', highlightColor='cyan', selectColor='orange', style='fill', layerString='detection footprints ', titleString='catalog footprints ') | |
Public Attributes | |
display = display | |
verbose = verbose | |
frame | |
Protected Member Functions | |
_getRegionLayerId (self) | |
_clearImage (self) | |
_mtv (self, image, mask=None, wcs=None, title="", metadata=None) | |
_remove_masks (self) | |
_buffer (self, enable=True) | |
Enable or disable buffering of writes to the display param enable True or False, as appropriate. | |
_flush (self) | |
Flush any I/O buffers. | |
_uploadTextData (self, regions) | |
_close (self) | |
_dot (self, symb, c, r, size, ctype, fontFamily="helvetica", textAngle=None) | |
_drawLines (self, points, ctype) | |
_erase (self) | |
_setCallback (self, what, func) | |
_getEvent (self) | |
_scale (self, algorithm, min, max, unit=None, *args, **kwargs) | |
_setMaskTransparency (self, transparency, maskName) | |
_getMaskTransparency (self, maskName) | |
_setMaskPlaneColor (self, maskName, color) | |
_show (self) | |
_zoom (self, zoomfac) | |
_pan (self, colc, rowc) | |
_setImageColormap (self, cmap) | |
Protected Attributes | |
bool | _isBuffered = False |
list | _regions = [] |
_regionLayerId = self._getRegionLayerId() | |
_fireflyFitsID = None | |
_fireflyMaskOnServer = None | |
_client = _fireflyClient | |
_channel = _fireflyClient.channel | |
_url = _fireflyClient.get_firefly_url() | |
list | _maskIds = [] |
dict | _maskDict = {} |
dict | _maskPlaneColors = {} |
dict | _maskTransparencies = {} |
_lastZoom = None | |
list | _lastPan = None |
_lastStretch = None | |
_stretchAlgorithm = algorithm | |
_stretchMin = min | |
_stretchMax = max | |
_stretchUnit = unit | |
Device to talk to a firefly display
Definition at line 56 of file firefly.py.
lsst.display.firefly.firefly.DisplayImpl.__init__ | ( | self, | |
display, | |||
verbose = False, | |||
url = None, | |||
name = None, | |||
* | args, | ||
** | kwargs ) |
Definition at line 76 of file firefly.py.
|
protected |
Enable or disable buffering of writes to the display param enable True or False, as appropriate.
Reimplemented from lsst.afw.display.virtualDevice.DisplayImpl.
Definition at line 231 of file firefly.py.
|
protected |
Delete the current image in the Firefly viewer
Definition at line 150 of file firefly.py.
|
protected |
Called when the device is closed
Reimplemented from lsst.afw.display.virtualDevice.DisplayImpl.
Definition at line 258 of file firefly.py.
|
protected |
Draw a symbol onto the specified DS9 frame at (col,row) = (c,r) [0-based coordinates] Possible values are: + Draw a + x Draw an x * Draw a * o Draw a circle @:Mxx,Mxy,Myy Draw an ellipse with moments (Mxx, Mxy, Myy) (argument size is ignored) An object derived from afwGeom.ellipses.BaseCore Draw the ellipse (argument size is ignored) Any other value is interpreted as a string to be drawn. Strings obey the fontFamily (which may be extended with other characteristics, e.g. "times bold italic". Text will be drawn rotated by textAngle (textAngle is ignored otherwise). N.b. objects derived from BaseCore include Axes and Quadrupole.
Reimplemented from lsst.afw.display.virtualDevice.DisplayImpl.
Definition at line 266 of file firefly.py.
|
protected |
Connect the points, a list of (col,row) Ctype is the name of a colour (e.g. 'red')
Reimplemented from lsst.afw.display.virtualDevice.DisplayImpl.
Definition at line 283 of file firefly.py.
|
protected |
Erase all overlays on the image
Reimplemented from lsst.afw.display.virtualDevice.DisplayImpl.
Definition at line 289 of file firefly.py.
|
protected |
Flush any I/O buffers.
Reimplemented from lsst.afw.display.virtualDevice.DisplayImpl.
Definition at line 237 of file firefly.py.
|
protected |
Return an event generated by a keypress or mouse click
Reimplemented from lsst.afw.display.virtualDevice.DisplayImpl.
Definition at line 308 of file firefly.py.
|
protected |
Return the current mask's transparency
Reimplemented from lsst.afw.display.virtualDevice.DisplayImpl.
Definition at line 446 of file firefly.py.
|
protected |
Definition at line 147 of file firefly.py.
|
protected |
Display an Image and/or Mask on a Firefly display
Reimplemented from lsst.afw.display.virtualDevice.DisplayImpl.
Definition at line 156 of file firefly.py.
|
protected |
Pan to specified pixel coordinates Parameters: ----------- colc, rowc : `float` column and row in units of pixels (zero-based convention, with the xy0 already subtracted off)
Reimplemented from lsst.afw.display.virtualDevice.DisplayImpl.
Definition at line 492 of file firefly.py.
|
protected |
Remove mask layers
Definition at line 225 of file firefly.py.
|
protected |
Scale the image stretch and limits Parameters: ----------- algorithm : `str` stretch algorithm, e.g. 'linear', 'log', 'loglog', 'equal', 'squared', 'sqrt', 'asinh', powerlaw_gamma' min : `float` or `str` lower limit, or 'minmax' for full range, or 'zscale' max : `float` or `str` upper limit; overrriden if min is 'minmax' or 'zscale' unit : `str` unit for min and max. 'percent', 'absolute', 'sigma'. if not specified, min and max are presumed to be in 'absolute' units. *args, **kwargs : additional position and keyword arguments. The options are shown below: **Q** : `float`, optional The asinh softening parameter for asinh stretch. Use Q=0 for linear stretch, increase Q to make brighter features visible. When not specified or None, Q is calculated by Firefly to use full color range. **gamma** The gamma value for power law gamma stretch (default 2.0) **zscale_contrast** : `int`, optional Contrast parameter in percent for zscale algorithm (default 25) **zscale_samples** : `int`, optional Number of samples for zscale algorithm (default 600) **zscale_samples_perline** : `int`, optional Number of samples per line for zscale algorithm (default 120)
Reimplemented from lsst.afw.display.virtualDevice.DisplayImpl.
Definition at line 321 of file firefly.py.
|
protected |
Reimplemented from lsst.afw.display.virtualDevice.DisplayImpl.
Definition at line 296 of file firefly.py.
|
protectedinherited |
Set the desired colormap Parameters ---------- cmap : `str` the name of a colormap (e.g. "gray") or a backend-specific object
Reimplemented in lsst.display.matplotlib.matplotlib.DisplayImpl.
Definition at line 150 of file virtualDevice.py.
|
protected |
Specify mask color
Definition at line 453 of file firefly.py.
|
protected |
Specify mask transparency (percent); or None to not set it when loading masks
Reimplemented from lsst.afw.display.virtualDevice.DisplayImpl.
Definition at line 432 of file firefly.py.
|
protected |
Show the requested window
Reimplemented from lsst.afw.display.virtualDevice.DisplayImpl.
Definition at line 466 of file firefly.py.
|
protected |
Definition at line 252 of file firefly.py.
|
protected |
Zoom display by specified amount Parameters: ----------- zoomfac: `float` zoom level in screen pixels per image pixel
Reimplemented from lsst.afw.display.virtualDevice.DisplayImpl.
Definition at line 481 of file firefly.py.
lsst.display.firefly.firefly.DisplayImpl.clearViewer | ( | self | ) |
Reinitialize the viewer
Definition at line 517 of file firefly.py.
lsst.display.firefly.firefly.DisplayImpl.getClient | ( | self | ) |
Get the instance of FireflyClient for this display Returns: -------- `firefly_client.FireflyClient` Instance of FireflyClient used by this display
Definition at line 507 of file firefly.py.
lsst.display.firefly.firefly.DisplayImpl.overlayFootprints | ( | self, | |
catalog, | |||
color = 'rgba(74,144,226,0.60)', | |||
highlightColor = 'cyan', | |||
selectColor = 'orange', | |||
style = 'fill', | |||
layerString = 'detection footprints ', | |||
titleString = 'catalog footprints ' ) |
Overlay outlines of footprints from a catalog Overlay outlines of LSST footprints from the input catalog. The colors and style can be specified as parameters, and the base color and style can be changed in the Firefly browser user interface. Parameters: ----------- catalog : `lsst.afw.table.SourceCatalog` Source catalog from which to display footprints. color : `str` Color for footprints overlay. Colors can be specified as a name like 'cyan' or afwDisplay.RED; as an rgb value such as 'rgb(80,100,220)'; or as rgb plus alpha (transparency) such as 'rgba('74,144,226,0.60)'. highlightColor : `str` Color for highlighted footprints selectColor : `str` Color for selected footprints style : {'fill', 'outline'} Style of footprints display, filled or outline insertColumn : `int` Column at which to insert the "family_id" and "category" columns layerString: `str` Name of footprints layer string, to concatenate with the frame Re-using the layer_string will overwrite the previous table and footprints titleString: `str` Title of catalog, to concatenate with the frame
Definition at line 549 of file firefly.py.
lsst.display.firefly.firefly.DisplayImpl.resetLayout | ( | self | ) |
Reset the layout of the Firefly Slate browser Clears the display and adds Slate cells to display image in upper left, plot area in upper right, and plots stretch across the bottom
Definition at line 522 of file firefly.py.
|
protected |
Definition at line 137 of file firefly.py.
|
protected |
Definition at line 136 of file firefly.py.
|
protected |
Definition at line 134 of file firefly.py.
|
protected |
Definition at line 135 of file firefly.py.
|
protected |
Definition at line 131 of file firefly.py.
|
protected |
Definition at line 144 of file firefly.py.
|
protected |
Definition at line 145 of file firefly.py.
|
protected |
Definition at line 143 of file firefly.py.
|
protected |
Definition at line 140 of file firefly.py.
|
protected |
Definition at line 139 of file firefly.py.
|
protected |
Definition at line 141 of file firefly.py.
|
protected |
Definition at line 142 of file firefly.py.
|
protected |
Definition at line 133 of file firefly.py.
|
protected |
Definition at line 132 of file firefly.py.
|
protected |
Definition at line 369 of file firefly.py.
|
protected |
Definition at line 408 of file firefly.py.
|
protected |
Definition at line 407 of file firefly.py.
|
protected |
Definition at line 409 of file firefly.py.
|
protected |
Definition at line 138 of file firefly.py.
|
inherited |
Definition at line 34 of file virtualDevice.py.
|
inherited |
Definition at line 44 of file virtualDevice.py.
|
inherited |
Definition at line 35 of file virtualDevice.py.