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

1.3.2 Get a dictionary of which maps scan number to spectral windows for the specified observation ID and array ID.


Description

Get a dictionary of which maps scan number to spectral windows for the specified observation ID and array ID. The keys (scan numbers) will be strings. obsid and arrayid must both be non-negative.

Arguments





Inputs

obsid

Observation ID. Must be non-negative.

allowed:

int

Default:

0

arrayid

Array ID. Must be non-negative.

allowed:

int

Default:

0

Returns
record

Example

 
    msmd.open("my.ms")  
    # get the scan - spw map for arrayID 1 and obsID 2  
    scan_to_spws = msmd.spwsforscans(arrayid=1, obsid=2)  
    # access the spws associated with scan 2  
    spws_for_scan2 = scan_to_spws["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