nraonrao
 
NRAO Home > CASA > CasaRef
measures.separation - Function

1.3.1 get separation angle between two directions
Description

separation will give the separation of a direction from another as an angle.

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 separation Ex 1 \t----"  
a=me.direction(’j2000’,’0deg’,’70deg’)  
b=me.direction(’j2000’,’0deg’,’80deg’)  
print me.separation(a,b)  
#{’value’: 9.9999999999999893, ’unit’: ’deg’}  
tim = me.epoch(’utc’,’today’)              # set the time  
print me.doframe(tim)  
#True  
pos = me.observatory(’ATCA’)               # set where  
print me.doframe(pos)  
#True  
c=me.measure(b,’azel’)                     # try with different type  
print me.separation(a,c)  
#{’value’: 10.000000000062277, ’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.