stateToTLE() call from FiniteDifferencePropagatorConverter.convert() fails to converge
Hello, I have experienced the following issue in Orekit 11.0. I have also provided a fix that worked for me.
When trying to create a fitted TLE (using FiniteDifferencePropagatorConverter) to a sample of measurements from an estimated propagator, the convert() method of the fitter will eventually call stateToTLE() with a hardcoded number of iterations and convergence threshold.
More specifically, a FiniteDifferencePropagatorConverter that is configured with a TLEPropagatorBuilder will eventually invoke method stateToTLE(), when the fitter's convert() method is called.
I have provided a suggested fix, which requires modifications to the TLEPropagatorBuilder.class file. The attached file has resovled the above issue for me. The fix involves the addition of two constructors for the TLEPropagatorBuilder, so that the stateToTLE() convergence threshold and number of iterations is exposed during the fitter configuration. Having done this, and after providing more "loose" convergence criteria, I was able to get the stateToTLE() to converge and provide a very good TLE.
Thank you! Emmanuel