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

1.3.2 Get a dictionary which maps field IDs to spectral window IDs.


Description

Get a dictionary which maps field IDs to spectral window IDs. The field IDs are keys in the returned dictionary. To access a particular element, one must ensure the key is a string.

Arguments





Returns
record

Example

 
    msmd.open("my.ms")  
    # get the map of field IDs to spw IDs  
    field_to_spw_map = msmd.spwsforfields()  
    spws_for_field_5 = field_to_spw_map[str(5)]  
    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