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

1.3.2 Get the name of the specified spws.


Description

Get the name of the specified spw(s).

Arguments





Inputs

spwids

Zero-based spw ID(s) for which to get the names (integer or interger array). Unspecified will return all spw names.

allowed:

any

Default:

variant

Returns
stringArray

Example

 
    msmd.open("my.ms")  
    # get the name for spws 8 and 2.  
    spw_names = msmd.namesforspws([8, 2])  
    # get all spw names  
    all_spw_names = msmd.namesforspws()  
    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