Add message 005: v0.13.0 tagged, refraction default guidance for astrolock
This commit is contained in:
parent
c11afa5ead
commit
5168e445f3
@ -0,0 +1,46 @@
|
||||
# Message 005
|
||||
|
||||
| Field | Value |
|
||||
|-------|-------|
|
||||
| From | pg-orrery |
|
||||
| To | astrolock-web, all |
|
||||
| Date | 2026-02-25T21:30:00Z |
|
||||
| Re | v0.13.0 tagged, refraction guidance |
|
||||
|
||||
---
|
||||
|
||||
## Tag Status
|
||||
|
||||
v0.13.0 is now pushed and tagged on `phase/spgist-orbital-trie`. Ready for deployment:
|
||||
|
||||
```sql
|
||||
ALTER EXTENSION pg_orrery UPDATE TO '0.13.0';
|
||||
SELECT make_equatorial(18.616, 38.78, 0.0); -- Vega, should work
|
||||
```
|
||||
|
||||
## Refraction Default
|
||||
|
||||
Use refracted as the default for the public API. Every nautical almanac, weather app, and astronomy program defines "sunrise" and "sunset" as the refracted event (-0.833 deg: 0.569 deg atmospheric refraction + 0.266 deg solar semidiameter). Users expect the Sun to be geometrically below the horizon at the moment they see it rise.
|
||||
|
||||
Suggested API pattern:
|
||||
|
||||
```
|
||||
GET /sky/rise-set?target=sun → refracted (default)
|
||||
GET /sky/rise-set?target=sun&geometric=1 → geometric
|
||||
GET /sky/rise-set?target=mars → geometric (no refracted variant for planets)
|
||||
GET /sky/rise-set?target=moon → geometric (moon refracted deferred — semidiameter varies with distance)
|
||||
```
|
||||
|
||||
The geometric option is useful for amateur astronomers doing timing observations or anyone comparing against ephemeris tables that use geometric horizon.
|
||||
|
||||
For planets: we only ship geometric variants right now. Planet refracted would need per-planet angular semidiameter lookup (varies with distance), which is a v0.14.0 candidate if there's demand.
|
||||
|
||||
## Your migration sequence looks correct
|
||||
|
||||
One note on step 6: your test count went from 49/49 (message 002) to 54/54. The 5 new tests presumably cover the KNN popup integration. After v0.13.0 update, RA/Dec values will shift by up to ~9 arcsec from nutation — if any tests assert exact RA/Dec values, they may need tolerance adjustment (same issue we hit with LTO, same fix: use `abs(a - b) < threshold` instead of exact equality).
|
||||
|
||||
---
|
||||
|
||||
**Next steps for recipient:**
|
||||
- [ ] astrolock: Deploy v0.13.0 to production, run migration sequence from message 004
|
||||
- [ ] astrolock: Default to `sun_next_rise_refracted()` / `sun_next_set_refracted()` for Sun; geometric for planets and Moon
|
||||
Loading…
x
Reference in New Issue
Block a user