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

1.3.2 Get the zero-based antenna ID for the specfied antenna name.


Description

Get the zero-based antenna IDs for the specfied antenna names and the specified diameter range. An array of unique IDs in order of the specified names is returned. If no names and no diameter range is specified, all IDs are returned.

Arguments





Inputs

name

Antenna names (string or string array) for which to get the corresponding IDs. Note that * matches any number of characters of all character classes.

allowed:

any

Default:

variant

mindiameter

Minimum antenna diameter, expressed as a quantity.

allowed:

any

Default:

variant 0m

maxdiameter

Maximum antenna diameter, expressed as a quantity.

allowed:

any

Default:

variant 1pc

Returns
intArray

Example

 
    msmd.open("my.ms")  
    # get the zero-based antenna IDs for the antenna named "VB2"  
    antenna_id = msmd.antennaids("VB2")[0]  
    # get the zero-based antenna IDs for all antennas with diameters between 9m and 11m  
    antenna_ids = msmd.antennaids(mindiameter="9m", maxdiameter=qa.quantity("11m"))  
    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