casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
uvcontsub2.py
Go to the documentation of this file.
00001 #
00002 # This file was generated using xslt from its XML file
00003 #
00004 # Copyright 2009, Associated Universities Inc., Washington DC
00005 #
00006 import sys
00007 import os
00008 from  casac import *
00009 import string
00010 from taskinit import casalog
00011 #from taskmanager import tm
00012 import task_uvcontsub2
00013 def uvcontsub2(vis='', field='', fitspw='', combine='', solint='int', fitorder=0, spw='', want_cont=False):
00014 
00015         """Temporarily a clone of uvcontsub
00016   
00017         uvcontsub2 has been renamed to uvcontsub.  For now uvcontsub2 is an
00018         alias for uvcontsub, but that may change.
00019         
00020         For parameter descriptions, please see the help of uvcontsub.
00021 
00022 
00023         """
00024 
00025 #
00026 #    The following is work around to avoid a bug with current python translation
00027 #
00028         mytmp = {}
00029 
00030         mytmp['vis'] = vis
00031         mytmp['field'] = field
00032         mytmp['fitspw'] = fitspw
00033         mytmp['combine'] = combine
00034         mytmp['solint'] = solint
00035         mytmp['fitorder'] = fitorder
00036         mytmp['spw'] = spw
00037         mytmp['want_cont'] = want_cont
00038         pathname='file:///'+os.environ.get('CASAPATH').split()[0]+'/share/xml/'
00039         trec = casac.utils().torecord(pathname+'uvcontsub2.xml')
00040 
00041         casalog.origin('uvcontsub2')
00042         if trec.has_key('uvcontsub2') and casac.utils().verify(mytmp, trec['uvcontsub2']) :
00043             result = task_uvcontsub2.uvcontsub2(vis, field, fitspw, combine, solint, fitorder, spw, want_cont)
00044 
00045         else :
00046           result = False
00047         return result