from casatasks import casalog
def exportuvfits( vis, fitsfile, datacolumn, field, spw, antenna, time,
writesyscal, multisource, combinespw,
writestation, padwithflags, overwrite ):
casalog.origin('exportuvfits')
if ((type(vis)==str) & (os.path.exists(vis))):
myms.open( vis, lock=True )
raise ValueError('Visibility data set not found - please verify the name')
res = myms.tofits( fitsfile=fitsfile, column=datacolumn, field=field, spw=spw,
baseline=antenna, time=time, writesyscal=writesyscal,
multisource=multisource, combinespw=combinespw,
writestation=writestation, padwithflags=padwithflags,
raise Exception("exportuvfits failed")