| 
    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 
   | 
 
Classes | |
| class | _Buffering | 
Public Member Functions | |
| def | __init__ (self, frame=None, backend=None, *args, **kwargs) | 
| def | __enter__ (self) | 
| def | __exit__ (self, *args) | 
| def | __del__ (self) | 
| def | __getattr__ (self, name) | 
| def | close (self) | 
| def | verbose (self) | 
| def | verbose (self, value) | 
| def | __str__ (self) | 
| def | setImageColormap (self, cmap) | 
| def | maskColorGenerator (self, omitBW=True) | 
| def | setMaskPlaneColor (self, name, color=None) | 
| def | getMaskPlaneColor (self, name=None) | 
| def | setMaskTransparency (self, transparency=None, name=None) | 
| def | getMaskTransparency (self, name=None) | 
| def | show (self) | 
| def | mtv (self, data, title="", wcs=None) | 
| def | Buffering (self) | 
| def | flush (self) | 
| def | erase (self) | 
| def | dot (self, symb, c, r, size=2, ctype=None, origin=afwImage.PARENT, *args, **kwargs) | 
| def | line (self, points, origin=afwImage.PARENT, symbs=False, ctype=None, size=0.5) | 
| def | scale (self, algorithm, min, max=None, unit=None, *args, **kwargs) | 
| def | zoom (self, zoomfac=None, colc=None, rowc=None, origin=afwImage.PARENT) | 
| def | pan (self, colc=None, rowc=None, origin=afwImage.PARENT) | 
| def | interact (self) | 
| def | setCallback (self, k, func=None, noRaise=False) | 
| def | getActiveCallbackKeys (self, onlyActive=True) | 
Static Public Member Functions | |
| def | setDefaultBackend (backend) | 
| def | getDefaultBackend () | 
| def | setDefaultFrame (frame=0) | 
| def | getDefaultFrame () | 
| def | incrDefaultFrame () | 
| def | setDefaultMaskTransparency (maskPlaneTransparency={}) | 
| def | setDefaultMaskPlaneColor (name=None, color=None) | 
| def | setDefaultImageColormap (cmap) | 
| def | getDisplay (frame=None, backend=None, create=True, verbose=False, *args, **kwargs) | 
| def | delAllDisplays () | 
Public Attributes | |
| frame | |
| name | |
Create an object able to display images and overplot glyphs
Parameters
----------
frame
    An identifier for the display
backend : `str`
    The backend to use (defaults to value set by setDefaultBackend())
*args
    Arguments to pass to the backend
**kwargs
    Arguments to pass to the backend
 
Definition at line 118 of file interface.py.
| def lsst.afw.display.interface.Display.__init__ | ( | self, | |
frame = None,  | 
        |||
backend = None,  | 
        |||
| * | args, | ||
| ** | kwargs | ||
| ) | 
Definition at line 152 of file interface.py.
| def lsst.afw.display.interface.Display.__del__ | ( | self | ) | 
Definition at line 209 of file interface.py.
| def lsst.afw.display.interface.Display.__enter__ | ( | self | ) | 
Support for python's with statement
Definition at line 199 of file interface.py.
| def lsst.afw.display.interface.Display.__exit__ | ( | self, | |
| * | args | ||
| ) | 
Support for python's with statement
Definition at line 204 of file interface.py.
| def lsst.afw.display.interface.Display.__getattr__ | ( | self, | |
| name | |||
| ) | 
Return the attribute of ``self._impl``, or ``._impl`` if it is requested
Parameters:
-----------
name : `str`
    name of the attribute requested
Returns:
--------
attribute : `object`
    the attribute of self._impl for the requested name
 
Definition at line 212 of file interface.py.
| def lsst.afw.display.interface.Display.__str__ | ( | self | ) | 
Definition at line 258 of file interface.py.
| def lsst.afw.display.interface.Display.Buffering | ( | self | ) | 
Return a class intended to be used with python's with statement
Examples
--------
.. code-block:: py
   with display.Buffering():
       display.dot("+", xc, yc)
 
Definition at line 572 of file interface.py.
| def lsst.afw.display.interface.Display.close | ( | self | ) | 
Definition at line 238 of file interface.py.
      
  | 
  static | 
| def lsst.afw.display.interface.Display.dot | ( | self, | |
| symb, | |||
| c, | |||
| r, | |||
size = 2,  | 
        |||
ctype = None,  | 
        |||
origin = afwImage.PARENT,  | 
        |||
| * | args, | ||
| ** | kwargs | ||
| ) | 
Draw a symbol onto the specified display frame
Parameters
----------
symb
    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)
        `lsst.afw.geom.ellipses.BaseCore`
            Draw the ellipse (argument size is ignored). N.b. objects
            derived from `~lsst.afw.geom.ellipses.BaseCore` include
            `~lsst.afw.geom.ellipses.Axes` and `~lsst.afw.geom.ellipses.Quadrupole`.
        Any other value
            Interpreted as a string to be drawn.
c, r
    The column and row where the symbol is drawn [0-based coordinates]
size : `int`
    Size of symbol, in pixels
ctype : `str`
    The desired color, either e.g. `lsst.afw.display.RED` or a color name known to X11
origin : `lsst.afw.image.ImageOrigin`
    Coordinate system for the given positions.
*args
    Extra arguments to backend
**kwargs
    Extra keyword arguments to backend
 
Definition at line 594 of file interface.py.
| def lsst.afw.display.interface.Display.erase | ( | self | ) | 
| def lsst.afw.display.interface.Display.flush | ( | self | ) | 
Flush the buffers
Definition at line 584 of file interface.py.
| def lsst.afw.display.interface.Display.getActiveCallbackKeys | ( | self, | |
onlyActive = True  | 
        |||
| ) | 
Return all callback keys
Parameters
----------
onlyActive : `bool`
    If `True` only return keys that do something
 
Definition at line 814 of file interface.py.
      
  | 
  static | 
Definition at line 275 of file interface.py.
      
  | 
  static | 
      
  | 
  static | 
Return a specific `Display`, creating it if need be
Parameters
----------
frame
    The desired frame (`None` => use defaultFrame (see `~Display.setDefaultFrame`))
backend : `str`
    create the specified frame using this backend (or the default if
    `None`) if it doesn't already exist. If ``backend == ""``, it's an
    error to specify a non-existent ``frame``.
create : `bool`
    create the display if it doesn't already exist.
verbose : `bool`
    Allow backend to be chatty
*args
    arguments passed to `Display` constructor
**kwargs
    keyword arguments passed to `Display` constructor
 
Definition at line 364 of file interface.py.
| def lsst.afw.display.interface.Display.getMaskPlaneColor | ( | self, | |
name = None  | 
        |||
| ) | 
Return the color associated with the specified mask plane name
Parameters
----------
name : `str`
    Desired mask plane; if `None`, return entire dict
 
Definition at line 462 of file interface.py.
| def lsst.afw.display.interface.Display.getMaskTransparency | ( | self, | |
name = None  | 
        |||
| ) | 
Return the current display's mask transparency
Definition at line 497 of file interface.py.
      
  | 
  static | 
| def lsst.afw.display.interface.Display.interact | ( | self | ) | 
Enter an interactive loop, listening for key presses in display and firing callbacks. Exit with ``q``, ``CR``, ``ESC``, or any other callback function that returns a `True` value.
Definition at line 762 of file interface.py.
| def lsst.afw.display.interface.Display.line | ( | self, | |
| points, | |||
origin = afwImage.PARENT,  | 
        |||
symbs = False,  | 
        |||
ctype = None,  | 
        |||
size = 0.5  | 
        |||
| ) | 
Draw a set of symbols or connect points
Parameters
----------
points : `list`
    a list of (col, row)
origin : `lsst.afw.image.ImageOrigin`
    Coordinate system for the given positions.
symbs : `bool` or sequence
    If ``symbs`` is `True`, draw points at the specified points using the desired symbol,
    otherwise connect the dots.
    If ``symbs`` supports indexing (which includes a string -- caveat emptor) the
    elements are used to label the points
ctype : `str`
    ``ctype`` is the name of a color (e.g. 'red')
size : `float`
 
Definition at line 653 of file interface.py.
| def lsst.afw.display.interface.Display.maskColorGenerator | ( | self, | |
omitBW = True  | 
        |||
| ) | 
A generator for "standard" colors
Parameters
----------
omitBW : `bool`
    Don't include `BLACK` and `WHITE`
Examples
--------
.. code-block:: py
   colorGenerator = interface.maskColorGenerator(omitBW=True)
   for p in planeList:
       print p, next(colorGenerator)
 
Definition at line 406 of file interface.py.
| def lsst.afw.display.interface.Display.mtv | ( | self, | |
| data, | |||
title = "",  | 
        |||
wcs = None  | 
        |||
| ) | 
Display an `~lsst.afw.image.Image` or `~lsst.afw.image.Mask` on a display Notes ----- Historical note: the name "mtv" comes from Jim Gunn's forth imageprocessing system, Mirella (named after Mirella Freni); The "m" stands for Mirella.
Definition at line 512 of file interface.py.
| def lsst.afw.display.interface.Display.pan | ( | self, | |
colc = None,  | 
        |||
rowc = None,  | 
        |||
origin = afwImage.PARENT  | 
        |||
| ) | 
Pan to a location
Parameters
----------
colc, rowc
    the coordinates to pan to
origin : `lsst.afw.image.ImageOrigin`
    Coordinate system for the given positions.
See also
--------
Display.zoom
 
Definition at line 745 of file interface.py.
| def lsst.afw.display.interface.Display.scale | ( | self, | |
| algorithm, | |||
| min, | |||
max = None,  | 
        |||
unit = None,  | 
        |||
| * | args, | ||
| ** | kwargs | ||
| ) | 
Set the range of the scaling from DN in the image to the image display
Parameters
----------
algorithm : `str`
    Desired scaling (e.g. "linear" or "asinh")
min
    Minimum value, or "minmax" or "zscale"
max
    Maximum value (must be `None` for minmax|zscale)
unit
    Units for min and max (e.g. Percent, Absolute, Sigma; `None` if min==minmax|zscale)
*args
    Optional arguments to the backend
**kwargs
    Optional keyword arguments to the backend
 
Definition at line 694 of file interface.py.
| def lsst.afw.display.interface.Display.setCallback | ( | self, | |
| k, | |||
func = None,  | 
        |||
noRaise = False  | 
        |||
| ) | 
Set the callback for a key
Parameters
----------
k
    The key to assign the callback to
func : callable
    The callback assigned to ``k``
noRaise : `bool`
Returns
-------
oldFunc : callable
    The callback previously assigned to ``k``.
 
Definition at line 784 of file interface.py.
      
  | 
  static | 
Definition at line 265 of file interface.py.
      
  | 
  static | 
      
  | 
  static | 
Set the default colormap for images
Parameters
----------
cmap : `str`
    Name of colormap, as interpreted by the backend
Notes
-----
The only colormaps that all backends are required to honor
(if they pay any attention to setImageColormap) are "gray" and "grey"
 
Definition at line 331 of file interface.py.
      
  | 
  static | 
Set the default mapping from mask plane names to colors
Parameters
----------
name : `str` or `dict`
    name of mask plane, or a dict mapping names to colors
    If name is `None`, use the hard-coded default dictionary
color
    Desired color, or `None` if name is a dict
 
Definition at line 305 of file interface.py.
      
  | 
  static | 
Definition at line 298 of file interface.py.
| def lsst.afw.display.interface.Display.setImageColormap | ( | self, | |
| cmap | |||
| ) | 
Set the colormap to use for images
 Parameters
----------
cmap : `str`
    Name of colormap, as interpreted by the backend
Notes
-----
The only colormaps that all backends are required to honor
(if they pay any attention to setImageColormap) are "gray" and "grey"
 
Definition at line 347 of file interface.py.
| def lsst.afw.display.interface.Display.setMaskPlaneColor | ( | self, | |
| name, | |||
color = None  | 
        |||
| ) | 
Request that mask plane name be displayed as color
Parameters
----------
name : `str` or `dict`
    Name of mask plane or a dictionary of name -> colorName
color : `str`
    The name of the color to use (must be `None` if ``name`` is a `dict`)
    Colors may be specified as any X11-compliant string (e.g. `"orchid"`), or by one
    of the following constants in `lsst.afw.display` : `BLACK`, `WHITE`, `RED`, `BLUE`,
    `GREEN`, `CYAN`, `MAGENTA`, `YELLOW`.
    If the color is "ignore" (or `IGNORE`) then that mask plane is not displayed
    The advantage of using the symbolic names is that the python interpreter can detect typos.
 
Definition at line 435 of file interface.py.
| def lsst.afw.display.interface.Display.setMaskTransparency | ( | self, | |
transparency = None,  | 
        |||
name = None  | 
        |||
| ) | 
Specify display's mask transparency (percent); or `None` to not set it when loading masks
Definition at line 476 of file interface.py.
| def lsst.afw.display.interface.Display.show | ( | self | ) | 
Uniconify and Raise display. Notes ----- Throws an exception if frame doesn't exit
Definition at line 503 of file interface.py.
| def lsst.afw.display.interface.Display.verbose | ( | self | ) | 
The backend's verbosity
Definition at line 248 of file interface.py.
| def lsst.afw.display.interface.Display.verbose | ( | self, | |
| value | |||
| ) | 
Definition at line 254 of file interface.py.
| def lsst.afw.display.interface.Display.zoom | ( | self, | |
zoomfac = None,  | 
        |||
colc = None,  | 
        |||
rowc = None,  | 
        |||
origin = afwImage.PARENT  | 
        |||
| ) | 
Zoom frame by specified amount, optionally panning also
Definition at line 723 of file interface.py.
| lsst.afw.display.interface.Display.frame | 
Definition at line 165 of file interface.py.
| lsst.afw.display.interface.Display.name | 
Definition at line 167 of file interface.py.