I am not acquainted with astronomy at all. I am developing an computer application which works on TLE data from space-track.org, and calculates things based on them. I need to find distance between two satellites from their TLE data. Now, I know there is an exact same question in this link:- How to calculate distance between two satellites using their TLE data?

But, being a person not aquainted with astronomy, I didn't get what was the answer there at all. If someone can point me towards directly code written by someone to do the same, it would be greatly appreciated. Thank you!

  • 2
    $\begingroup$ Not sure how this isn't a duplicate. Maybe you need to edit your question and make it clear you are looking for code. $\endgroup$ Mar 13, 2019 at 19:25
  • 2
    $\begingroup$ If the answer there is unclear you have two options IMO: 1) Comment under it and ask for a more detailed explanation. Be specific! 2) Rewrite your question here, have it point to that question/answer and ask specifically what you do not understand about that answer. $\endgroup$
    – user10509
    Mar 13, 2019 at 21:23
  • 1
    $\begingroup$ For option 1) these are relevant: meta.stackexchange.com/questions/214173/… and meta.stackexchange.com/questions/164035/… $\endgroup$
    – user10509
    Mar 13, 2019 at 21:23
  • $\begingroup$ voting to reopen The OP has edited the title "Code to calculate..." to match the existing explanation in the body of the question "If someone can point me towards directly code written..." as requested and because that answer is just some analytical advice without any recommendations how to find code to calculate this. There may exist a better duplicate that advises SGP4, but the current dupe is the wrong one to point future readers to. $\endgroup$
    – uhoh
    Mar 14, 2019 at 2:59
  • 2
    $\begingroup$ Also, it looks like the answer given in the claimed duplicate question assumes that an object moves with constant angular velocity around an elliptical orbit, which is incorrect. $\endgroup$
    – notovny
    Mar 14, 2019 at 10:25


Browse other questions tagged or ask your own question.