|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
calibrater.plotcal - Function
2.1.1 Plot a calibration table
Description
This function plots a calibration table either to a plotter or to a file.
The argument plottype can take the following values for all types of solutions:
- AMP
- Gain Amplitude vs. Time
- 1/AMP
- Inverse Gain Amplitude vs. Time (useful for comparing with classic AIPS)
- PHASE
- Gain Phase vs. Time
- RI
- Gain Real vs. Imaginary
- RLPHASE
- Right/Left Gain phase difference (if polarizations are R,L)
- XYPHASE
- X/Y Gain phase difference (if polarizations are X,Y)
The argument plottype can take the following values for D tables
- DAMP
- Cross-polarized Gain Amplitude vs. Time
- DPHASE
- Cross-polarized Gain Phase vs. Time
- DRI
- Cross-polarized Gain Real vs. Imaginary
The quality of the solutions can be examined with the following plottype choices:
- FIT
- Fit per spectral window
- FITWGT
- Fit weight per spectral window
- TOTALFIT
- Total fit
By default, all antennas (as specified in the antennas argument) will appear on the same plot. Separate plots (all with the same scale) for each antenna can be activated by setting multiplot=T. The multiplot argument only separates plots by antenna (not, e.g., by the field_id(s) specified in the fields argument). If multiplot=T, the nx and ny arguments can be used to specify the number of plots per page.
At the moment, only one polarization can be plotted per execution. This restriction will be relaxed in the near future.
For B solutions, the plotting will loop over timestamps (if more than one).
A hardcopy plot can be created by specifying the psfile argument (which is especially useful for batch processing when a display screen is not available). This will cause the plot to be written to a PostScript file which can be subsequently sent to a printer.
Arguments
Inputs |
| ||
antennas |
| Antennas to plot. Default is none.
| |
| allowed: | intArray |
|
| Default: |
| |
fields |
| Fields to plot. Default is none.
| |
| allowed: | intArray |
|
| Default: |
| |
spwids |
| Spectral windows id.’s to plot. Default is none.
| |
| allowed: | intArray |
|
| Default: |
| |
plottype |
| Plot type
| |
| allowed: | string |
|
| Default: | 1/AMP PHASE RLPHASE XYPHASE RI DAMP DPHASE DRI FIT FITWGT TOTALFIT AMP |
|
tablename |
| Calibration table name
| |
| allowed: | string |
|
| Default: |
|
|
polarization |
| Polarization to plot
| |
| allowed: | int |
|
| Default: | 1 |
|
multiplot |
| Turn on separate antenna plots
| |
| allowed: | bool |
|
| Default: | false |
|
nx |
| If multiplot=T, number of plots on horizontal axis
| |
| allowed: | int |
|
| Default: | 1 |
|
ny |
| If multiplot=T, number of plots on vertical axis
| |
| allowed: | int |
|
| Default: | 1 |
|
psfile |
| Name of output PostScript file to write plot to. Default
is to send plot to the screen.
| |
| allowed: | string |
|
| Default: |
|
|
bool
Example
cb.open(’ngc5921.ms’);
cb.plotcal(plottype=’PHASE’, tablename="gcal", antennas=[1,3], polarization=2);
cb.close();
__________________________________________________________________
More information about CASA may be found at the
CASA web page
Copyright © 2016 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