NRAO Home > CASA > CASA Cookbook and User Reference Manual
2.2.4.1 Import using importuvfits

To import UVFITS format data into CASA, use the importuvfits task:

CASA <1>: inp(importuvfits)  
fitsfile            =         ’’  # Name of input UVFITS file  
vis                 =         ’’  # Name of output visibility file (MS)  
antnamescheme       =      ’old’  # For VLA only; ’new’ or ’old’; ’VA04’ or ’04’ for VLA ant 4  
async               =      False  # if True run in the background, prompt is freed

This is straightforward, since all it does is read in a UVFITS file and convert it as best it can into a MS.

For example:

   importuvfits(fitsfile=’NGC5921.fits’,vis=’ngc5921.ms’)

ALERT: CARMA data can be loaded into CASA. However,

tb.open("c0104I/ANTENNA",nomodify=False)  
namelist=tb.getcol("NAME").tolist()  
for i in range(len(namelist)):  
name = ’CA’+namelist[i]  
print ’ Changing ’+namelist[i]+’ to ’+name  
namelist[i]=name  
 
tb.putcol("NAME",namelist)  
tb.close()


More information about CASA may be found at the CASA web page

Copyright © 2010 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search