casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
task_exportuvfits.py
Go to the documentation of this file.
00001 import os
00002 from taskinit import *
00003 
00004 def exportuvfits(vis, fitsfile, datacolumn, field, spw, antenna, time,
00005                  avgchan, writesyscal, multisource, combinespw, 
00006                  writestation, padwithflags):
00007         
00008         casalog.origin('exportuvfits')
00009 
00010         try:
00011                 if ((type(vis)==str) & (os.path.exists(vis))):
00012                         ms.open( vis, lock=True )
00013                 else:
00014                         raise Exception, 'Visibility data set not found - please verify the name'
00015                 writesyscal=False #until ms syscal table defined
00016                 #start=-1 # redundant, use spw expr
00017                 #nchan=-1 # redundant, use spw expr
00018                 ms.tofits(fitsfile=fitsfile,
00019                           column=datacolumn,
00020                           field=field,
00021                           spw=spw,
00022                           baseline=antenna,
00023                           time=time,
00024                           #start=start,
00025                           #nchan=nchan,
00026                           width=avgchan,
00027                           writesyscal=writesyscal,
00028                           multisource=multisource,
00029                           combinespw=combinespw,
00030                           writestation=writestation,
00031                           padwithflags=padwithflags)
00032                 ms.close( )
00033         except Exception, instance:
00034                 raise Exception
00035 
00036