3 ms·
Show HN: A JSON API for NASA HORIZONS Planetary Ephemeris Tables
I don't always all-caps, but when I do, it's because every word is an acronym.
The NASA HORIZONS[1] system is a telnet service that provides planetary data and ephemeris tables, which are basically coordinate-time plots for celestial bodies.
It's pretty archaic and somewhat difficult to use, especially since it just dumps out text tables and you have to parse it to do anything with it.
Some projects, e.g. KDE Marble, use it as a data source and typically just consume it with a little procedural code to get what they need.
I wanted to provide a full-fledged library for it so that you can easily mash it up in a web app, so I started a Gem called Tengai[2]. It has a very minimal set of features right now, but I have a lot of ideas and I'd appreciate feedback (and forking!).
This little Sinatra app[3] uses Tengai to provide a JSON interface to the ephemerides. Check it out:
http://horizons.herokuapp.com/bodies/499/ephemeris?start_time=2013-3-23%2000:00:00&stop_time=2013-3-23%2023:59:00&interval=720
[1]: http://ssd.jpl.nasa.gov/?horizons
[2]: https://github.com/zacstewart/tengai
[3]: https://github.com/zacstewart/restful-horizons
- shazzy 14y agoThis is a great idea. I am sure this would be really useful to astrophys undergrads. Last time I need to use it for a project I had to make a python script download from their telnet service.
- eloisius 14y agoThanks! I know how old code gets lost under the couch and all, but if you have it hanging around, I'd love to see it.