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

1.3.2 Get a map of source IDs to fields.


Description

Get a map of source IDs to fields. The keys (source IDs) will be strings.

Arguments





Inputs

asnames

If true, return the field names. If false, return the zero-based field IDs.

allowed:

bool

Default:

false

Returns
record

Example

 
    msmd.open("my.ms")  
    # get the source to field name map  
    sources_to_fields = msmd.fieldsforsources(True)  
    # access the field names for source 1  
    field = sources_to_fields["1"]  
    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