NRAO Home > CASA > CASA Toolkit Reference Manual
msplot.plotxy - Function

1.3.3 A generic plotting routine for Measurement sets.


Description

Plot X versus Y for all meaningful columns in the MAIN table of a MS and derived quantities.

  1. X and Y may be one of the followings:
    Antenna1, Antenna2, Feed1, Feed2, Field_id,
    ifr_number( not available yet ), Scan_number,
    Time, channel( not available yet ), uvdistance,
    frequency(not available yet ),u, v, w,
    weight, data, model, corrected, residual
    ( derived quantities will be listed later).
  2. iteration axis may be one of the followings:
    Antenna1, Antenna2, Feed1, Feed2, Field_id, Scan_number,
    Time, Spectral Window/Polarization_id( not available yet )

Arguments





Inputs

x

X-axis, a column name in measurement ests’ main table. Valid values are: antenna1, antenna2, aziumth, baseline, channel, corrected, data, elevation, feed1, feed2, field_id, frequency, hourangle, ifr_number, model, parallactic_angle, residual, scan_number, time, u, uvdist, v, velocity, w, and weight.

allowed:

string

Default:

uvdist

y

Y-axis, a column name in the measurment sets’ main table. Valid values are the same as the X-axis values.

allowed:

string

Default:

data

xcolumn

The column name in the measurement sets’ msin table. Valid values are: data, corrected, model, and residual.

allowed:

string

Default:

data

ycolumn

The column name in the measurement sets’ msin table. Valid values are: data, corrected, model, and residual.

allowed:

string

Default:

data

xvalue

String, needed if X or Y is data quantity: amp, phase, real, imag

allowed:

string

Default:

amp

yvalue

String, needed if X or Y is data quantity: amp, phase, real, imag

allowed:

string

Default:

amp

iteration

List of strings: Antenna1, Antenna2, Feed1, Feed2, Field_id, Scan_number, and Time. Ex: iteration over baselines : [’antenna1’,’antenna2’] Spectral Window/Polarization_id( not available yet )

allowed:

stringArray

Default:

Returns
bool

Example

 
# create a msplot tool.  
mp.open( msname=’./data/ngc7538.ms’);  
 
# select data. correlations are separated by a space:  
#    correlations=[’RR RL’]  
mp.setdata( spwNames=[’(0,1):[3-5]’],  correlations=[’RL’] );  
 
# Do an iterative plot over baselines, plotting uvdist vs. data for each antenna.  
mp.plotxy( X=’uvdist’, Y=’’, column=’data’, iteration=[’antenna1, ’antenna2’]);  

__________________________________________________________________


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