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

1.3.2 Get an array of the unique spectral window IDs for the specified intent.


Description

Get an array of the unique spectral window IDs for the specified intent. The ”*” character matches any number of characters from all character classes.

Arguments





Inputs

intent

Intent (case sensitive) for which to return the spectral window IDs.

allowed:

string

Default:

Returns
intArray

Example

 
    msmd.open("my.ms")  
    # get the spectral window IDs associated with "MY COOL INTENT"  
    spws = msmd.spwsforintent("MY COOL INTENT")  
    # got all the spw IDs associated with all intents which contain ’WVR’  
    scan_numbers = msmd.spwsforintent("*WVR*")  
    msmd.done()  
    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