Package pyraf :: Module irafimcur
[hide private]
[frames] | no frames]

Module irafimcur

source code

irafimcur.py: image cursor interaction

Read the cursor position from stdimage image display device (DS9, SAOIMAGE or XIMTOOL) and return a string compatible with IRAF's imcur parameter.

$Id: irafimcur.py 1298 2010-11-12 16:22:35Z sontag $

Functions [hide private]
 
_getDevice(displayname=None)
Get device object for this display
source code
 
imcur(displayname=None)
Read image cursor and return string expected for IRAF's imcur parameter
source code
Variables [hide private]
  _devices = {}
  __package__ = 'pyraf'

Imports: sys, string, irafutils, Verbose, IrafError, irafdisplay, gki, gwm, iraf


Function Details [hide private]

imcur(displayname=None)

source code 

Read image cursor and return string expected for IRAF's imcur parameter

If key pressed is colon, also prompts for additional string input. Raises EOFError if ^D or ^Z is typed and IrafError on other errors. The optional display argument specifies the name of the display to use (default is the display specified in stdimage).