Closed kerel-fs closed 2 years ago
Hi kerel-fs, and thank you for your pull request !
In essence, the problem you encountered is "custom attribute copying" for StateVector objects, that did not work as intended. I thought I coded those classes such that all attributes were passed to copies, but the example you gave proved something was clearly missing. This explains a few errors I keep getting from time to time.
So I fixed the underlying issue in commit a81c6a8, and now you should have no problem in your script.
Thank you for bringing this to my attention
If the orbit was manually generated from a state vector, propagator-specific arguments have to be added manually. Converting the orbit drops those issues, making it impossible to output TLEs from manually created orbit objects.
After applying the given patch, the following script can be used to generate TLEs from a given state vector in keplarian form (and additionally needed values):