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

1.3.2 Get the values of the DIRECTION column from the SOURCE table.


Description

Get the values of the DIRECTION column from the SOURCE table. Returns a dictionary in which the keys are the associated row numbers, represented as strings, in the SOURCE table. Each value in the returned dictionary is a valid direction measure.

Arguments





Returns
record

Example

 
    msmd.open("my.ms")  
    # get DIRECTION column values from the SOURCE table  
    sourcedirs = msmd.sourcedirs()  
    msmd.done()  
    # the direction associated with zero-based row number 10  
    dir10 = sourcedirs["10"]  
    # convert it to B1950, using the measure interface  
    dir10_B1950 = me.convert(dir10, "B1950")  

__________________________________________________________________


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