Repository navigation
Fix GCRS to J2000 frame bias in tleHandling - #1622
Merged
schaubh merged 1 commit intoOct 17, 2026
Merged
Conversation
carlo98
force-pushed
the
hotfix/bsk-1621-frame_bias_teme_gcrf
branch
from
October 16, 2026 16:08
27a2406 to
dd05aa4
Compare
carlo98
marked this pull request as ready for review
October 16, 2026 16:09
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
schaubh
approved these changes
Oct 17, 2026
schaubh
force-pushed
the
hotfix/bsk-1621-frame_bias_teme_gcrf
branch
from
October 17, 2026 13:07
dd05aa4 to
e4b815e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
tleHandling.frame_bias()returnedR3(dalpha0) R2(-xi0) R1(-eta0). The IERS frame bias from the GCRS to the mean equator and equinox of J2000 isR1(-eta0) R2(xi0) R3(dalpha0), so the rotations were applied in reverse order andxi0had the wrong sign._teme2j2000()applies the transpose of this matrix to go from mean J2000 to the Basilisk inertial frame (J2000/ICRF), andommHandlingreuses_teme2j2000().Changes:
src/utilities/tleHandling.py:frame_bias()now returnsrot(1, -eta) @ rot(2, xi) @ rot(3, d_alpha). The bias constants are unchanged. The function now has a docstring, and the constants have unit comments._teme2j2000()andommHandlingneed no changes.Verification
Reference values were computed with Orekit 13.1 (
orekit_jpype13.1.8.0):frame_bias()vs. Orekit GCRF → EME2000 at J2000 (max element difference)_teme2j2000()vs. Orekit TEME → GCRF, position error_teme2j2000()vs. Orekit TEME → GCRF, velocity errorTwo regression tests were added to the existing
src/tests/test_readTLE.py:test_frame_bias_matches_orekit: comparesframe_bias()with Orekit's GCRF → EME2000 rotation.test_teme2j2000_matches_orekit: converts a LEO TEME state at 2004-04-06 07:51:28.386009 UTC and compares it with Orekit's TEME → GCRF result.Both tests fail with the previous formula and pass with the fix.
test_readTLE.py,test_readOMM.py, andtest_scenarioConstellationFromTle.pyall pass.Documentation
docs/source/Support/bskKnownIssues.rst.Future work
None.