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

1.3.2 Get a dictionary of which maps spw ID to scan numbers for the specified observation ID and array ID.


Description

Get a dictionary of which maps spw ID to scan numbers for the specified observation ID and array ID. The keys (spectral window IDs) 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 spw - scan map for arrayID 1 and obsID 2  
    spw_to_scans = msmd.scansforspws(arrayid=1, obsid=2)  
    # access the scans associated with spw ID 2  
    spw_to_scans2 = spw_to_scans["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