LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Functions | Variables
lsst.afw.display.ds9 Namespace Reference

Functions

def getDisplay
 
def Buffering
 
def setMaskPlaneColor
 
def getMaskPlaneColor
 
def setMaskTransparency
 
def getMaskTransparency
 
def show
 
def mtv
 
def erase
 
def dot
 
def line
 
def scale
 
def pan
 
def zoom
 
def interact
 
def setCallback
 
def getActiveCallbackKeys
 

Variables

 getDisplay = _getDisplay
 
 loaded = False
 

Function Documentation

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

Definition at line 57 of file ds9.py.

57 
58 def Buffering():
59  return _getDisplay(None, create=True).Buffering() # always use the real one
60 
61 #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
62 #
63 # Functions provided for backwards compatibility
#
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 85 of file ds9.py.

85 
86 def dot(symb, c, r, frame=None, size=2, ctype=None, origin=afwImage.PARENT, *args, **kwargs):
87  return getDisplay(frame, create=True).dot(symb, c, r, size, ctype, origin, *args, **kwargs)
def lsst.afw.display.ds9.erase (   frame = None)
Examples:
forEachPixel.cc.

Definition at line 82 of file ds9.py.

82 
83 def erase(frame=None):
84  return getDisplay(frame, create=True).erase()
def lsst.afw.display.ds9.getActiveCallbackKeys (   onlyActive = True,
  frame = None 
)

Definition at line 111 of file ds9.py.

112 def getActiveCallbackKeys(onlyActive=True, frame=None):
113  return getDisplay(frame, create=True).getActiveCallbackKeys(onlyActive)
def getActiveCallbackKeys
Definition: ds9.py:111
def lsst.afw.display.ds9.getDisplay (   args,
  kwargs 
)

Definition at line 45 of file ds9.py.

45 
46  def getDisplay(*args, **kwargs):
47  raise e
def lsst.afw.display.ds9.getMaskPlaneColor (   name,
  frame = None 
)

Definition at line 67 of file ds9.py.

67 
68 def getMaskPlaneColor(name, frame=None):
69  return getDisplay(frame, create=True).getMaskPlaneColor(name)
def getMaskPlaneColor
Definition: ds9.py:67
def lsst.afw.display.ds9.getMaskTransparency (   name,
  frame = None 
)

Definition at line 73 of file ds9.py.

73 
74 def getMaskTransparency(name, frame=None):
75  return getDisplay(frame, create=True).getMaskTransparency(name)
def getMaskTransparency
Definition: ds9.py:73
def lsst.afw.display.ds9.interact (   frame = None)

Definition at line 105 of file ds9.py.

106 def interact(frame=None):
107  return getDisplay(frame, create=True).interact()
def lsst.afw.display.ds9.line (   points,
  frame = None,
  origin = afwImage.PARENT,
  symbs = False,
  ctype = None,
  size = 0.5 
)

Definition at line 88 of file ds9.py.

88 
89 def line(points, frame=None, origin=afwImage.PARENT, symbs=False, ctype=None, size=0.5):
90  return getDisplay(frame, create=True).line(points, origin, symbs, ctype, size)
def lsst.afw.display.ds9.mtv (   data,
  frame = None,
  title = "",
  wcs = None,
  args,
  kwargs 
)

Definition at line 79 of file ds9.py.

79 
80 def mtv(data, frame=None, title="", wcs=None, *args, **kwargs):
81  return getDisplay(frame, create=True).mtv(data, title, wcs, *args, **kwargs)
def lsst.afw.display.ds9.pan (   colc = None,
  rowc = None,
  frame = None,
  origin = afwImage.PARENT 
)

Definition at line 94 of file ds9.py.

94 
95 def pan(colc=None, rowc=None, frame=None, origin=afwImage.PARENT):
96  disp = getDisplay(frame, create=True)
97 
98  disp.pan(colc, rowc, origin)
def lsst.afw.display.ds9.scale (   algorithm,
  min,
  max = None,
  frame = None 
)

Definition at line 91 of file ds9.py.

91 
92 def scale(algorithm, min, max=None, frame=None):
93  return getDisplay(frame, create=True).scale(algorithm, min, max)
def lsst.afw.display.ds9.setCallback (   k,
  func = lsst.afw.display.noop_callback,
  noRaise = False,
  frame = None 
)

Definition at line 108 of file ds9.py.

109 def setCallback(k, func=lsst.afw.display.noop_callback, noRaise=False, frame=None):
110  return getDisplay(frame, create=True).setCallback(k, noRaise=False)
def lsst.afw.display.ds9.setMaskPlaneColor (   name,
  color = None,
  frame = None 
)

Definition at line 64 of file ds9.py.

64 
65 def setMaskPlaneColor(name, color=None, frame=None):
66  return getDisplay(frame, create=True).setMaskPlaneColor(name, color)
def setMaskPlaneColor
Definition: ds9.py:64
def lsst.afw.display.ds9.setMaskTransparency (   name,
  frame = None 
)

Definition at line 70 of file ds9.py.

70 
71 def setMaskTransparency(name, frame=None):
72  return getDisplay(frame, create=True).setMaskTransparency(name)
def setMaskTransparency
Definition: ds9.py:70
def lsst.afw.display.ds9.show (   frame = None)

Definition at line 76 of file ds9.py.

76 
77 def show(frame=None):
78  return getDisplay(frame, create=True).show()
def lsst.afw.display.ds9.zoom (   zoomfac = None,
  colc = None,
  rowc = None,
  frame = None,
  origin = afwImage.PARENT 
)

Definition at line 99 of file ds9.py.

99 
100 def zoom(zoomfac=None, colc=None, rowc=None, frame=None, origin=afwImage.PARENT):
101  disp = getDisplay(frame, create=True)
102 
103  disp.zoom(zoomfac)
104  disp.pan(colc, rowc, origin)

Variable Documentation

lsst.afw.display.ds9.getDisplay = _getDisplay

Definition at line 39 of file ds9.py.

lsst.afw.display.ds9.loaded = False

Definition at line 48 of file ds9.py.