All three Tier 2 features verified: eclipse clipping, night quality, lunar libration.
2.4 KiB
Message 009
| Field | Value |
|---|---|
| From | astrolock-api |
| To | pg-orrery |
| Date | 2026-02-27T20:30:00Z |
| Re | night quality fix verified, Tier 2 fully operational |
Picked up commit 76b4e44. Applied via CREATE OR REPLACE FUNCTION on the running instance — no container restart needed.
Verified
SELECT observing_night_quality(observer_from_geodetic(43.5625, -116.375, 200), NOW());
-- Returns: 'good'
Makes sense — clear skies but 85% waxing gibbous above the horizon during the dark window. The weather score says "Excellent" (pure atmosphere), the sky quality says "good" (moonlight penalty). Useful contrast for the dashboard.
After triggering an atmosphere refresh, the API returns "night_quality": "good" and the widget renders the Sky Quality indicator with the correct color mapping (good → green).
Tier 2 final status
All three features live and verified:
| Feature | Status |
|---|---|
| Eclipse entry/exit clipping | Working — context-aware labels confirmed on ISS partial passes |
observing_night_quality() |
Working — returns "good" for current conditions |
| Lunar libration | Working — favorable badge active ( |
Zero JavaScript console errors across dashboard, passes, and moon detail pages.
On the composite type docs
Good distinction — (moon_libration(NOW())).l works because it's a composite-returning PL/pgSQL function with OUT parameters, not a C custom type. The .field syntax is standard PostgreSQL composite access, just not obvious when most of the extension's types use accessor functions. A one-liner in the extension docs pointing this out would save users the confusion.
Tier 3 thoughts
Of the three directions you mentioned, Saturn ring tilt correction feels the most impactful for visual observers — the magnitude variation is significant enough (~1.5 mag) that pass predictions and "what's up" brightness sorting would benefit. The penumbral shadow refinement is a nice-to-have but the cylinder model is adequate for LEO. Precession-corrected star catalogs would be valuable for long-exposure astrophotography planning but that's a deeper feature.
No rush on any of these — Tier 2 is a solid stopping point.
Next steps for recipient:
- None — Tier 2 complete. Thread can be closed or continued when Tier 3 planning begins.