19 | 05 | 2021
 
 
Testing CASA installation PDF Print E-mail

First, see the requirements and instructions for downloading and installing the current CASA release

This test uses the files 3C277.1.CAL.SPLIT and 3C277.1_I.IMAGE It is purely to test the installation of CASA. These files are not needed later in the School. 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
CASA Version 3.0.2 (r11761)
followed by information about help and then the prompt e.g.
CASA <2>: 

Type or cut and paste the following. Wait for each plot to finish before going to the next stage.

importfits(fitsimage='3C277.1_I.IMAGE',imagename='3C277.1_test.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/ALMA/CASANOTES/MWA/3C277.1_test.image' All pixels fit in memory (262144 pixels).
importfits::::casa
importfits ##### End Task: importfits #####
importfits ##########################################

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

Now load some uv data

importuvfits(fitsfile='3C277.1.CAL.SPLIT',vis='3C277.1_test.ms')
giving a logger message like
importuvfits	##### Begin Task: importuvfits       #####
importuvfits::::casa
importuvfits::::casa
MSFitsInput Converting FITS file '3C277.1.CAL.SPLIT' to MeasurementSet '3C277.1_test.ms'
MSFitsInput Using tile shape [4, 1, 1024] for MERLIN2 with obstype=0
MSFitsInput Reading and writing 60915 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/ALMA/CASANOTES/MWA/3C277.1_test.ms: 60915 rows, 4061 times, 21 baselines
Creating new backup flag file called Original
importuvfits::::casa
importuvfits ##### End Task: importuvfits #####
importuvfits ##########################################
and leading to
ls
...
3C277.1_test.ms/
3C277.1_test.ms.flagversions/
At present there are two plotters; plotms will eventually replace plotxy completely. First test plotms
plotms(vis='3C277.1_test.ms',xaxis='uvdist',yaxis='amp',correlation='RR, LL',avgtime='300')
which should produce something like

Quit plotms (File menu tab) and then test plotxy

plotxy(vis='3C277.1_test.ms',xaxis='time',yaxis='phase',correlation='RR, LL',subplot=411,antenna='2&3~6',iteration='baseline')
giving

Note that if you have used plotxy, you might have to exit and restart casa before you can use plotms on the same file.

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 these files and the directories created by CASA) for the rest of the school!

Anita Richards June 2010