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
00017 def description():
00018 return "Reduces B- and C-configuration VLA continuum polarimetry data at 5 GHz on 3C129 and calibrators, and images the dual-config 3C129 in full polarization"
00019
00020 def data():
00021
00022 return ['AT166_1', 'AT166_2', 'AT166_3']
00023
00024 def run( fetch=False ):
00025
00026
00027 if fetch:
00028 for f in data( ):
00029 copydata( f, os.getcwd( ) )
00030
00031
00032 lepath=locatescript('3c129_tutorial_regression.py')
00033 print 'Script used is ',lepath
00034 gl['regstate']=True
00035 execfile(lepath, gl)
00036 print 'regstate =', gl['regstate']
00037 if not gl['regstate']:
00038 raise Exception, 'regstate = False'
00039
00040
00041
00042 return ['3C129BC.core.I']