Skip to content

Use the shared Earth-rotation rate for surface-site velocity - #67

Merged
SuperdoerTrav merged 2 commits into
mainfrom
fix/surface-rv-velocity
Oct 28, 2026
Merged

SuperdoerTrav merged 2 commits into
mainfrom
fix/surface-rv-velocity

Conversation

@SuperdoerTrav

@SuperdoerTrav SuperdoerTrav commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Delegate surface-site state conversion to the shared WGS84 / IAU 2006/2000A route, replacing the physically incorrect Earth-spin axis fixed to GCRF +Z. Preserve the public signature and scalar state outputs.

Validation

Independent final review approved. Replace the old fixed-axis assertion with independent Astropy EarthLocation conversion scoped to the packaged EOP table, using the existing core route 2e-4 m/s accuracy budget. At its epoch the Astropy velocity residual is 1.86e-5 m/s; the old formula differs by 1.11 m/s. One-off checks cover 12 site/epoch combinations, including out-of-table extrapolation, with unchanged positions and exact agreement with the geodetic route. Full local numerical suite: 739 passed, 5 optional skips. Full publishing/browser suite with SSATK_BROWSER_TESTS=1: 292 passed. Policy, syntax Ruff and whitespace checks pass.

GitHub CI remains a merge gate. This corrects an existing helper and does not add a user-facing workflow.

Current Merge Gate

Reviewed diff identity preserved against main 1adb2d3c78864327b624c3faffcf823fbf8a648e. Fresh local validation at 18a2efbeec030dadee348c9520eea75b70988256:

  • Numerical suite: 739 passed, 5 skipped, 30 warnings, 17 subtests passed in 172.67s (0:02:52)
  • Publishing/browser suite: 292 passed, 3 warnings in 153.41s (0:02:33)
  • Warning-as-error docs, policy, release metadata, Ruff syntax, JavaScript syntax and whitespace checks passed.

Every exact-head CI check must pass before squash merge.

Delegate the surface helper to llh_to_gcrf so a fixed WGS84 site uses the same IAU 2006/2000A position and rotation derivative. Replace the physically incorrect fixed-GCRF-Z cross-product assertion with scoped independent Astropy EOP validation using the core route accuracy budget.

Verified the corrected reference test (1 passed), unchanged positions and matching geodetic states across 12 site/epoch combinations including extrapolation. Independent Astropy velocity residual at the test epoch is 1.86e-5 m/s; the old formula is wrong by 1.11 m/s. Repository policy, Ruff syntax and whitespace checks pass. Full suites and CI remain merge gates.
@SuperdoerTrav
SuperdoerTrav merged commit c6e9026 into main Oct 28, 2026
16 checks passed
@SuperdoerTrav
SuperdoerTrav deleted the fix/surface-rv-velocity branch October 28, 2026 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant