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

1.3.2 Get the spws associated with the specified baseband or dictionary that maps baseband to spws.


Description

Get the spectral windows associated with the specified baseband or dictionary that maps baseband to spectral windows.

Arguments





Inputs

baseband

Baseband number. If <0, return a dictionary mapping basebands to spws.

allowed:

int

Default:

-1

sqldmode

If ”include”, include SQLD windows, if ”exclude”, exclude SQLD windows, if ”only”, include only SQLD windows. Case insenstive, inimum match honored.

allowed:

string

Default:

include

Returns
variant

Example

 
    msmd.open("my.ms")  
    # get the spectral window IDs associated with all the basebands in this dataset  
    basebandtospwdict = msmd.spwsforbasebands()  
    # get an array of spws associated with baseband 2.  
    spwsforbb2 = msmd.spwsforbasebands(2)  
    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