-
Notifications
You must be signed in to change notification settings - Fork 15
Description
It seems that the telnet interface to JPL Horizons has changed a bit, so the prompts that horizons.py is looking for (via pexpect) when getting an SPK for a comet or asteroid aren't working.
Sample error message, while trying to retrieve comet 67P/Churyumov-Gerasimenko:
$ python horizons.py 900647
('900647_pexpect.bsp', 0, ['Horizons lookup FAILED status=1, URL=,?,: \r\n \r\r\nHorizons> SPK\r\n \r\r\n>EXACT< name search [SPACE sensitive]:\r\r\n NAME = SPK;\r\r\nContinue [ =yes, n=no, ? ] : ', 'SPK retrieval not attempted', 'SPICE Body ID not attempted'])
In addition, I don't see any way to download a binary SPK any more.
A first cut at a fix is in this pull request. It now gets an ASCII transfer file (comet_pexpect.xfr) now, rather than comet_pexpect.bsp
$ python horizons.py 900647
('900647_pexpect.xfr', -1, ['Horizons lookup status=0, URL=ftp://ssd.jpl.nasa.gov/pub/ssd/wld29182.15', '### Retrieved SPK (URL=ftp://ssd.jpl.nasa.gov/pub/ssd/wld29182.15) as 900647_pexpect.xfr', '### Retrieved SPICEID -1; status=SUCCESS'])