NRAO Home > CASA > CASA Toolkit Reference Manual
sd.scantable.get_direction - Function

5.1.2 Get a list of positions on the sky as a string
Description

Get a list of Positions on the sky (direction) for the observations. Return a string for each integration in the scantable.

To get float value for positions, use get_directionval.

Arguments





Inputs

row

Row no of integration

allowed:

integer

Default:

-1 (all rows)





Returns
string, string array

Example

   s=sd.scantable(’OrionS_rawACSmod_cal’,average=False)  
   # get_direction() returns string expression of position  
   s.get_direction(0)  
   ’05:35:13.5 -05.24.08.2’  
   # s.get_directionval() returns float value of position  
   s.get_directionval(0)  
   [1.4626913601468896, -0.0942875343295448]


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