Skip to content

Instantly share code, notes, and snippets.

@Chandler
Last active December 29, 2018 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chandler/e7c7701b41899d5bbbf27ac294680651 to your computer and use it in GitHub Desktop.
Save Chandler/e7c7701b41899d5bbbf27ac294680651 to your computer and use it in GitHub Desktop.
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