NRAO Home > CASA > CASA Cookbook and User Reference Manual
4.5.1.1 Examples for plotcal

For example, to plot amplitude or phase as a function of time for ’G’ solutions (after rescaling by fluxscale for the NGC5921 “demo” data (see Appendix F.1),

default(’plotcal’)  
fontsize = 14.0     # Make labels larger  
markersize = 10.0   # Make dots bigger  
 
caltable = ’ngc5921.usecase.fluxscale’  
yaxis = ’amp’  
subplot = 211  
plotcal()  
 
yaxis = ’phase’  
subplot = 212  
plotcal()

The results are shown in Figure 4.5. This makes use of the subplot option to make multi-panel displays.


PIC

Figure 4.5: Display of the amplitude (upper) and phase (lower) gain solutions for all antennas and polarizations in the ngc5921 post-fluxscale table.

_________________________________________________________________________________________


Similarly, to plot amplitude or phase as a function of channel for ’B’ solutions for NGC5921:

default(’plotcal’)  
fontsize = 14.0     # Make labels larger  
markersize = 10.0   # Make dots bigger  
 
caltable = ’ngc5921.usecase.bcal’  
antenna = ’1’  
yaxis = ’amp’  
subplot = 311  
plotcal()  
 
yaxis = ’phase’  
subplot = 312  
plotcal()  
 
yaxis = ’snr’  
subplot = 313  
plotcal()

The results are shown in Figure 4.6. This stacks three panels with amplitude, phase, and signal-to-noise ratio. We have picked antenna=’1’ to show.


PIC

Figure 4.6: Display of the amplitude (upper), phase (middle), and signal-to-noise ratio (lower) of the bandpass ’B’ solutions for antenna=’0’ and both polarizations for ngc5921. Note the falloff of the SNR at the band edges in the lower panel.

_________________________________________________________________________________________


For example, to show 6 plots per page of ’B’ amplitudes on a 3 × 2 grid:

   default(’plotcal’)  
   fontsize = 12.0     # Make labels just large enough  
   markersize = 10.0   # Make dots bigger  
 
   caltable = ’ngc5921.usecase.bcal’  
   yaxis = ’amp’  
   subplot = 231  
   iteration = ’antenna’  
 
   plotcal()

See Figure 4.7 for this example. This uses the iteration parameter.


PIC

Figure 4.7: Display of the amplitude of the bandpass ’B’ solutions. Iteration over antennas was turned on using iteration=’antenna’. The first page is shown. The user would use the Next button to advance to the next set of antennas.

_________________________________________________________________________________________



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