Testing CASA installation

First, see the requirements and instructions for downloading and installing CASA. We recommend that you use the Latest Release . If you encounter problems, please email alma@jb.man.ac.uk .

This test uses the files 0200+539.UVDATA and 0200+539.ICL001. It is purely to test the installation of CASA. Please do the rest of your work in a different directory, or delete the files created here, to avoid conflicts.

If the files are not in your present working directory, enter the path to its location before the file name in importuvfits and importfits below. Start casa by typing

casapy
(or by any method you have adopted). You should see something similar to this (with the current CASA version):
CASA Version 3.2.1 (r15198)
followed by information about help and then the prompt e.g.
CASA <2>: 

and a Logger window should appear. Type or cut and paste the following. Wait for each plot to finish before going to the next stage.

importfits(fitsimage='0200+539.ICL001',imagename='0200+539.image')
This should produce a message in the logger like
casa	CASA Version 3.0.2 (release  build #11761)
casa	  Built on: Wed 2010/06/10 16:18:35 UTC
 	importfits::::casa
importfits	##########################################
importfits	##### Begin Task: importfits         #####
 	importfits::::casa
importfits	Created image of shape [512, 512, 1, 1]
importfits	Copy FITS file to '/home/amsr/scratch/CASA/0200+529.image' All pixels fit in memory (262144 pixels).
 	importfits::::casa
importfits	##### End Task: importfits           #####
importfits	##########################################

and if you type
ls
you should see
0200+539.image/ 
listed.
Now try viewing it
viewer(infile='0200+539.image',zoom=3)
which should give you something like

Now load some uv data

importuvfits(fitsfile='0200+539.UVDATA',vis='0200+539.ms')
You will get a few warnings which you can ignor, the main information in the logger should be:
importuvfits	##### Begin Task: importuvfits       #####
 	importuvfits::::casa
 	importuvfits::::casa
MSFitsInput	Converting FITS file '0200+539.UVDATA' to MeasurementSet '0200+539.ms'
MSFitsInput	Using tile shape [4, 1, 32768] for MERLIN2 with obstype=0
MSFitsInput	Reading and writing 39900 visibility groups
MSFitsInput	Found binary table of type AIPS FQ  following data
MSFitsInput	Found binary table of type AIPS AN  following data
MSFitsInput	Found binary table of type AIPS SU  following data
	attached MS /home/amsr/scratch/CASA/0200+539.ms: 3900 rows, 2660 times, 21 baselines
 	Creating new backup flag file called Original
 	importuvfits::::casa
importuvfits	##### End Task: importuvfits         #####
importuvfits	##########################################

and leading to
ls
...
0200+539.ms/              
0200+539.ms.flagversions/ 
Test plotms
plotms(vis='0200+539.ms',field='0200+539',xaxis='uvdist',yaxis='amp',correlation='RR, LL',avgtime='300')
which should produce something like

Quit plotms (File menu tab) and then test the CASA plotter

plotants(vis='0200+539.ms')
giving

This is similar to plotcal, used to plot calibration tables.

To exit CASA, just type control-D or exit()

If you get some warnings but all the above seem OK, then probably there is nothing to worry about. If anything fails, check that you have the input files in the right place, that you do not already have directories with the names of the outputs, and that you have enough disc space. Read any error messages in the terminal or the logger carefully. If that does not help, check that your laptop meets the minimum requirements. If it does, save or take a screenshot of any error messages and we will try to help. If you think your laptop might not be up to it, please try and get your sysadmin to give you an upgrade if possible.

Don't forget to work in a different directory (or delete the files and directories created by CASA) for the rest of the school!

Anita Richards June 2010