I searched a lot for a javascript library or a REST API to access full functionalities of powerful NASA Horizons tool, but with no luck, so I am trying to write my own interface, to replace the very simple one provided by NASA, which only allows setting 6 parameters out of 40.

My page does not perform any check on input: all you write is sent as-is to Horizons server, but I tried at least to take into account dependencies of some parameters from others, as per Horizons manual.

Page is not yet complete, but at least now it is possible to get the results in the same window of the query, and also to get with just one click:

  • full list of available spacecrafts
  • full list of available solar system bodies
  • full list of available earth observatories
  • full list of available output quantities, with full description of each one

About this last point, I am looking for some help: some of these quantities are quite complex, and I would like to add a picture explaining each one of them; I found some pictures on wikipedia, but was not able to find pictures for many others, so some help in drawing from scratch such pictures would be appreciated.

I prepared three images, now it's "just" a matter of associating quantities numbers to angle/segments in the images...

My page: http://win98.altervista.org/space/exploration/NHUGUI.html

Output quantities: http://win98.altervista.org/space/exploration/quantities.html

Image 2 Image 3

  • $\begingroup$ Horizons data doesn't support API access, as an FYI. $\endgroup$ – Magic Octopus Urn Oct 28 '19 at 12:43
  • $\begingroup$ I wrote my own "API", if you want to call it like that, which turns user's selection into proper URL request and returns a structured javascript object. $\endgroup$ – jumpjack Oct 28 '19 at 12:45
  • 1
    $\begingroup$ apart from this, question is not "where can I find an API?" but "is anybody able to help me drawing some images?" $\endgroup$ – jumpjack Oct 28 '19 at 12:46
  • $\begingroup$ I understand. I mean that you "using it as an API" is also frowned upon by NASA and you may or may not be blocked at any given time. No need for the sarcasm, it won't get you answers. Apart from this, if the question isn't about the Horizons data and is solely about Programming in JavaScript then, imo, it isn't on topic here at all and should be migrated to a programming SE. $\endgroup$ – Magic Octopus Urn Oct 28 '19 at 13:27
  • 2
    $\begingroup$ @MagicOctopusUrn I didn't read any sarcasm in jumpjack's comment, for what it's worth. Also, this is not a programming question, but a question about creating diagrams related to solar-system bodies using information provided by a NASA tool. The information about the program is peripheral. $\endgroup$ – called2voyage Oct 28 '19 at 14:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.