How to add a more planet, e.g "Ceres" in astronomy.js or astronomy.ts? #351
Replies: 1 comment 2 replies
-
This is not simple, nor is it a small task. First, find a reliable source of correct data for the planet, such as an ephemeris or another authoritative algorithm. Astronomy Engine uses VSOP87 for the major planets, which includes Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, and Neptune. Once you find a model, figure out how to truncate it as needed to fit inside a small code footprint (especially important for JavaScript support in browsers) without excessive angular error (1 arcminute max, as seen from Earth, is our target). Write unit tests that verify the algorithm against the authoritative test data/code. Then implement it for all supported programming languages: C/C++, C#, TypeScript/JavaScript, Python, and Kotlin. Create unit tests, documentation, and demos. Verify all work. Currently this is not planned unless someone else wants to volunteer to do all this work. It would be a valuable contribution for sure! If so, it would be better to go ahead and implement the four major asteroids together: Ceres, Pallas, Vesta, and Juno. |
Beta Was this translation helpful? Give feedback.
-
How to add a more planet?
Beta Was this translation helpful? Give feedback.
All reactions