Module irafinst
source code
module irafinst.py - Defines bare-bones functionality needed when IRAF
is not present. This is NOT a replacement for any major parts of IRAF.
For now, in general, we assume that IRAF exists until we are told
otherwise.
Obviously, this module should refrain as much as possible from
importing any IRAF related code, since this is heavily relied upon in
non-IRAF situations.
$Id: irafinst.py 1136 2010-01-08 03:37:39Z sontag $
|
|
|
|
|
tmpParFile(fname)
Create a tmp file for the given par file, and return the filename. |
source code
|
|
|
|
|
|
|
getNoIrafClFor(fname,
useTmpFile=False)
Generate CL file text on the fly when missing IRAF, return the full
text sting. |
source code
|
|
|
|
NO_IRAF_PFX = '*no~iraf*/'
|
|
|
EXISTS = True
|
|
|
_tmp_dir = None
|
|
|
__package__ = 'pyraf'
|
Imports:
os,
shutil,
sys,
tempfile
|
Try to cleanup. Don't complain if the dir isn't there.
|
|
Utility function for writing our tmp files. Return the full fname.
|
|
Generate CL file text on the fly when missing IRAF, return the full
text sting. If useTmpFile, then returns the temp file name.
|