Moon-centered orbit determination

Hi Orekit community,
I have been working lately on a Moon-centered orbit determination using Python orekit jpype wrapper. The scenario in copy inputs a tdm range/doppler measurements from four Earth ground station tracking a satellite defined on the Moon-centered inertial frame. The scenario implements a Moon gravity GL0660B.gfc model and is complemented with third body attraction and SRP forces models. The estimator built for the orbit determination is a Kalman filter inputting the Range/Doppler measurement as Range and RangeRate instances.

The measurements processing fails outputting a cachedtimestamp exception raised by the KalmanEstimator instance with an unexpected epoch set in 1960 while the scenario runs from Feb 2024 onward (TDM measurements as well). Unfortunately the jpype wrapper does not log the exception tree on the Java package and not sure if the python debugging is available within the source API. I have been trying to isolate the issue by checking the correct loading of the JPL ephemeris from the orekit data folder, the reference epoch setup within the propagator build parameters, the frame/epoch definition within the physical model (gravity model, SRP, third body) but the issue sticks like glue. Have narrowed down the potential source to:

  • a faulty measurement list implementation of Range and RangeRate instances derived from the TDM parser

  • a frame conversion issue from Moon inertial to ground station ITRF when processing the range/range_rate measurements

Might be missing something crucial on the way or have mis-configured an input. Would love your input on the built script and the faced exception if somebody has a minute. Thanks in advance for your time!

Gueorguy

od_moon.zip (6.6 MB)

From opencode + Space Bunny :

  1. TdmParser already returns measurement in SI unit, so range_m/range_rate_m should NOT multiplied by 1000;
  2. Range/RangeRate internally deal with twoway setup to True, so measurements from TdmParser should be divided by 2;
  3. variance should not all setup to zeros, using [1e-3,1e-3,1e-3,1e-6,1e-6,1e-6] instead, other wise there is a singularity problem.

And your py file should run. Confirmed by myself.

btw, nowadays, AI + vibe coding makes me feel sort of lost. How do you others developers/engineers feel?

I’m an old grumpy engineer, I stay away from AI as much as I can.

I somewhat envy the era of traditional engineering. Back then, you needed to learn orbital dynamics and programming, and you always learn more and control the details. Now, code has become cheaper, and the development is so fast that my little bit of experience seems not help much. Often, I rely on AI to quickly solve problems, only to be left at lost when generated code works.

I agree, especially when seeing the pace at which frontier models improve…

Hi all, thanks for the feedback! The three bullet points correlated perfectly with what Claude gave me yesterday.

The round trip issue with the two way measurements expecting a one way value was the primary issue. I believe there might be a rock int shoe. The TDMParser outputs the value per file template ICD (round trip range value) and the Range two-way type constructor expects a one way type range value. It would be good to align both classes either with the TDM ICD or the Range/RangeRate expected input. An easy win could be to add the one-way expected value in the Range constructor documentation.

Regarding the opened discussions on AI usage, I personally believe it’s a good enabler for new comers to climb faster the learning curve. It also helps a lot with the reviewing (an AI resolved this issue) and speed up the redundant/low brain coding. On the downside, and especially with Orekit as a low level open source flight dynamics sandbox type of library, without precise prompting and knowledgeable monitoring an AI can easily go free wheel and loose the human in the void.

Cheers!