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

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


Description

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

Arguments





Inputs

field

Field (case sensitive string or zero-based integer ID) for which to return the spectral window IDs.

allowed:

any

Default:

variant

Returns
intArray

Example

 
    msmd.open("my.ms")  
    # get the spectral window IDs associated with field "Fomalhaut"  
    spws = msmd.spwsforfield("Fomalhaut")  
    # get spectral window IDs associated with field ID 2  
    spws = msmd.spwsforfield(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