mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-05-24 16:56:39 -04:00
The refraction formula went nuts near altitude angle -5.11 degrees. We were taking the tangent of a value that zoomed toward infinity near that value, causing essentially random numbers without any upper bound to their size. Just like JPL Horizons, truncate any angle more than 1 degree below the horizon, only I have a linear taper down to 0 refraction as the altitude angle approaches -90. I did not want any chance of creating an altitude less than -90. Removed unit tests for the Sun at latitude -80 degrees. It is too easy for my code to behave differently from another calculator, because tiny changes in atmospheric modeling can cause disagreement about whether there even is a sunset/sunrise. This is because for observers so close to the pole, the Sun sometimes barely dips below the horizon and then comes back up for less than an hour.
71 lines
6.1 KiB
HTML
71 lines
6.1 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Sun or Moon Rise/Set Table for One Year</title>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
|
|
<style id="antiClickjack">body{display:none !important;}</style>
|
|
|
|
<script type="text/javascript">
|
|
if (self === top)
|
|
{
|
|
var antiClickjack = document.getElementById("antiClickjack");
|
|
antiClickjack.parentNode.removeChild(antiClickjack);
|
|
}
|
|
else
|
|
{
|
|
top.location = self.location;
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<pre>
|
|
o , o , Astronomical Applications Dept.
|
|
Location: W150 00, S60 00 Rise and Set for the Sun for 2019 U. S. Naval Observatory
|
|
Washington, DC 20392-5420
|
|
Universal Time
|
|
|
|
|
|
Jan. Feb. Mar. Apr. May June July Aug. Sept. Oct. Nov. Dec.
|
|
Day Rise Set Rise Set Rise Set Rise Set Rise Set Rise Set Rise Set Rise Set Rise Set Rise Set Rise Set Rise Set
|
|
h m h m h m h m h m h m h m h m h m h m h m h m h m h m h m h m h m h m h m h m h m h m h m h m
|
|
01 1243 0724 1357 0631 1512 0514 1629 0340 1741 0215 1847 0110 1904 0103 1815 0157 1651 0308 1521 0418 1350 0536 1243 0654
|
|
02 1245 0723 1359 0629 1515 0511 1632 0337 1744 0212 1848 0109 1903 0104 1812 0159 1648 0310 1517 0420 1347 0539 1242 0656
|
|
03 1246 0723 1402 0626 1518 0508 1634 0334 1746 0209 1850 0107 1902 0105 1810 0201 1645 0312 1514 0423 1344 0542 1241 0658
|
|
04 1248 0722 1405 0624 1520 0505 1637 0331 1748 0207 1851 0106 1902 0106 1807 0203 1642 0315 1511 0425 1342 0544 1239 0700
|
|
05 1250 0721 1408 0621 1523 0502 1639 0328 1751 0204 1853 0105 1901 0108 1805 0206 1639 0317 1508 0427 1339 0547 1238 0702
|
|
06 1252 0720 1410 0618 1525 0459 1641 0325 1753 0202 1854 0104 1900 0109 1803 0208 1636 0319 1505 0430 1337 0550 1237 0704
|
|
07 1254 0719 1413 0616 1528 0456 1644 0322 1755 0159 1855 0103 1859 0110 1800 0210 1633 0322 1502 0432 1334 0553 1236 0706
|
|
08 1256 0718 1416 0613 1530 0453 1646 0319 1758 0157 1857 0102 1858 0111 1758 0212 1630 0324 1459 0435 1331 0555 1235 0708
|
|
09 1258 0716 1419 0611 1533 0450 1649 0316 1800 0155 1858 0101 1857 0113 1755 0215 1627 0326 1456 0437 1329 0558 1234 0710
|
|
10 1300 0715 1422 0608 1535 0447 1651 0313 1802 0152 1859 0101 1855 0114 1752 0217 1624 0329 1453 0440 1326 0601 1234 0711
|
|
11 1302 0714 1424 0605 1538 0444 1653 0310 1805 0150 1900 0100 1854 0116 1750 0219 1621 0331 1450 0442 1324 0603 1233 0713
|
|
12 1305 0712 1427 0602 1540 0441 1656 0308 1807 0148 1901 0059 1853 0117 1747 0221 1618 0333 1447 0445 1321 0606 1232 0714
|
|
13 1307 0711 1430 0600 1543 0438 1658 0305 1809 0145 1902 0059 1851 0119 1745 0224 1615 0335 1444 0447 1319 0609 1232 0716
|
|
14 1309 0709 1433 0557 1545 0435 1701 0302 1811 0143 1902 0058 1850 0121 1742 0226 1612 0338 1441 0450 1317 0611 1232 0717
|
|
15 1312 0707 1435 0554 1548 0431 1703 0259 1813 0141 1903 0058 1848 0122 1739 0228 1609 0340 1438 0452 1314 0614 1231 0718
|
|
16 1314 0706 1438 0551 1550 0428 1705 0256 1816 0139 1904 0058 1847 0124 1736 0231 1606 0342 1436 0455 1312 0617 1231 0720
|
|
17 1317 0704 1441 0548 1553 0425 1708 0253 1818 0136 1904 0058 1845 0126 1734 0233 1603 0345 1433 0457 1310 0619 1231 0721
|
|
18 1319 0702 1443 0546 1555 0422 1710 0250 1820 0134 1905 0058 1843 0128 1731 0235 1600 0347 1430 0500 1307 0622 1231 0722
|
|
19 1322 0700 1446 0543 1558 0419 1713 0247 1822 0132 1905 0058 1842 0130 1728 0238 1557 0349 1427 0502 1305 0625 1231 0722
|
|
20 1324 0658 1449 0540 1600 0416 1715 0245 1824 0130 1906 0058 1840 0132 1725 0240 1554 0352 1424 0505 1303 0627 1232 0723
|
|
21 1327 0656 1451 0537 1603 0413 1717 0242 1826 0128 1906 0058 1838 0134 1723 0242 1551 0354 1421 0507 1301 0630 1232 0724
|
|
22 1329 0654 1454 0534 1605 0410 1720 0239 1828 0126 1906 0058 1836 0136 1720 0245 1548 0356 1418 0510 1259 0632 1232 0724
|
|
23 1332 0652 1457 0531 1607 0407 1722 0236 1830 0124 1906 0058 1834 0138 1717 0247 1545 0359 1415 0513 1257 0635 1233 0725
|
|
24 1335 0650 1459 0528 1610 0404 1725 0233 1832 0123 1906 0059 1832 0140 1714 0249 1542 0401 1412 0515 1255 0637 1234 0725
|
|
25 1337 0648 1502 0525 1612 0401 1727 0231 1834 0121 1906 0059 1830 0142 1711 0252 1539 0403 1409 0518 1253 0640 1235 0725
|
|
26 1340 0646 1505 0522 1615 0358 1729 0228 1836 0119 1906 0059 1828 0144 1708 0254 1536 0406 1407 0520 1251 0642 1235 0725
|
|
27 1343 0643 1507 0519 1617 0355 1732 0225 1838 0117 1906 0100 1826 0146 1706 0256 1533 0408 1404 0523 1250 0645 1236 0725
|
|
28 1346 0641 1510 0516 1620 0352 1734 0223 1840 0116 1905 0101 1824 0148 1703 0258 1530 0411 1401 0526 1248 0647 1238 0725
|
|
29 1348 0639 1622 0349 1737 0220 1842 0114 1905 0102 1821 0150 1700 0301 1527 0413 1358 0528 1246 0649 1239 0725
|
|
30 1351 0636 1624 0346 1739 0217 1843 0113 1904 0102 1819 0152 1657 0303 1524 0415 1355 0531 1245 0652 1240 0725
|
|
31 1354 0634 1627 0343 1845 0111 1817 0154 1654 0305 1353 0534 1241 0724
|
|
|
|
</pre>
|
|
|
|
<p><a href="javascript:history.go(-1)">Back to form</a></p>
|
|
</body>
|
|
</html> |