|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
measures.cometdist - Function
1.4.1 get the distance of the current comet in the current frame
Description
cometdist returns the distance in AU of the current comet in the current
frame, as a quantity. It will return -1 AU on failure!
Arguments
Inputs |
| ||
record
Example
print "\t----\t cometdist Ex 1 \t----"
# Directory with several Solar System ephemerides for setjy.
cometdir = os.getenv("CASAPATH").split()[0] + "/data/ephemerides/JPL-Horizons/"
me.framecomet(cometdir + "Ganymede_55438-56292dUTC.tab")
# Out[5]: True
me.doframe(me.epoch("utc", "2011/01/03/17:00:00"))
me.doframe(me.observatory("ALMA"))
gandist = me.cometdist()
print gandist
# {’value’: 5.1241088343892631, ’unit’: ’AU’}
__________________________________________________________________
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