Refraction #14
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Depends on
#13 Horizontal coordinates
jeff/zig-astro
Reference
jeff/zig-astro#14
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #10
Parent
#10
What to build
Refraction as an explicit step between the airless altitude and the observed altitude: a function from airless to observed (Sæmundsson, eq. 16.4) and its inverse (Bennett, eq. 16.3), both scaled by an
Atmosphereof pressure in millibars and temperature in °C that defaults to 1010 mb and 10 °C. Refraction is zero well below the horizon; the cutoff, about −2° of airless altitude, is fixed by finding where Horizons stops refracting.Acceptance criteria
zig build test,zig build check,zig fmt --exclude zig-pkg --check .andreuse lintpassBlocked by
Done in
0c94159. Two decisions from the spec changed, both settled with Jeff during the work: below −1° airless, refraction is held at 38.80′, as Horizons holds it, rather than zeroed; andairlessAltitudeis the exact inverse of Sæmundsson's formula (Newton's method) rather than Bennett's, because once refraction is scaled for non-standard air the two part by minutes of arc near the horizon. Against Horizons both directions agree to 0.00001″.