measures.posangle - Function

1.3.1 get position angle of two directions
Description

posangle will give the position angle from a direction to another. I.e. the angle in a direction between the direction to the North pole and the other direction.

Arguments





Inputs

m1

direction of source (direction measure)

allowed:

any

Default:

record

m2

direction of other source (direction measure)

allowed:

any

Default:

record

Returns
anyrecord

Example

"""  
#  
print "\t----\t posangle Ex 1 \t----"  
a=me.direction(’j2000’,’0deg’,’70deg’)  
b=me.direction(’j2000’,’0deg’,’80deg’)  
print me.posangle(a,b)  
#{’value’: -0.0, ’unit’: ’deg’}  
print me.separation(a,b)  
#{’value’: 9.9999999999999893, ’unit’: ’deg’}  
tim=me.epoch(’utc’,’today’)  
print me.doframe(tim)  
#True  
pos=me.observatory(’ATCA’)  
print me.doframe(pos)  
#True  
print me.posangle(a,b)  
#{’value’: -0.0, ’unit’: ’deg’}  
#  
"""

Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu

Copyright © 2008 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

Updated daily during alpha development.