Skip to content

Place GeosynchronousOrbit at its longitude at epoch - #176

Merged
ptgrogan merged 2 commits into
mainfrom
fix-geosynchronous-longitude
Nov 25, 2026
Merged

ptgrogan merged 2 commits into
mainfrom
fix-geosynchronous-longitude

Conversation

@ptgrogan

Copy link
Copy Markdown
Contributor

Fixes GeosynchronousOrbit so its satellite is over its longitude at the epoch. Before this change it was off by up to about 0.04°, depending on the date. Also fixes a catalog check that stopped system records from being written.

GeosynchronousOrbit longitude

Cause. Two errors combined:

  • The right ascension of the ascending node came from Greenwich apparent sidereal time. SGP4's TEME frame is oriented by mean sidereal time, a difference of about 0.002°.
  • At geostationary periods SGP4 uses its deep-space model. Its lunar and solar periodic terms move the satellite at its epoch away from the position of its mean elements. The size of the shift depends on the date: +0.039° on 2026-02-01, −0.024° on 2026-10-01.

Fix. get_right_ascension_ascending_node now solves for the node. It starts from mean sidereal time plus the longitude, and corrects until SGP4 places the sub-satellite point at the longitude, rotated by the argument of latitude so that satellites offset in true anomaly keep their offset. The result is cached. The orbit is still built with its one-day repeat cycle.

Remaining error.

  • Longitude at the epoch: within 1e-6° in every month tested.
  • Within each daily repeat cycle, the longitude still drifts by up to about 0.006°, as it did before.
  • Latitude: SGP4's terms move it by up to about 0.004°, which a node correction can't remove.

Record. GOES's slot record was rerun. Its longitude error falls from 0.0371° to 0.0°.

Provenance of values set to None

write_system_record checks a record by parsing the system's dumped entry again. A sourced model's values that are None, such as GOES's spacecraft storage, were treated as given and asked for a provenance. That failed on main for any system with such a value. A value set to None is now treated as not given. A new test parses every system's dumped entry again.

For reviewers

  • Interaction with the sample-size PR. The pixels records of ABI, AHI and FCI on catalog-sample-sizes were computed with the old offset. After both branches merge, their pixel positions improve to about 0.5 km, but their fixture tests (tolerance 0.01 km) fail until the three records are rerun. Whichever pull request merges second needs that rerun.
  • API change. get_right_ascension_ascending_node no longer equals apparent sidereal time plus the longitude. The test asserting that has been replaced with tests of the sub-satellite longitude at the epoch.

Testing

  • New tests:
    • the longitude at the epoch for every month of 2026, at three longitudes;
    • an inclined satellite offset in true anomaly;
    • the right ascension near mean sidereal time;
    • every system's dumped entry parsing again.
  • The full test suite passes locally (python -m pytest tests -n auto).

A catalog model of sourced values dumped with its defaults (such as a
spacecraft's resources with an unknown storage) gives values as None, which
needed a provenance, so a system's record could not be written: its check
parses the dumped system again. A value set to None is not given.
The node used the apparent rather than the mean sidereal time of SGP4's TEME
frame, and SGP4's deep-space lunar and solar terms displace the satellite at its
epoch from its mean elements, by up to about 0.04 deg by the date. The node is
now solved so that the sub-satellite point at epoch is at the longitude (rotated
by the argument of latitude), within 1e-6 deg. GOES's slot record is rerun (its
longitude error was 0.037 deg).
@ptgrogan
ptgrogan merged commit 2a95ab6 into main Nov 25, 2026
9 checks passed
ptgrogan added a commit that referenced this pull request Nov 25, 2026
With the geosynchronous orbit at its longitude at epoch (#176), the pixels of
ABI, AHI, and FCI projected from their grids' nominal positions lie within 0.43,
0.51, and 0.92 km of the products' grids (median), down from 1.7, 2.8, and 3.3 km;
most of the rest is the latitude to which SGP4's lunar and solar terms move the
nominal orbit (0.004 to 0.006 deg).
@ptgrogan
ptgrogan deleted the fix-geosynchronous-longitude branch November 25, 2026 22:25
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