Conversation
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.
This pull request introduces significant improvements to the handling of astronomical time scales and conversions, especially around ΔT modeling, leap-second-aware Unix conversions, and TDB corrections. The changes enhance accuracy for modern dates, provide new time scales, and expand test coverage.
ΔT modeling and accuracy improvements:
src/delta_t.rsmodule to use observed annual ΔT values from IERS/USNO for 1992–2025, with linear extrapolation after 2026, replacing the previous polynomial approximation. This greatly improves accuracy for recent and near-future dates. [1] [2] [3]Time scale conversion enhancements:
New features and expanded test coverage:
TCG(Geocentric Coordinate Time) andTCB(Barycentric Coordinate Time), with crate-root exports (tempoch::TCG,tempoch::TCB).Documentation and changelog updates:
CHANGELOG.mdto document new features, improved ΔT modeling, leap-second-aware conversions, and expanded test coverage.src/delta_t.rsandsrc/scales.rsto clarify algorithm sources, valid ranges, and references. [1] [2] [3]ΔT modeling and accuracy improvements
Time scale conversion enhancements
New features and expanded test coverage
TCGandTCBcoordinate time scales and crate-root exports.Documentation and changelog updates