Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: measures.separation - Function Up: measures - Tool Previous: measures.riseset - Function


measures.posangle - Function



Package general
Module measures
Tool measures


get position angle of two directions


Synopsis
posangle(m1, m2)


Arguments

m1 in direction of source
    Allowed: direction measure
m2 in direction of other source
    Allowed: direction measure


Returns
position angle as angle quantity


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 pose and the other direction.



Example
- a:=dm.direction('j2000','0deg','70deg');
- b:=dm.direction('j2000','0deg','80deg'); 
- dm.posangle(a,b)
[value=-0, unit=deg] 
- dm.separation(a,b)
[value=10, unit=deg] 
- tim := dm.epoch('utc','today')			# set the time
- dm.doframe(tim)
T 
- pos := dm.observatory('ATCA')			# set where
- dm.doframe(pos)
T 
- dm.posangle(a,b)
[value=7.99647705, unit=deg]





next up previous contents index
Next: measures.separation - Function Up: measures - Tool Previous: measures.riseset - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01