Skip to content

Fix double km-to-AU conversion in geo_to_ssbary - #21

Merged
ijiraq merged 1 commit into
OSSOS:masterfrom
ijiraq:cursor/fix-geo-to-ssbary-units
Oct 6, 2026
Merged

ijiraq merged 1 commit into
OSSOS:masterfrom
ijiraq:cursor/fix-geo-to-ssbary-units

Conversation

@ijiraq

@ijiraq ijiraq commented Oct 6, 2026

Copy link
Copy Markdown
Member

Fixes #19.

geo_to_ssbary divided the observer's geocentric offset (km) by R1.AU (km/AU) twice, shrinking it by ~1.5e8. Any observation supplied with an explicit observer position (MPC two-line satellite records such as HST, or the Simon Porter format) was therefore fit as if taken from the geocenter.

Validation:

  • New test test_geocentric_location_matches_obscode: fitting o3o08 with Mauna Kea supplied as GCRS x/y/z (km, from astropy) now reproduces the obscode-568 fit (Δa = 5e-5 AU); before the fix Δa = 0.019 AU.
  • hst.mpc (2020 KQ11, 36 min HST arc): fit goes from a retrograde i=166°, d=21.8 AU to i=3.08°, d=54.3 AU. JPL gives i=3.32° and Δ=48.5 AU. The test now also checks inclination.
  • simon_format.txt (2013 LU35) a shifts 43.80 → 43.69 AU; expected value updated.

Made with Cursor

…ssbary.

Fixes OSSOS#19.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ijiraq
ijiraq force-pushed the cursor/fix-geo-to-ssbary-units branch from 7596dbc to ca48079 Compare October 6, 2026 02:32
@ijiraq
ijiraq merged commit 04805a9 into OSSOS:master Oct 6, 2026
2 checks passed
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.

Possible multiple unit conversion error.

1 participant