LSSTApplications  20.0.0
LSSTDataManagementBasePackage
Classes | Functions | Variables
lsst.afw.display.ds9 Namespace Reference

Classes

class  _RaiseException
 
class  DisplayImpl
 

Functions

def Buffering ()
 
def setMaskPlaneColor (name, color=None, frame=None)
 
def getMaskPlaneColor (name, frame=None)
 
def setMaskTransparency (name, frame=None)
 
def getMaskTransparency (name, frame=None)
 
def show (frame=None)
 
def mtv (data, frame=None, title="", wcs=None, *args, **kwargs)
 
def erase (frame=None)
 
def dot (symb, c, r, frame=None, size=2, ctype=None, origin=afwImage.PARENT, *args, **kwargs)
 
def line (points, frame=None, origin=afwImage.PARENT, symbs=False, ctype=None, size=0.5)
 
def scale (algorithm, min, max=None, frame=None)
 
def pan (colc=None, rowc=None, frame=None, origin=afwImage.PARENT)
 
def zoom (zoomfac=None, colc=None, rowc=None, frame=None, origin=afwImage.PARENT)
 
def interact (frame=None)
 
def setCallback (k, func=lsst.afw.display.noop_callback, noRaise=False, frame=None)
 
def getActiveCallbackKeys (onlyActive=True, frame=None)
 

Variables

 getDisplay = _getDisplay
 
 loaded = True
 

Function Documentation

◆ Buffering()

def lsst.afw.display.ds9.Buffering ( )

Definition at line 64 of file ds9.py.

64 def Buffering():
65  # always use the real one
66  return _getDisplay(None, create=True).Buffering()
67 
68 #
69 # Functions provided for backwards compatibility
70 #
71 
72 

◆ dot()

def lsst.afw.display.ds9.dot (   symb,
  c,
  r,
  frame = None,
  size = 2,
  ctype = None,
  origin = afwImage.PARENT,
args,
**  kwargs 
)
Examples
image2.cc, and maskedImage2.cc.

Definition at line 101 of file ds9.py.

101 def dot(symb, c, r, frame=None, size=2, ctype=None, origin=afwImage.PARENT, *args, **kwargs):
102  return getDisplay(frame, create=True).dot(symb, c, r, size, ctype, origin, *args, **kwargs)
103 
104 

◆ erase()

def lsst.afw.display.ds9.erase (   frame = None)
Examples
forEachPixel.cc.

Definition at line 97 of file ds9.py.

97 def erase(frame=None):
98  return getDisplay(frame, create=True).erase()
99 
100 

◆ getActiveCallbackKeys()

def lsst.afw.display.ds9.getActiveCallbackKeys (   onlyActive = True,
  frame = None 
)

Definition at line 134 of file ds9.py.

134 def getActiveCallbackKeys(onlyActive=True, frame=None):
135  return getDisplay(frame, create=True).getActiveCallbackKeys(onlyActive)

◆ getMaskPlaneColor()

def lsst.afw.display.ds9.getMaskPlaneColor (   name,
  frame = None 
)

Definition at line 77 of file ds9.py.

77 def getMaskPlaneColor(name, frame=None):
78  return getDisplay(frame, create=True).getMaskPlaneColor(name)
79 
80 

◆ getMaskTransparency()

def lsst.afw.display.ds9.getMaskTransparency (   name,
  frame = None 
)

Definition at line 85 of file ds9.py.

85 def getMaskTransparency(name, frame=None):
86  return getDisplay(frame, create=True).getMaskTransparency(name)
87 
88 

◆ interact()

def lsst.afw.display.ds9.interact (   frame = None)

Definition at line 126 of file ds9.py.

126 def interact(frame=None):
127  return getDisplay(frame, create=True).interact()
128 
129 

◆ line()

def lsst.afw.display.ds9.line (   points,
  frame = None,
  origin = afwImage.PARENT,
  symbs = False,
  ctype = None,
  size = 0.5 
)

Definition at line 105 of file ds9.py.

105 def line(points, frame=None, origin=afwImage.PARENT, symbs=False, ctype=None, size=0.5):
106  return getDisplay(frame, create=True).line(points, origin, symbs, ctype, size)
107 
108 

◆ mtv()

def lsst.afw.display.ds9.mtv (   data,
  frame = None,
  title = "",
  wcs = None,
args,
**  kwargs 
)

Definition at line 93 of file ds9.py.

93 def mtv(data, frame=None, title="", wcs=None, *args, **kwargs):
94  return getDisplay(frame, create=True).mtv(data, title, wcs, *args, **kwargs)
95 
96 

◆ pan()

def lsst.afw.display.ds9.pan (   colc = None,
  rowc = None,
  frame = None,
  origin = afwImage.PARENT 
)

Definition at line 113 of file ds9.py.

113 def pan(colc=None, rowc=None, frame=None, origin=afwImage.PARENT):
114  disp = getDisplay(frame, create=True)
115 
116  disp.pan(colc, rowc, origin)
117 
118 

◆ scale()

def lsst.afw.display.ds9.scale (   algorithm,
  min,
  max = None,
  frame = None 
)

Definition at line 109 of file ds9.py.

109 def scale(algorithm, min, max=None, frame=None):
110  return getDisplay(frame, create=True).scale(algorithm, min, max)
111 
112 

◆ setCallback()

def lsst.afw.display.ds9.setCallback (   k,
  func = lsst.afw.display.noop_callback,
  noRaise = False,
  frame = None 
)

Definition at line 130 of file ds9.py.

130 def setCallback(k, func=lsst.afw.display.noop_callback, noRaise=False, frame=None):
131  return getDisplay(frame, create=True).setCallback(k, noRaise=False)
132 
133 

◆ setMaskPlaneColor()

def lsst.afw.display.ds9.setMaskPlaneColor (   name,
  color = None,
  frame = None 
)

Definition at line 73 of file ds9.py.

73 def setMaskPlaneColor(name, color=None, frame=None):
74  return getDisplay(frame, create=True).setMaskPlaneColor(name, color)
75 
76 

◆ setMaskTransparency()

def lsst.afw.display.ds9.setMaskTransparency (   name,
  frame = None 
)

Definition at line 81 of file ds9.py.

81 def setMaskTransparency(name, frame=None):
82  return getDisplay(frame, create=True).setMaskTransparency(name)
83 
84 

◆ show()

def lsst.afw.display.ds9.show (   frame = None)

Definition at line 89 of file ds9.py.

89 def show(frame=None):
90  return getDisplay(frame, create=True).show()
91 
92 

◆ zoom()

def lsst.afw.display.ds9.zoom (   zoomfac = None,
  colc = None,
  rowc = None,
  frame = None,
  origin = afwImage.PARENT 
)

Definition at line 119 of file ds9.py.

119 def zoom(zoomfac=None, colc=None, rowc=None, frame=None, origin=afwImage.PARENT):
120  disp = getDisplay(frame, create=True)
121 
122  disp.zoom(zoomfac)
123  disp.pan(colc, rowc, origin)
124 
125 

Variable Documentation

◆ getDisplay

lsst.afw.display.ds9.getDisplay = _getDisplay

Definition at line 34 of file ds9.py.

◆ loaded

bool lsst.afw.display.ds9.loaded = True

Definition at line 59 of file ds9.py.

lsst::afw.display.ds9.getDisplay
getDisplay
Definition: ds9.py:34
lsst::afw.display.ds9.getActiveCallbackKeys
def getActiveCallbackKeys(onlyActive=True, frame=None)
Definition: ds9.py:134
lsst::afw.display.ds9.setMaskPlaneColor
def setMaskPlaneColor(name, color=None, frame=None)
Definition: ds9.py:73
lsst::afw.display.ds9.mtv
def mtv(data, frame=None, title="", wcs=None, *args, **kwargs)
Definition: ds9.py:93
lsst::afw.display.ds9.interact
def interact(frame=None)
Definition: ds9.py:126
lsst::afw.display.ds9.dot
def dot(symb, c, r, frame=None, size=2, ctype=None, origin=afwImage.PARENT, *args, **kwargs)
Definition: ds9.py:101
lsst::afw.display.ds9.setCallback
def setCallback(k, func=lsst.afw.display.noop_callback, noRaise=False, frame=None)
Definition: ds9.py:130
lsst::afw.display.ds9.getMaskPlaneColor
def getMaskPlaneColor(name, frame=None)
Definition: ds9.py:77
lsst::afw.display.ds9.Buffering
def Buffering()
Definition: ds9.py:64
lsst::afw.display.ds9.line
def line(points, frame=None, origin=afwImage.PARENT, symbs=False, ctype=None, size=0.5)
Definition: ds9.py:105
lsst::afw.display.ds9.setMaskTransparency
def setMaskTransparency(name, frame=None)
Definition: ds9.py:81
lsst::afw.display.ds9.pan
def pan(colc=None, rowc=None, frame=None, origin=afwImage.PARENT)
Definition: ds9.py:113
lsst::afw.display.ds9.scale
def scale(algorithm, min, max=None, frame=None)
Definition: ds9.py:109
lsst::afw.display.ds9.show
def show(frame=None)
Definition: ds9.py:89
lsst::afw.display.ds9.getMaskTransparency
def getMaskTransparency(name, frame=None)
Definition: ds9.py:85
lsst::afw.display.ds9.erase
def erase(frame=None)
Definition: ds9.py:97
lsst::afw.display.ds9.zoom
def zoom(zoomfac=None, colc=None, rowc=None, frame=None, origin=afwImage.PARENT)
Definition: ds9.py:119