Remix.run Logo
BrandonY 7 hours ago

That's so cool! Is there a calculator somewhere that can convert to/from dates and solar system position charts?

krisoft 5 hours ago | parent | next [-]

To calculate the orbital positions i used the skyfield python library. https://rhodesmill.org/skyfield/

They have a very handy example right on the landing page how one can calculate the positions and angles of a planet from a date.

The inverse was a bit trickier. But I also implemented a script which could “solve” a given picture backwards and give us a date. I believe i used binary search to narrow the date down first for the planet with the slowest period, and then refined the date around that timestamp using the position of the planet one faster. That way the estimate got more and more accurate and i didn’t need to brute force search a large time interval. (I applied the assumption that the date to be found is within half a saturn year from our current date, but if that assumption were incorrect it would have resulted in a solver failure during the refinement and thus detected.)

mkesper 6 hours ago | parent | prev [-]

Positions at a given time could be simulated in e.g. Celestia (and then projected). The other direction, I don't know.