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.addxvalue - Function Up: measures - Tool Previous: measures.posangle - Function


measures.separation - Function



Package general
Module measures
Tool measures


get separation angle between two directions


Synopsis
separation(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
separation will give the separation of a direction from another as an angle.



Example
- a:=dm.direction('j2000','0deg','70deg');
- b:=dm.direction('j2000','0deg','80deg'); 
- 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 
- c:=dm.measure(b,'azel')                     # try with different type
- dm.separation(a,c)
[value=10, unit=deg]





next up previous contents index
Next: measures.addxvalue - Function Up: measures - Tool Previous: measures.posangle - 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