Replies: 2 comments 3 replies
-
One problem is that the whole concept of Lagrange points is based on the circular restricted three body problem (CR3BP or CRTBP) which in this case means Mars and the Sun move around their common center of mass in perfect circular orbits, and there is no other body with any mass anywhere else in the universe. https://en.wikipedia.org/wiki/Three-body_problem#Restricted_three-body_problem In this case the mass of the other planets (especially Jupiter) is the secondary problem; Mars' very large eccentricity is the primary one. It's almost 0.1 It doesn't move in a circular orbit so there is no real Lagrange point at all. However, if you want a very rough approximation you can use the math in this answer https://space.stackexchange.com/a/26037/12102 |
Beta Was this translation helpful? Give feedback.
-
My to-do list tells me that I should soon expand the Skyfield documentation so that it explains how to build and return your own position objects — so this is a good chance for me to try putting together some sample code! Happily, you probably don’t need a vector sum, since you can probably compute the position as a single vector; a sum is only needed when combining multiple vectors, as is necessary when an ephemeris gives, say, a Barycenter→EarthMoon vector that then needs to be combined with its EarthMoon→Earth vector. To keep this example simple, I won’t do any fancy Lagrangian-point math. Instead‚ I’ll simply take the Earth’s position and add a minus sign, turning it into the planet Gor which, I’ve heard, was in a science fiction book as a planet riding secretly on the other side of the Sun from us.
The essence here is that you need some kind of callable that given a time One complication is that if
Anyway, let me know if the example code helps you put together a solution. If you could keep a list of questions and frustrations you encounter as you try adapting it to your own case, that could considerably improve the documentation I’d like to add to Skyfield to offer this pattern to other users! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
first of all, thank you for developing this library, the api is really great!
I am using Skyfield for a big project at work, and I need to define the L2 for Mars.
What I need to achieve with this project is to get visibilities of Mars and its L2 from some locations on Earth during a given time window.
I believe that the ideal solution would be to have L2 defined as a VectorSum, so that I would be able to use
.at(t)
methods(same as Mars is defined when you do something like
)
but i really do not understand how I could achieve this!
Do you have any advice for this kind of problem?
Is my approach (creating L2 as a VectorSum) correct and doable?
Is there any approach that may be more suitable for my problem?
Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions