casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
ngc5921uvcontsub2.py
Go to the documentation of this file.
00001 import sys
00002 import os
00003 import string
00004 from locatescript import locatescript
00005 import inspect
00006 
00007 a=inspect.stack()
00008 stacklevel=0
00009 for k in range(len(a)):
00010     if (string.find(a[k][1], 'ipython console') > 0):
00011         stacklevel=k
00012         break
00013 gl=sys._getframe(stacklevel).f_globals
00014 
00015 def description():
00016     return "NGC 5921, VLA D-array, import, export, flagging, calibration, imaging, image statistics"
00017 
00018 def run():
00019     lepath=locatescript('ngc5921_uvcontsub2.py')
00020     print 'Script used is ',lepath
00021     gl['regstate']=True
00022     execfile(lepath, gl)
00023     print 'regstate =', gl['regstate']
00024     if not gl['regstate']:
00025         raise Exception, 'regstate = False'
00026 
00027 ###return the images that will be templated and compared in future runs
00028     return ['ngc5921uvcontsub2/ngc5921.clean.image']
00029 
00030 def data():
00031     ### return the data files that is needed by the regression script
00032     return []