NRAO Home > CASA > CASA Toolkit Reference Manual
msmetadata.nbaselines - Function

1.3.2 Get the number of baselines represented in the main MS table.


Description

Get the number of unique baselines (antenna pairs) represented in the main MS table. This can, in theory, be less than n*(n-1)/2 (n being the number of antennas in the ANTENNA table), if data for certain baselines are not included in the main MS table. Autocorrelation ”baselines” are included in this count if ac=True.

Arguments





Inputs

ac

Include auto-correlation ”baselines”?

allowed:

bool

Default:

false

Returns
int

Example

 
    msmd.open("my.ms")  
    number_of_baselines = msmd.nbaselines()  
    number_of_baselines_including_ac = msmd.nbaselines(True)  
    msmd.done()  

__________________________________________________________________


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