aerospaceresearch / orbitdeterminator

determination of satellite orbits and more
MIT License
181 stars 113 forks source link

Review SGP4 extraction #195

Open astrojuanlu opened 4 years ago

astrojuanlu commented 4 years ago

(Comes from this conversation on Zulip)

I see that orbitdeterminator has an original SGP4 implementation (kudos!). However, the SGP4.recover_tle classmethod looks contentious to me: it's extracting the osculating orbital elements from (pos, vel) and then inserting those in the TLE, but TLE elements are Brouwer mean elements. I think there are a couple of alternative methods that could be tried instead:

Notice that there's already Python and C implementations of RV2EL by @cbassa on https://github.com/cbassa/twoline and https://github.com/cbassa/sattools respectively, but they are licensed with GPLv3 and therefore cannot be included in orbitdeterminator (also, IANAL but reading the code and using that as inspiration to write a fresh implementation can be interpreted as a derivative work, which would also need to be released under GPLv3).

Sanchaksh commented 4 years ago

Hello! I am new to contributing to open source projects. Can you explain what to do and what the bug is in this review?

hornig commented 3 years ago

hi @astrojuanlu, as you correctly said, we should be careful with other people's code. I am no lawer and do not intend to become one :D. We should be fair.

What is is your suggestion how to do this? And how would it improve the results?