Open s-m-e opened 4 years ago
Hi @s-m-e! Just a quick question while I find some spare time to closely look at this: the blue and green line in your first plot overlap, correct?
Correct, they do - at least at this zoom level.
Take your time ... whenever I end up writing bug reports, I find (at least part of) the problem at my end. MPC provides mean anomalies, Orbit.from_classical
expects true anomalies. At least this part of the result looks much better now.
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Moreover, the problems discussed in the issue may not be directly from poliastro. If you still face this problem, reopen the issue or comment on it. We would be happy to help again!
We haven't yet determined if this is a bug or not, naughty bot.
I am exploring poliastro's propagators with Minor Planet Center "classical" orbital elements and poliastro's bodies vs. JPL Horizons' ephemerides data. I am not entirely sure if the results are within the expected accuracy limits or if there is a problem in poliastro or if I have not read the manual properly. If I had to guess I'd says it's the first given poliastro's focus on two-body propagators.
I have attached a set of three short notebooks illustrating my experiments: poliastro_debug.tar.gz
🐞 Problem
In experiment 1, I compared Eros' orbit based on MPC data and JPL data:
I know MPC's data is not as good as JPL's computations, but this seems a little too far off ...
The relevant section(s) from my code look about as follows:
EDIT: MPC provides mean anomalies,
Orbit.from_classical
expects true anomalies. A quick & dirty solution looks as follows:In experiments 2 and 3, I looked at Earth's orbit around the Sun.
Computations are based on an example in poliastro's manual where an
Orbit
object can be generated via an intermediate step through anEphem
object from theEarth
object. In the above plot, I essentially varied theepoch
when runningEphem.from_body
.The relevant section(s) from my code look about as follows:
Choosing different values for
EARTH_EPOCH
yields vastly different results. Interestingly, it's not so much the difference betweenastro_times
andEARTH_EPOCH
that appears to dominate the inaccuracies. At least within a decade of difference, it appears to be the relative position of Earth on its orbit (i.e. "how far into the year"EARTH_EPOCH
is) that dominates the variations.🖥 Please paste the output of following commands
pip freeze
python -c "import poliastro.testing; poliastro.testing.test()"