Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

retrograde planets? #14

Open
cptolemy opened this issue Feb 28, 2018 · 2 comments
Open

retrograde planets? #14

cptolemy opened this issue Feb 28, 2018 · 2 comments

Comments

@cptolemy
Copy link

Hi

I was wondering: if we know the geocentric coordinates of the sun and one planet (longitude and distance) in one instant only, can we calculate/know mathematically if the planet is in retrograde motion or not? Or must we have 2 observations?

Clear skies

@mivion
Copy link
Owner

mivion commented Mar 2, 2018

Hi,

To determine retrograde you have to calculate second position in future. For example + 1 hour or a day.
Then compare with current position.

@0xStarcat
Copy link

Hey @cptolemy ! For what its worth, my fork of this repo just implemented retrograde planet and shadow phase calculations into version 1.2.0 https://github.com/0xStarcat/Moshier-Ephemeris-JS/tree/master

Not sure if I'll be able to get it merged here, but feel free to have a look at how I did it in the files motion.js and HeliocentricOrbitalBody.js

To answer your question, yes you need 2 observations - my fork compares the apparentLongitude of the body now, and the body 1 second from now, and if the difference is <= 0, I designate it retrograde in the results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants