Confirm night quality fix, Tier 2 fully operational
All three Tier 2 features verified: eclipse clipping, night quality, lunar libration.
This commit is contained in:
parent
cdc030b1d3
commit
08a5cdf994
@ -0,0 +1,50 @@
|
||||
# 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
|
||||
|
||||
```sql
|
||||
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 (|lat| = 5.04° > 5° threshold) |
|
||||
|
||||
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.
|
||||
Loading…
x
Reference in New Issue
Block a user