MCPcopy
hub / github.com/mourner/suncalc / astroRefraction

Function astroRefraction

index.js:55–60  ·  view source on GitHub ↗
(h)

Source from the content-addressed store, hash-verified

53}
54
55function astroRefraction(h) {
56 if (h < 0) h = 0; // formula valid for positive altitudes only
57
58 // Meeus 16.4: 1.02 / tan(h + 10.26 / (h + 5.10)), h in degrees, arcmin result — folded into rad
59 return 0.0002967 / tan(h + 0.00312536 / (h + 0.08901179));
60}
61
62// general sun calculations
63

Callers 2

getPositionFunction · 0.85
getMoonPositionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…