Skip to content

Refuse header-ephemeris photometry on sidereally tracked frames. - #134

Merged
sfoale merged 1 commit into
mainfrom
fix/refuse-sidereally-tracked-frames
Aug 21, 2026
Merged

sfoale merged 1 commit into
mainfrom
fix/refuse-sidereally-tracked-frames

Conversation

@sfoale

@sfoale sfoale commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

What

EphemerisHeaders now refuses frames with fits header keyword SRCTYPE = EXTRASOLAR, before any
pixels are read, and names the operation that can measure them instead.

Why

SRCTYPE records how the observation was scheduled, and so how the mount tracked.
On a solar-system object the scheduler follows an ephemeris and CAT-RA/CAT-DEC
carries the target's own position; on EXTRASOLAR those coordinates record where the telescope
was pointed.

Testing

Two tests added: EXTRASOLAR frames are refused, MINORPLANET frames still produce
a light curve. Full suite passes. Verified end to end on real data — the 3I/ATLAS rp
frames are refused, Kleopatra still returns 13 rows.

@capetillo capetillo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! LGTM

@sfoale
sfoale merged commit 2e6264d into main Aug 21, 2026
3 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.

2 participants