Last active
December 29, 2018 04:45
-
-
Save Chandler/e7c7701b41899d5bbbf27ac294680651 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from astroquery.jplhorizons import Horizons | |
pluto = 999 | |
jupiter = 599 | |
mu69 = 486958 | |
new_horizons = -98 | |
paths = [] | |
for body_name in [jupiter, pluto, new_horizons, mu69]: | |
obj = \ | |
Horizons( | |
id=body_name, | |
id_type="majorbody", | |
epochs={ | |
'start':'2006-1-20', | |
'stop':'2018-12-28', | |
'step':'10d' | |
} | |
) | |
paths.append([[i["x"], i["y"], i["z"]] for i in obj.vectors()]) | |
print paths |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment