Module irafexecute
source code
irafexecute.py: Functions to execute IRAF connected subprocesses
$Id: irafexecute.py 1463 2011-06-24 22:58:30Z stsci_embray $
|
|
|
|
|
IrafExecute(task,
envdict,
stdin=None,
stdout=None,
stderr=None,
stdgraph=None)
Execute IRAF task (defined by the IrafTask object task) using the
provided envionmental variables. |
source code
|
|
|
|
Asc2IrafString(ascii_string)
translate ascii to IRAF 16-bit string format |
source code
|
|
|
|
Iraf2AscString(iraf_string)
translate 16-bit IRAF characters to ascii |
source code
|
|
|
|
IPC_PREFIX = 'P\x02'
|
|
|
IPCOUT = 'IPC$IPCIO-OUT'
|
|
|
IPCDONEMSG = '# IPC$IPCIO-FINISHED\n'
|
|
|
isBigEndian = False
|
|
|
stdimagekernel = gki.GkiController()
|
|
|
processCache = _ProcessCache()
|
|
|
_p_par_get = '\\s*=\\s*(?P<gname>[a-zA-Z_$][\\w.]*(?:\\[\\d+\\...
|
|
|
_p_par_set = '(?P<sname>[a-zA-Z_][\\w.]*(?:\\[\\d+\\])?)\\s*=\...
|
|
|
_re_msg = re.compile(r'(?P<par_get>\s*=\s*(?P<gname>[a-zA-Z_\$...
|
|
|
_p_curpack = '_curpack(?:\\s.*|)\\n'
|
|
|
_p_stty = 'stty.*\\n'
|
|
|
_p_sysescape = '!(?P<sys_cmd>.*)\\n'
|
|
|
_re_clcmd = re.compile(r'(?P<curpack>_curpack(?:\s.*|)\n)|(?P<...
|
|
|
__package__ = 'pyraf'
|
Imports:
os,
re,
signal,
string,
struct,
sys,
time,
types,
numpy,
cStringIO,
irafutils,
IrafTask,
subproc,
filecache,
wutil,
iraf,
gki,
irafukey,
irafgwcs
|
Get executable pathname.
Arg may be a string with the path, an IrafProcess, an IrafTask, or a
string with the name of an IrafTask.
|
_p_par_get
- Value:
'\\s*=\\s*(?P<gname>[a-zA-Z_$][\\w.]*(?:\\[\\d+\\])?)\\s*\\n'
|
|
_p_par_set
- Value:
'(?P<sname>[a-zA-Z_][\\w.]*(?:\\[\\d+\\])?)\\s*=\\s*(?P<svalue>.*)\\n'
|
|
_re_msg
- Value:
re.compile(r'(?P<par_get>\s*=\s*(?P<gname>[a-zA-Z_\$][\w\.]*(?:\[\d+\]
)?)\s*\n)|(?P<par_set>(?P<sname>[a-zA-Z_][\w\.]*(?:\[\d+\])?)\s*=\s*(?
P<svalue>.*)\n)')
|
|
_re_clcmd
- Value:
re.compile(r'(?P<curpack>_curpack(?:\s.*|)\n)|(?P<stty>stty.*\n)|(?P<s
ysescape>!(?P<sys_cmd>.*)\n)')
|
|