Go to the documentation of this file.00001 import sys
00002 import os
00003 import string
00004 from locatescript import copydata
00005 from locatescript import locatescript
00006 import inspect
00007
00008 a=inspect.stack()
00009 stacklevel=0
00010 for k in range(len(a)):
00011 if (string.find(a[k][1], 'ipython console') > 0):
00012 stacklevel=k
00013 break
00014 gl=sys._getframe(stacklevel).f_globals
00015
00016 def description():
00017 return "VLA, NGC 2403 HI line data, import, flagging, calibration, imaging"
00018
00019 def data():
00020
00021 return ['AS649_1','AS649_2','AS649_3','AS649_4']
00022
00023 def run(fetch=False):
00024
00025
00026 if fetch:
00027 for f in data( ):
00028 copydata( f, os.getcwd( ) )
00029
00030
00031 lepath=locatescript('ngc2403_tutorial_regression.py')
00032 print 'Script used is ',lepath
00033 gl['regstate']=True
00034 execfile(lepath, gl)
00035 print 'regstate =', gl['regstate']
00036 if not gl['regstate']:
00037 raise Exception, 'regstate = False'
00038
00039
00040
00041
00042 return ['n2403.tutorial.final.clean.image']