from parameter_check import *
def plotcal(caltable=None,xaxis=None,yaxis=None,
poln=None,field=None,antenna=None,spw=None,timerange=None,
subplot=None,overplot=None,clearpanel=None,iteration=None,
plotrange=None,showflags=None,
plotsymbol=None,plotcolor=None,markersize=None,fontsize=None,
showgui=None,figfile=None):
"""Plot calibration solutions:
An all-purpose plotter for calibration results. The values for all
calibration solutions (G, T, GSPLINE, B, BPOLY, D) can be displayed
for a variety of polarization combinations and calibrations. The
solutions may be iterated through antennas/spw/fields during one execution.
The plotter permits zooming, listing and flagging of solutions, although
the implications of flagged solutions are not yet made.
caltable -- Name of input calibration table
default: none; example: caltable='ngc5921.gcal'
The type of calibration table is determined automatically.
xaxis -- Value to plot on the x axis
Options: 'time','chan','freq','antenna','amp','phase','real','imag','snr'
Default: cal type dependent, usually 'time'
yaxis -- Value to plot ong the y-axis
Options: 'amp','phase','real','imag','snr','antenna'
Default: cal type dependent, usually 'amp'
poln -- Polarization (or combination) to plot
default: '' (RL); all polarizations
Options: '' = ('RL'),'R','L','XY','X','Y',
'/' --> form complex poln ratio
(amp ratio and phase difference)
field -- Select field using field id(s) or field name(s).
['go listobs' to obtain the fieldt id's or names]
If field string is a non-negative integer, it is assumed a
field index, otherwise it is assumed a field name
field='0~2'; field ids 0,1,2
field='0,4,5~7'; field ids 0,4,5,6,7
field='3C286,3C295'; field named 3C286 and 3C295
field = '3,4C*'; field id 3, all names starting with 4C
antenna -- Antenna selection (baseline syntax ignored)
example: antenna='1,3~5' means antenna
spw -- Select spectral window (channel syntax ignored, except for D)
default: ''=all spectral windows
spw='0~2,4'; spectral windows 0,1,2,4
spw='<2'; spectral windows less than 2
timerange -- Time selection
example: timerange='1995/04/13/09:15:00~1995/04/13/09:25:00'