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

1.3.2 Get the name of the specified field.


Description

Get the name of the specified field.

Arguments





Inputs

fieldids

Zero-based field IDs for which to get the names (integer or interger array). Unspecified will return all field names.

allowed:

any

Default:

variant

Returns
stringArray

Example

 
    msmd.open("my.ms")  
    # get the name for field 8 and 2.  
    field_names = msmd.namesforfields([8, 2])  
    # get all field names  
    all_field_nams = namesforfields()  
    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