I see that I can use an URL like this to retrieve position data for LRO around the Moon:


But what I need is LRO longitude, to calculate when it will pass over a specific position, so I tried using Horizon to retrieve also position of a static point on Moon surface to calculate angular distance, but it dos not work, if it's static it has no ephemeris.

Maybe it could be possible using this page, but I was not able to figure out if an how:


For example this?


But in case it works, which would be the corresponding query URL?

  • $\begingroup$ By url might be hard... But I guess you could take the xyz data and convert to lat/long? See gis.stackexchange.com/a/325618 $\endgroup$ – mothman Oct 9 at 7:53
  • $\begingroup$ I wasn't able to get it to work, but there is item #14 here: i.stack.imgur.com/KX13X.png I actually am not sure what it even means, there's going to be documentation somewhere though... $\endgroup$ – uhoh Oct 9 at 12:46

The steps are summarised as follows

curl $url 2&>1 | awk -F ',' '{if(NF==12) print \$1, \$3, \$4, \$5}' | tail -n +2

  1. Redirect it to a file. This will get you the Time, Px_J2000, Py_J2000, Pz_J2000.

  2. Now, you need to get the J2000_To_IAU Matrix somehow and then get Time, Px_IAU, Py_IAU, Pz_IAU.

  3. Get the sidereal angle at some epoch. Convert it to MCMF (Moon Centred Moon Fixed).

  4. Now, you most likely need the Latitude and Longitude in ME frame. So you need PA_TO_ME constant matrix and get Px_ME, Py_ME, Pz_ME. Now getting longitude is as simple as $atan2(y,x)$

For reference frame definition: Standardized Lunar Coordinate Systems


Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.