(h)
| 53 | } |
| 54 | |
| 55 | function 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…