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

1.3.2 Get the names of the antennas for the specfied zero-based antenna IDs.


Description

Get the name of the antenna for the specfied zero-based antenna ID. If antennaids is not specified, all antenna names are returned.

Arguments





Inputs

antennaids

Zero-based antenna IDs (int or int array) for which to get the antenna names.

allowed:

any

Default:

variant -1

-1

Returns
stringArray

Example

 
    msmd.open("my.ms")  
    # get the name associated with antenna ID 31  
    antenna_name = msmd.antennanames(31)[0]  
    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