/usr/share/doc/libswe-doc/swephprg.html is in libswe-doc 1.80.00.0001-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
<title>Programming interface to the Swiss Ephemeris</title>
<meta name="generator" content="LibreOffice 4.3.3.2 (Linux)"/>
<meta name="author" content="dieter"/>
<meta name="created" content="2012-09-07T12:31:00"/>
<meta name="changedby" content="dieter"/>
<meta name="changed" content="2013-08-30T12:25:00"/>
<meta name="description" content="Before calling swe_calc(), call swe_set_topo(). position.
swe_sol_eclipse_when_glob( tjd...)
Lunar eclipses:
swe_lun_eclipse_when(tjd...) Swe_calc() returns true positions for these points.
"/>
<meta name="keywords" content="swe se function time ephemeris"/>
<meta name="_ExportToHTMLPath" content="S:\doc\swisseph\swephprg.htm"/>
<style type="text/css">
@page { margin-right: 0.4in; margin-top: 0.49in; margin-bottom: 0.8in }
p { margin-bottom: 0in; direction: ltr; color: #000000; text-align: left; widows: 2; orphans: 2 }
p.western { font-family: "Arial", sans-serif; font-size: 10pt; so-language: en-US }
p.cjk { font-family: "Times New Roman", serif; font-size: 10pt }
p.ctl { font-family: "Arial", sans-serif; font-size: 10pt; so-language: ar-SA }
h2 { margin-top: 0.17in; margin-bottom: 0.04in; direction: ltr; color: #0000ff; text-align: left; widows: 2; orphans: 2 }
h2.western { font-family: "Times New Roman", serif; font-size: 16pt; so-language: en-US }
h2.cjk { font-family: "Times New Roman", serif; font-size: 16pt }
h2.ctl { font-family: "Times New Roman", serif; font-size: 16pt; so-language: ar-SA }
h3 { margin-right: 0.2in; margin-top: 0.17in; margin-bottom: 0.04in; direction: ltr; color: #0000ff; text-align: left; widows: 2; orphans: 2 }
h3.western { font-family: "Times New Roman", serif; so-language: en-US }
h3.cjk { font-family: "Times New Roman", serif }
h3.ctl { font-family: "Times New Roman", serif; so-language: ar-SA }
h4 { margin-left: 0.25in; text-indent: -0.25in; margin-top: 0.17in; margin-bottom: 0.04in; direction: ltr; color: #0000ff; text-align: left; widows: 2; orphans: 2 }
h4.western { font-family: "Times New Roman", serif; so-language: en-US }
h4.cjk { font-family: "Times New Roman", serif }
h4.ctl { font-family: "Times New Roman", serif; so-language: ar-SA }
h5 { margin-top: 0.17in; direction: ltr; color: #0000ff; text-align: left; widows: 2; orphans: 2; page-break-after: auto }
h5.western { font-family: "Times New Roman", serif; font-size: 12pt; so-language: en-US; font-weight: normal }
h5.cjk { font-family: "Times New Roman", serif; font-size: 12pt; font-weight: normal }
h5.ctl { font-family: "Times New Roman", serif; font-size: 12pt; so-language: ar-SA; font-weight: normal }
a:link { color: #0000ff }
a.western:link { font-family: "Verdana", sans-serif; font-size: 10pt }
a.cjk:link { font-size: 10pt }
a.ctl:link { font-family: "Verdana", sans-serif; font-size: 10pt }
a:visited { color: #800080 }
a.western:visited { font-family: "Verdana", sans-serif; so-language: en-US }
a.cjk:visited { so-language: zh-CN }
a.ctl:visited { font-family: "Verdana", sans-serif; so-language: hi-IN }
</style>
</head>
<body lang="en-US" text="#000000" link="#0000ff" vlink="#800080" dir="ltr">
<div title="header">
<p>Swiss Ephemeris <sdfield type=PAGE subtype=RANDOM format=PAGE>75</sdfield></p>
</div>
<p><br/>
</p>
<p class="western" align="center"><font color="#808080"><font size="5" style="font-size: 20pt">Programming
interface to the Swiss Ephemeris</font></font></p>
<p class="western"><br/>
</p>
<p class="western">Copyright <b>Astrodienst AG</b> 1997-2011.</p>
<p class="western">This document describes the proprietary
programmer's interface to the Swiss Ephemeris DLL.
</p>
<p class="western"><br/>
</p>
<p class="western">Swiss Ephemeris is made available by its authors
under a dual licensing system. The software developer, who uses any
part of Swiss Ephemeris in his or her software, must choose between
one of the two license models, which are</p>
<p class="western"> a) GNU public license version 2 or later</p>
<p class="western"> b) Swiss Ephemeris Professional License</p>
<p class="western"><br/>
</p>
<p class="western">The choice must be made before the software
developer distributes software containing parts of Swiss Ephemeris
to others, and before any public service using the developed software
is activated.</p>
<p class="western"><br/>
</p>
<p class="western">If the developer chooses the GNU GPL software
license, he or she must fulfill the conditions of that license, which
includes the obligation to place his or her whole software project
under the GNU GPL or a compatible license. See
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html</p>
<p class="western"><br/>
</p>
<p class="western">If the developer chooses the Swiss Ephemeris
Professional license, he must follow the instructions as found in
http://www.astro.com/swisseph/ and purchase the Swiss Ephemeris
Professional Edition from Astrodienst and sign the corresponding
license contract.</p>
<p class="western" align="center"><br/>
</p>
<div id="Section1" dir="ltr">
<div id="Table of Contents1" dir="ltr">
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365635944"><span lang="en-US">1.
The programming steps to get a planet’s position 5</span></a></b></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365635945"><span lang="en-US">2.
The functions swe_calc_ut() and swe_calc() 7</span></a></b></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635946"><span lang="en-US">2.1.
The call parameters 7</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635947"><span lang="en-US">2.2.
Error handling and return values 7</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635948"><span lang="en-US">2.3.
Bodies ( int ipl ) 8</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365635949"><span lang="en-US">Additional
asteroids 8</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365635950"><span lang="en-US">Fictitious
planets 11</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365635951"><span lang="en-US">Obliquity
and nutation 13</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635952"><span lang="en-US">2.4.
Options chosen by flag bits (long iflag) 13</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365635953"><span lang="en-US">2.4.1.
The use of flag bits 13</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365635954"><span lang="en-US">2.4.2.
Ephemeris flags 13</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365635955"><span lang="en-US">2.4.3.
Speed flag 14</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365635956"><span lang="en-US">2.4.4.
Coordinate systems, degrees and radians 14</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365635957"><span lang="en-US">2.4.5.
Specialties (going beyond common interest) 14</span></a></font></font></font></p>
<p style="margin-left: 0.56in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635958"><span lang="en-US">a.
True or apparent positions 14</span></a></font></font></font></p>
<p style="margin-left: 0.56in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635959"><span lang="en-US">b.
Topocentric positions 14</span></a></font></font></font></p>
<p style="margin-left: 0.56in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635960"><span lang="en-US">c.
Heliocentric positions 14</span></a></font></font></font></p>
<p style="margin-left: 0.56in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635961"><span lang="en-US">d.
Barycentric positions 14</span></a></font></font></font></p>
<p style="margin-left: 0.56in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635962"><span lang="en-US">e.
Astrometric positions 15</span></a></font></font></font></p>
<p style="margin-left: 0.56in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635963"><span lang="en-US">f.
True or mean equinox of date 15</span></a></font></font></font></p>
<p style="margin-left: 0.56in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635964"><span lang="en-US">g.
J2000 positions and positions referred to other equinoxes 15</span></a></font></font></font></p>
<p style="margin-left: 0.56in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635965"><span lang="en-US">h.
Sidereal positions 15</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635966"><span lang="en-US">2.5.
Position and Speed (double xx[6]) 15</span></a></font></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365635967"><span lang="en-US">3.
The function swe_get_planet_name() 15</span></a></b></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365635968"><span lang="en-US">4.
Fixed stars functions 16</span></a></b></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635969"><span lang="en-US">4.1
swe_fixstar_ut 16</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635970"><span lang="en-US">4.2
swe_fixstar() 16</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635971"><span lang="en-US">4.3
swe_fixstar_mag() 17</span></a></font></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365635972"><span lang="en-US">5.
Apsides functions 17</span></a></b></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635973"><span lang="en-US">5.1
swe_nod_aps_ut 17</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635974"><span lang="en-US">5.2
swe_nod_aps() 17</span></a></font></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365635975"><span lang="en-US">6.
Eclipse and planetary phenomena functions 19</span></a></b></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635976"><span lang="en-GB">6.0.
Example of a typical eclipse calculation</span><span lang="en-US"> 19</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635977"><span lang="en-US">6.1.
swe_sol_eclipse_when_loc() and swe_lun_occult_when_loc() 20</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635978"><span lang="en-US">6.2.
swe_sol_eclipse_when_glob() 20</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635979"><span lang="en-US">6.3.
swe_sol_eclipse_how () 21</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635980"><span lang="en-US">6.4.
swe_sol_eclipse_where () 22</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635981"><span lang="en-US">6.5.
swe_lun_occult_when_loc() 23</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635982"><span lang="en-US">6.6.
swe_lun_occult_when_glob() 24</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635983"><span lang="en-US">6.7.
swe_lun_occult_where () 25</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635984"><span lang="en-US">6.8.
swe_lun_eclipse_when () 26</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635985"><span lang="en-US">6.9.
swe_lun_eclipse_how () 26</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635986"><span lang="en-US">6.10.
swe_rise_trans() and swe_rise_trans_true_hor() (risings, settings,
meridian transits) 27</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635987"><span lang="en-US">6.11.
swe_pheno_ut() and swe_pheno(), planetary phenomena 28</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635988"><span lang="en-US">6.12.
swe_azalt(), horizontal coordinates, azimuth, altitude 28</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635989"><span lang="en-US">6.13.
swe_azalt_rev() 29</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635990"><span lang="en-US">6.14.
swe_refrac(), swe_refract_extended(), refraction 29</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635991"><span lang="en-US">6.15.
Heliacal risings etc.: swe_heliacal_ut() 30</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635992"><span lang="en-US">6.16.
Magnitude limit for visibility: swe_vis_limit_mag() 31</span></a></font></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365635993"><span lang="en-US">7.
Date and time conversion functions 31</span></a></b></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635994"><span lang="en-US">7.1
Calendar Date and Julian Day: swe_julday(), swe_date_conversion(),
/swe_revjul() 31</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635995"><span lang="en-US">7.2.
UTC and Julian day: swe_utc_time_zone(), swe_utc_to_jd(),
swe_jdet_to_utc(), swe_jdut1_to_utc() 32</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635996"><span lang="en-US">7.3.
Future insertion of leap seconds and the file swe_leapsec.txt 34</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635997"><span lang="en-US">7.4.
Mean solar time versus True solar time: swe_time_equ() 34</span></a></font></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365635998"><span lang="en-US">8.
Delta T-related functions 34</span></a></b></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365635999"><span lang="en-US">8.1
swe_deltat() 34</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636000"><span lang="en-US">8.2
swe_set_tid_acc(), swe_get_tid_acc() 35</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636001"><span lang="en-US">8.3.
Future updates of Delta T and the file swe_deltat.txt 35</span></a></font></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636002"><span lang="en-US">9.
The function swe_set_topo() for topocentric planet positions 35</span></a></b></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636003"><span lang="fr-FR">10.
Sidereal mode functions</span><span lang="en-US"> 35</span></a></b></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636004"><span lang="fr-FR">10.1.
swe_set_sid_mode()</span><span lang="en-US"> 35</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636005"><span lang="en-US">10.2.
swe_get_ayanamsa_ut() and swe_get_ayanamsa() 37</span></a></font></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636006"><span lang="en-US">11.
The Ephemeris file related functions 37</span></a></b></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636007"><span lang="en-US">11.1
swe_set_ephe_path() 37</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636008"><span lang="en-US">11.2
swe_close() 38</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636009"><span lang="en-US">11.3
swe_set_jpl_file() 38</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636010"><span lang="en-US">11.4
swe_version() 38</span></a></font></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636011"><span lang="en-US">12.
House cusp calculation 39</span></a></b></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636012"><span lang="en-US">12.1
swe_houses() 39</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636013"><span lang="en-US">12.2
swe_houses_armc() 39</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636014"><span lang="en-US">12.3
swe_houses_ex() 39</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636015"><span lang="en-US">12.4
swe_house_name() 39</span></a></font></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636016"><span lang="en-US">13.
The sign of geographical longitudes in Swisseph functions 41</span></a></b></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636017"><span lang="en-US">14.
Getting the house position of a planet with swe_house_pos() 41</span></a></b></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636018"><span lang="en-US">14.1.
Calculating the Gauquelin sector position of a planet with
swe_house_pos() or swe_gauquelin_sector() 42</span></a></b></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636019"><span lang="en-US">15.
Sidereal time with swe_sidtime() and swe_sidtime0() 43</span></a></b></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636020"><span lang="en-US">16.
Summary of SWISSEPH functions 44</span></a></b></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636021"><span lang="en-US">16.1.
Calculation of planets and stars 44</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636022"><span lang="en-US">Planets,
moon, asteroids, lunar nodes, apogees, fictitious bodies 44</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636023"><span lang="en-US">Fixed
stars 44</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636024"><span lang="en-US">Set
the geographic location for topocentric planet computation 44</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636025"><span lang="en-US">Set
the sidereal mode for sidereal planet positions 44</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636026"><span lang="en-US">16.2
Eclipses and planetary phenomena 45</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636027"><span lang="en-US">Find
the next eclipse for a given geographic position 45</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636028"><span lang="en-US">Find
the next eclipse globally 45</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636029"><span lang="en-US">Compute
the attributes of a solar eclipse for a given tjd, geographic
long., latit. and height 45</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636030"><span lang="en-US">Find
out the geographic position where a central eclipse is central or a
non-central one maximal 45</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636031"><span lang="en-US">Find
the next occultation of a body by the moon for a given geographic
position 46</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636032"><span lang="en-US">Find
the next occultation globally 46</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636033"><span lang="en-US">Find
the next lunar eclipse 46</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636034"><span lang="en-US">Compute
the attributes of a lunar eclipse at a given time 46</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636035"><span lang="en-US">Compute
risings, settings and meridian transits of a body 46</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636036"><span lang="en-US">Compute
planetary phenomena 47</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636037"><span lang="en-US">16.3.
Date and time conversion 47</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636038"><span lang="en-US">Delta
T from Julian day number 47</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636039"><span lang="en-US">Julian
day number from year, month, day, hour, with check whether date is
legal 48</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636040"><span lang="en-US">Julian
day number from year, month, day, hour 48</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636041"><span lang="en-US">Year,
month, day, hour from Julian day number 48</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636042"><span lang="en-US">Local
time to UTC and UTC to local time 48</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636043"><span lang="en-US">UTC
to jd (TT and UT1) 48</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636044"><span lang="en-US">TT
(ET1) to UTC 49</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636045"><span lang="en-US">UTC
to TT (ET1) 49</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636046"><span lang="en-US">Get
tidal acceleration used in swe_deltat() 49</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636047"><span lang="en-US">Set
tidal acceleration to be used in swe_deltat() 49</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636048"><span lang="en-US">Equation
of time 49</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636049"><span lang="en-US">16.4.
Initialization, setup, and closing functions 49</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636050"><span lang="en-US">Set
directory path of ephemeris files 49</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636051"><span lang="en-US">16.5.
House calculation 50</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636052"><span lang="en-US">Sidereal
time 50</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636053"><span lang="en-US">Name
of a house method 50</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636054"><span lang="en-US">House
cusps, ascendant and MC 50</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636055"><span lang="en-US">Extended
house function; to compute tropical or sidereal positions 50</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636056"><span lang="en-US">Get
the house position of a celestial point 50</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636057"><span lang="en-US">Get
the Gauquelin sector position for a body 51</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636058"><span lang="en-US">16.6.
Auxiliary functions 52</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636059"><span lang="en-US">Coordinate
transformation, from ecliptic to equator or vice-versa 52</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636060"><span lang="en-US">Coordinate
transformation of position and speed, from ecliptic to equator or
vice-versa 52</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636061"><span lang="en-US">Get
the name of a planet 52</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636062"><span lang="en-US">16.7.
Other functions that may be useful 52</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636063"><span lang="en-US">Normalize
argument into interval [0..DEG360] 52</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636064"><span lang="en-US">Distance
in centisecs p1 - p2 normalized to [0..360] 52</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636065"><span lang="en-US">Distance
in degrees 52</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636066"><span lang="en-US">Distance
in centisecs p1 - p2 normalized to [-180..180] 52</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636067"><span lang="en-US">Distance
in degrees 53</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636068"><span lang="en-US">Round
second, but at 29.5959 always down 53</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636069"><span lang="en-US">Double
to long with rounding, no overflow check 53</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636070"><span lang="en-US">Day
of week 53</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636071"><span lang="en-US">Centiseconds
-> time string 53</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636072"><span lang="en-US">Centiseconds
-> longitude or latitude string 53</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636073"><span lang="en-US">Centiseconds
-> degrees string 53</span></a></font></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636074"><span lang="en-US">17.
The SWISSEPH DLLs 53</span></a></b></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636075"><span lang="en-US">17.1
DLL Interface for brain damaged compilers 53</span></a></font></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636076"><span lang="en-US">18.
Using the DLL with Visual Basic 5.0 54</span></a></b></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636077"><span lang="en-US">19.
Using the DLL with Borland Delphi and C++ Builder 54</span></a></b></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636078"><span lang="en-US">19.1
Delphi 2.0 and higher (32-bit) 54</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636079"><span lang="en-US">19.2
Borland C++ Builder 55</span></a></font></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636080"><span lang="en-US">20.
Using the Swiss Ephemeris with Perl 55</span></a></b></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636081"><span lang="en-US">21.
The C sample program 56</span></a></b></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636082"><span lang="en-US">21.
The source code distribution 57</span></a></b></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636083"><span lang="en-US">22.
The PLACALC compatibility API 57</span></a></b></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636084"><span lang="en-US">23.
Documentation files 58</span></a></b></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636085"><span lang="en-US">24.
Swisseph with different hardware and compilers 58</span></a></b></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636086"><span lang="en-US">25.
Debugging and Tracing Swisseph 58</span></a></b></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636087"><span lang="en-US">25.1.
If you are using the DLL 58</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636088"><span lang="en-US">25.2
If you are using the source code 59</span></a></font></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636089"><span lang="en-US">Appendix 59</span></a></b></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636090"><span lang="en-US">Update
and release history 59</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636091"><span lang="en-US">Changes
from version 1.79 to 1.80 61</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636092"><span lang="en-US">Changes
from version 1.78 to 1.79 61</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636093"><span lang="en-US">Changes
from version 1.77 to 1.78 61</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636094"><span lang="en-US">Changes
from version 1.76 to 1.77 62</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636095"><span lang="en-US">Changes
from version 1.75 to 1.76 62</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636096"><span lang="en-US">Changes
from version 1.74 to version 1.75 62</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636097"><span lang="en-US">Changes
from version 1.73 to version 1.74 63</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636098"><span lang="en-US">Changes
from version 1.72 to version 1.73 63</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636099"><span lang="en-US">Changes
from version 1.71 to version 1.72 63</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636100"><span lang="en-US">Changes
from version 1.70.03 to version 1.71 63</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636101"><span lang="en-US">Changes
from version 1.70.02 to version 1.70.03 63</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636102"><span lang="en-US">Changes
from version 1.70.01 to version 1.70.02 63</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636103"><span lang="en-US">Changes
from version 1.70.00 to version 1.70.01 63</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636104"><span lang="en-US">Changes
from version 1.67 to version 1.70 63</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636105"><span lang="en-US">Changes
from version 1.66 to version 1.67 64</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636106"><span lang="en-US">Changes
from version 1.65 to version 1.66 64</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636107"><span lang="en-US">Changes
from version 1.64.01 to version 1.65.00 64</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636108"><span lang="en-US">Changes
from version 1.64 to version 1.64.01 64</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636109"><span lang="en-US">Changes
from version 1.63 to version 1.64 64</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636110"><span lang="en-US">Changes
from version 1.62 to version 1.63 65</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636111"><span lang="en-US">Changes
from version 1.61.03 to version 1.62 65</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636112"><span lang="en-US">Changes
from version 1.61 to 1.61.01 65</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636113"><span lang="en-US">Changes
from version 1.60 to 1.61 65</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636114"><span lang="en-US">Changes
from version 1.51 to 1.60 65</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636115"><span lang="en-US">Changes
from version 1.50 to 1.51 66</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636116"><span lang="en-US">Changes
from version 1.40 to 1.50 66</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636117"><span lang="en-US">Changes
from version 1.31 to 1.40 66</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636118"><span lang="en-US">Changes
from version 1.30 to 1.31 66</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636119"><span lang="en-US">Changes
from version 1.27 to 1.30 66</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636120"><span lang="en-US">Changes
from version 1.26 to 1.27 66</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636121"><span lang="en-US">Changes
from version 1.25 to 1.26 66</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636122"><span lang="en-US">Changes
from version 1.22 to 1.23 67</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636123"><span lang="en-US">Changes
from version 1.21 to 1.22 67</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636124"><span lang="en-US">Changes
from version 1.20 to 1.21 67</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636125"><span lang="en-US">Changes
from version 1.11 to 1.20 67</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636126"><span lang="en-US">Changes
from version 1.10 to 1.11 67</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636127"><span lang="en-US">Changes
from version 1.04 to 1.10 67</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636128"><span lang="en-US">Changes
from Version 1.03 to 1.04 67</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636129"><span lang="en-US">Changes
from Version 1.02 to 1.03 68</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636130"><span lang="en-US">Changes
from Version 1.01 to 1.02 68</span></a></font></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636131"><span lang="en-US">Changes
from Version 1.00 to 1.01 68</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636132"><span lang="en-US">1.
Sidereal time 68</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636133"><span lang="en-US">2.
Houses 68</span></a></font></font></font></p>
<p style="margin-left: 0.42in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt"><a class="western" href="#__RefHeading___Toc365636134"><span lang="en-US">3.
Ecliptic obliquity and nutation 68</span></a></font></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636135"><span lang="en-US">Appendix
A 69</span></a></b></font></font></p>
<p style="margin-left: 0.28in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><a class="western" href="#__RefHeading___Toc365636136"><span lang="en-US">What
is missing ? 69</span></a></font></font></font></p>
<p style="margin-left: 0.14in; margin-top: 0.08in"><font color="#000080"><font face="Verdana, sans-serif"><b><a class="western" href="#__RefHeading___Toc365636137"><span lang="en-US">Index 70</span></a></b></font></font></p>
</div>
<p style="margin-left: 0.14in; margin-top: 0.08in"><br/>
</p>
</div>
<div id="Section2" dir="ltr">
<p lang="de-DE" class="western"><br/>
</p>
<ol>
<ol>
<li/>
<h2 class="western" style="page-break-before: always"><a name="__RefHeading___Toc365635944"></a><a name="c1"></a>
1. The programming steps to get a planet’s position</h2>
</ol>
</ol>
<p class="western"><br/>
</p>
<p class="western"><a name="_Hlk477829414"></a><a name="OLE_LINK2"></a><a name="_Hlk477409073"></a>
To compute a celestial body or point with SWISSEPH, you have to do
the following steps (use<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">
swetest.c</span></span></font></font></font> as an example). The
details of the functions will be explained in the following
chapters.</p>
<p class="western"><br/>
</p>
<p class="western">1. Set the directory path of the ephemeris
files, e.g.:
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <b>swe_set_ephe_path</b>(”C:\\SWEPH\\EPHE”);</font></font></font></p>
<p><br/>
</p>
<p class="western">2. From the birth date, compute the
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">Julian
day number</span></span></font></font></font><u>:</u></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> jul_day_UT
= <b>swe_julday</b>(year, month, day, hour, gregflag);</font></font></font></p>
<p><br/>
</p>
<p class="western">3. Compute a planet or other bodies:</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="da-DK">ret_flag
= </span><span lang="da-DK"><b>swe_calc_ut</b></span><span lang="da-DK">(jul_day_UT,
planet_no, flag, lon_lat_rad, err_msg); </span></font></font></font>
</p>
<p class="western"><span lang="da-DK"> </span>or a fixed star:</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="da-DK">ret_flag
= </span><span lang="da-DK"><b>swe_fixstar_ut</b></span><span lang="da-DK">(star_nam,
jul_day_UT, flag, lon_lat_rad, err_msg);</span></font></font></font></p>
<p lang="da-DK"><br/>
</p>
<p class="western"><span lang="da-DK"> </span><font size="1" style="font-size: 8pt">Note:</font></p>
<p class="western"><font size="1" style="font-size: 8pt"> The
functions swe_calc_ut() and swe_fixstar_ut() were introduced with
Swisseph version 1.60.</font></p>
<p class="western"><font size="1" style="font-size: 8pt"> If you use
a Swisseph version older than 1.60 or if you want to work with
</font><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><font size="1" style="font-size: 8pt"><span lang="en-US">Ephemeris
Time</span></font></span></font></font></font><font size="1" style="font-size: 8pt">,
you have to proceed as follows instead:</font></p>
<p class="western"><br/>
</p>
<p class="western"><font face="Symbol, serif"><font size="1" style="font-size: 8pt"> </font></font><font size="1" style="font-size: 8pt">First,
if necessary, convert Universal Time (UT) to Ephemeris Time (ET):</font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="da-DK">jul_day_ET
= jul_day_UT + </span><span lang="da-DK"><b>swe_deltat</b></span><span lang="da-DK">(jul_day_UT);</span></font></font></font></p>
<p lang="da-DK" class="western"><br/>
</p>
<p class="western"><font size="1" style="font-size: 8pt"><span lang="da-DK"> </span></font><font size="1" style="font-size: 8pt">Then
Compute a planet or other bodies:</font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="da-DK">ret_flag
= </span><span lang="da-DK"><b>swe_calc</b></span><span lang="da-DK">(jul_day_ET,
planet_no, flag, lon_lat_rad, err_msg); </span></font></font></font>
</p>
<p class="western"><font size="1" style="font-size: 8pt"><span lang="da-DK"> </span></font><font size="1" style="font-size: 8pt">or
a fixed star:</font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="da-DK">ret_flag
= </span><span lang="da-DK"><b>swe_fixstar</b></span><span lang="da-DK">(star_nam,
jul_day_ET, flag, lon_lat_rad, err_msg);</span></font></font></font></p>
<p lang="da-DK" class="western"><br/>
</p>
<p class="western">5. At the end of your computations close
all files and free memory calling <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">swe_close();</span></span></font></font></font></p>
<p><br/>
</p>
<p style="text-indent: 0.49in"><font color="#000080">Here is a
miniature sample program, it is in the source distribution as
</font><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">swemini.c</span></span></font></font></font></p>
<p><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#include
"swephexp.h" /* this includes "sweodef.h" */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
main()</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">{</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*sp, sdate[AS_MAXCH], snam[40], serr[AS_MAXCH]; </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
jday = 1, jmon = 1, jyear = 2000;</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="fr-FR">double
jut = 0.0;</span></font></font></font></p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_ut, te, x2[6];</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="da-DK">long
iflag, iflgret;</span></font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
p;</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">iflag
= SEFLG_SPEED;</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">while
(TRUE) {</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">printf("\nDate
(d.m.y) ?");</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">gets(sdate);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> /*
stop if a period . is entered */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">if
(*sdate == '.') </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">return
OK;</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">if
(sscanf (sdate, "%d%*c%d%*c%d", &jday,&jmon,&jyear)
< 1) exit(1);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
/*</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* we have day, month and year and convert to Julian day number</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
*/</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tjd_ut
= swe_julday(jyear,jmon,jday,jut,SE_GREG_CAL); </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
/*</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* compute Ephemeris time from Universal time by adding delta_t</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* not required for Swisseph versions smaller than 1.60</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
*/</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
te = tjd_ut + swe_deltat(tjd_ut); */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">printf("date:
%02d.%02d.%d at 0:00 Universal time\n", jday, jmon, jyear);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">printf("planet
\tlongitude\tlatitude\tdistance\tspeed long.\n");</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
/*</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* a loop over all planets</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
*/</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">for
(p = SE_SUN; p <= SE_CHIRON; p++) {</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">if
(p == SE_EARTH) continue;</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> /*</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* do the coordinate calculation for this planet p</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
*/</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">iflgret
= swe_calc_ut(tjd_ut, p, iflag, x2, serr);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
Swisseph versions older than 1.60 require the following </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
statement instead */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
iflgret = swe_calc(te, p, iflag, x2, serr); */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
/*</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* if there is a problem, a negative value is returned and an </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* error message is in serr.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
*/</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">if
(iflgret < 0) </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="pt-BR">printf("error:
%s\n", serr);</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="pt-BR">
</span>/*</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* get the name of the planet p</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
*/</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">swe_get_planet_name(p,
snam);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
/*</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* print the coordinates</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
*/</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">printf("%10s\t%11.7f\t%10.7f\t%10.7f\t%10.7f\n",</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
snam, x2[0], x2[1], x2[2], x2[3]);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">}</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">}</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">return
OK;</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">}</font></font></font></p>
<ol>
<ol start="2">
<li/>
<h2 class="western" style="page-break-before: always"><a name="__RefHeading___Toc365635945"></a><a name="_Hlk477399311"></a>
2. The functions swe_calc_ut() and swe_calc()</h2>
<ol>
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635946"></a>
2.1. The call parameters</h3>
</ol>
</ol>
</ol>
<p class="western"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">swe_calc_ut()</span></span></font></font></font>
was introduced with Swisseph <b>version 1.60</b> and makes planetary
calculations a bit simpler. For the steps required, see the chapter
<font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#__RefHeading___Toc476664303">The
programming steps to get a planet’s position</a></u></font></font></font><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">.</span></span></font></font></font></p>
<p class="western"><a name="_Hlk477831317"></a><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">swe_calc_ut()</span></span></font></font></font>
and <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">swe_calc()</span></span></font></font></font>
work exactly the same way except that <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">swe_calc()</span></span></font></font></font>
requires <font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477830987">Ephemeris
Time</a></u></font></font></font><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">
</span></span></font></font></font>( more accurate: <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">Dynamical
Time</span></span></font></font></font> ) as a parameter whereas
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">swe_calc_ut()</span></span></font></font></font>
expects <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">Universal
Time</span></span></font></font></font>. For common astrological
calculations, you will only need <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">swe_calc_ut()</span></span></font></font></font>
and will not have to think anymore about the conversion between
Universal Time and Ephemeris Time.</p>
<p class="western"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">swe_calc_ut()</span></span></font></font></font>
and <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">swe_calc()</span></span></font></font></font>
compute positions of planets, asteroids, lunar nodes and apogees.
They are defined as follows:</p>
<p style="margin-left: 0.56in; text-indent: -0.44in"><a name="_Hlk477319384"></a>
<br/>
</p>
<p style="margin-left: 0.56in; text-indent: -0.44in"><a name="_Hlk477412409"></a><a name="_Hlk477830210"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
<b>swe_calc_ut</b> ( double <font color="#0000ff">tjd_ut</font>, int
<font color="#0000ff">ipl</font>, int <font color="#0000ff">iflag</font>,
double* <font color="#0000ff">xx</font>, char* <font color="#0000ff">serr</font>),</font></font></font></p>
<p class="western"><a name="F_Ref401629455"></a>where</p>
<p style="margin-left: 0.56in; text-indent: -0.44in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tjd_ut =<font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477330118">Julian
day</a></u></font></font></font>, Universal Time</font></font></font></p>
<p style="margin-left: 0.56in; text-indent: -0.44in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ipl =body
number</font></font></font></p>
<p style="margin-left: 0.56in; text-indent: -0.44in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">iflag =a
32 bit integer containing bit flags that indicate what kind of
computation is wanted</font></font></font></p>
<p style="margin-left: 0.56in; text-indent: -0.44in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">xx
=array of 6 doubles for longitude, latitude, distance, speed in
long., speed in lat., and speed in dist.</font></font></font></p>
<p style="margin-left: 0.56in; text-indent: -0.44in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">serr[256]
=character string to return error messages in case of error.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p class="western">and</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477320293"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
<b>swe_calc</b>(double tjd_et, int ipl, int iflag, double *xx, char
*serr),</font></font></font></p>
<p class="western">same but</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tjd_et = Julian
day, Ephemeris time, where tjd_et = tjd_ut + swe_deltat(tjd_ut)</font></font></font></p>
<p><br/>
</p>
<p style="margin-right: -0.02in">A detailed description of these
variables will be given in the following sections.</p>
<ol>
<ol>
<ol start="2">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635947"></a><a name="_Hlk477831517"></a>
2.2. Error handling and return values</h3>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in"><a name="_Hlk477831658"></a>On
success, <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">swe_calc</span></span></font></font></font>
( or <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">swe_calc_ut</span></span></font></font></font><b>
</b>)<i> </i>returns a 32-bit integer containing flag bits that
indicate what kind of computation has been done. This value may or
may not be equal to<b> </b><font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>iflag</b></font></font>.
If an option specified by<b> </b><font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>iflag</b></font></font>
cannot be fulfilled or makes no sense, <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">swe_calc</span></span></font></font></font>
just does what can be done. E.g., if you specify that you want JPL
ephemeris, but<b> </b><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">swe_calc</span></span></font></font></font><i>
</i>cannot find the ephemeris file, it tries to do the computation
with any available ephemeris. This will be indicated in the return
value of <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">swe_calc</span></span></font></font></font>.
So, to make sure that <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">swe_calc
()</span></span></font></font></font> did exactly what you had
wanted, you may want to check whether or not the return code <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>==
iflag</b></font></font>.</p>
<p style="margin-right: -0.02in"><a name="_Hlk477831866"></a>However,
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">swe_calc()</span></span></font></font></font>
might return an <font color="#800000"><b>fatal error code (< 0)</b></font>
and an error string in one of the following cases:</p>
<p style="margin-left: 0.25in; text-indent: -0.25in"><br/>
</p>
<ul>
<li/>
<p>if an illegal <font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477832010">body
number</a></u></font></font></font> has been specified</p>
<li/>
<p>if a Julian day beyond the ephemeris limits has been
specified</p>
<li/>
<p>if the length of the ephemeris file is not correct
(damaged file)</p>
<li/>
<p>on read error, e.g. a file index points to a position
beyond file length ( data on file are corrupt )</p>
<li/>
<p>if the copyright section in the ephemeris file has been
destroyed.</p>
</ul>
<p class="western"><br/>
</p>
<p style="margin-right: -0.02in">If any of these errors occurs,</p>
<p style="margin-right: -0.02in"><br/>
</p>
<ul>
<li/>
<p>the return code of the function is -1,</p>
<li/>
<p>the position and speed variables are set to zero,
</p>
<li/>
<p>the type of error is indicated in the error string <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>serr</b></font></font><b>.</b></p>
</ul>
<ol>
<ol>
<ol start="3">
<li/>
<h3 class="western" style="page-break-before: always"><a name="__RefHeading___Toc365635948"></a><a name="F_Ref401634330"></a><a name="_Hlk477320729"></a>
2.3. Bodies ( int ipl )</h3>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477832010"></a>To tell<b>
swe_calc()</b><i> </i>which celestial body or factor should be
computed, a fixed set of body numbers is used. The body numbers are
defined in <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><span lang="en-US">swephexp.h:</span></span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
planet numbers for the ipl parameter in swe_calc() */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_ECL_NUT -1 </font></font></font>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SUN 0 </font></font></font>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_MOON 1 </font></font></font>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_MERCURY 2 </font></font></font>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_VENUS 3 </font></font></font>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_MARS 4 </font></font></font>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_JUPITER 5 </font></font></font>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SATURN 6 </font></font></font>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_URANUS 7 </font></font></font>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_NEPTUNE 8 </font></font></font>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_PLUTO 9 </font></font></font>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_MEAN_NODE 10 </font></font></font>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_TRUE_NODE 11</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_MEAN_APOG 12 </font></font></font>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_OSCU_APOG 13 </font></font></font>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_EARTH 14 </font></font></font>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_CHIRON 15 </font></font></font>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_PHOLUS 16 </font></font></font>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_CERES 17 </font></font></font>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_PALLAS 18 </font></font></font>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_JUNO 19</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_VESTA 20</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_INTP_APOG 21</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_INTP_PERG 22</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_NPLANETS 23</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_FICT_OFFSET 40</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_NFICT_ELEM 15</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477832724"></a><a name="_Hlk477832209"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
Hamburger or Uranian "planets" */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_CUPIDO 40</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_HADES 41</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_ZEUS 42</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_KRONOS 43</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_APOLLON 44</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_ADMETOS 45</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_VULKANUS 46</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_POSEIDON 47</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
other fictitious bodies */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_ISIS 48</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_NIBIRU 49</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_HARRINGTON 50</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_NEPTUNE_LEVERRIER 51</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_NEPTUNE_ADAMS 52</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_PLUTO_LOWELL 53</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_PLUTO_PICKERING 54</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_AST_OFFSET 10000</font></font></font></p>
<p><br/>
</p>
<p class="western"><br/>
</p>
<ol>
<ol>
<ol>
<ol>
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365635949"></a><a name="_Hlk477320798"></a>
Additional asteroids</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in"><br/>
</p>
<p class="western">Body numbers of other asteroids are above
<font color="#000080">SE_AST_OFFSET (=10000)</font> and have to be
constructed as follows:</p>
<p class="western"><font color="#000080">ipl = SE_AST_OFFSET +
Minor_Planet_Catalogue_number;</font></p>
<p class="western">e.g. Eros : <font color="#000080">ipl =
SE_AST_OFFSET + 433</font></p>
<p class="western">The names of the asteroids and their catalogue
numbers can be found in <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">seasnam.txt.
</span></font></font></font>
</p>
<p class="western" style="page-break-before: always">Examples are:</p>
<p><br/>
</p>
<p style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">5 Astraea </font></font></font></p>
<p lang="pt-BR" style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">6 Hebe </font></font></font></p>
<p lang="pt-BR" style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">7 Iris </font></font></font></p>
<p lang="pt-BR" style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">8 Flora</font></font></font></p>
<p lang="pt-BR" style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">9 Metis</font></font></font></p>
<p lang="de-CH" style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">10 Hygiea </font></font></font></p>
<p style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">30 Urania </font></font></font></p>
<p style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">42 Isis not
identical with "Isis-Transpluto"</font></font></font></p>
<p style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">153 Hilda (has
an own asteroid belt at 4 AU)</font></font></font></p>
<p style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">227 Philosophia </font></font></font></p>
<p style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">251 Sophia </font></font></font></p>
<p style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">259 Aletheia </font></font></font></p>
<p style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">275 Sapientia </font></font></font></p>
<p style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">279 Thule (asteroid
close to Jupiter)</font></font></font></p>
<p style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">375 Ursula </font></font></font></p>
<p style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">433 Eros </font></font></font></p>
<p style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">763 Cupido different
from Witte's Cupido</font></font></font></p>
<p style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">944 Hidalgo </font></font></font></p>
<p style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">1181 Lilith (not
identical with Dark Moon 'Lilith')</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">1221 Amor </font></font></font></p>
<p lang="it-IT" style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">1387 Kama </font></font></font></p>
<p lang="it-IT" style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">1388 Aphrodite </font></font></font></p>
<p style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">1862 Apollo (different
from Witte's Apollon)</font></font></font></p>
<p style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">3553 Damocles highly
eccentric orbit betw. Mars and Uranus</font></font></font></p>
<p style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">3753 Cruithne ("second
moon" of earth)</font></font></font></p>
<p style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">4341 Poseidon Greek
Neptune (different from Witte's Poseidon)</font></font></font></p>
<p style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">4464 Vulcano fire
god (different from Witte's Vulkanus and intramercurian Vulcan)</font></font></font></p>
<p style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">5731 Zeus Greek
Jupiter (different from Witte's Zeus)</font></font></font></p>
<p style="margin-left: 0.38in; text-indent: 0.03in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">7066 Nessus third
named Centaur (beween Saturn and Pluto)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">There are two ephemeris files for
each asteroid (except the main asteroids), a long one and a short
one:</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">se09999.se1 long-term
ephemeris of asteroid number 9999, 3000 BC – 3000 AD</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">se09999s.se1 short
ephemeris of asteroid number 9999, 1500 – 2100 AD</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p class="western">The larger file is about 10 times the size of the
short ephemeris. If the user does not want an ephemeris for the time
before 1500 he might prefer to work with the short files. If so,
just copy the files ending with <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">”s.se1”</span></font></font></font>
to your hard disk. <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Swe_calc()</span></font></font></font><i>
</i>tries the long one and on failure automatically takes the short
one.</p>
<p>Asteroid ephemerides are looked for in the subdirectories <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">ast0,
ast1, ast2 .. ast9 etc</span></font></font></font> of the ephemeris
directory and, if not found there, in the ephemeris directory
itself. Asteroids with numbers 0 – 999 are expected in
directory <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">ast0</span></font></font></font>,
those with numbers 1000 – 1999 in directory <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">ast1</span></font></font></font>
etc.
</p>
<p><br/>
</p>
<p style="margin-bottom: 0.08in"><a name="_Hlk477863570"></a><a name="_Hlk478116834"></a>
<font color="#000000">Note that </font><font color="#ffffff"><font face="Arial, sans-serif"><b><span style="background: #0000ff">
not all asteroids </span></b></font></font><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><font color="#000000">
can be computed</font></span></font></font></font><font color="#000000">
for the whole period of Swiss Ephemeris. The orbits of some of </font>them
are extremely sensitive to perturbations by major planets. E.g.
<b>CHIRON</b>, cannot be computed for the time before <b>650 AD</b>
and after <b>4650 AD</b> because of close encounters with Saturn.
Outside this time range, Swiss Ephemeris returns the error code, an
error message, and a position value 0. Be aware, that the user will
<b>have to handle</b><i> </i>this case in his program. Computing
Chiron transits for Jesus or Alexander the Great <font color="#ffffff"><font face="Arial, sans-serif"><b><span style="background: #0000ff">will
not work</span></b></font></font><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><font color="#800000"><b>.</b></font></span></font></font></font></p>
<p style="margin-bottom: 0.08in">The same is true for Pholus before
<b>3850 BC</b>, and for many other asteroids, as e.g. 1862 Apollo.
He becomes chaotic before the year <b>1870 AD</b>, when he
approaches Venus very closely. Swiss Ephemeris does not provide
positions of Apollo for earlier centuries !</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p class="western"><b>Note on asteroid names</b></p>
<p style="margin-right: -0.02in">Asteroid names are listed in the
file <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">seasnam.txt</span></font></font></font>.
This file is in the ephemeris directory.</p>
<p style="margin-right: -0.02in; page-break-before: always"><br/>
</p>
<ol>
<ol>
<ol>
<ol start="2">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365635950"></a><a name="_Hlk477320919"></a>
Fictitious planets</h4>
</ol>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p class="western">Fictitious planets have numbers greater than or
equal to 40. The user can define his or her own fictitious planets.
The orbital elements of these planets must be written into the file
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">seorbel.txt</span></font></font></font>.
The function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font><i>
</i>looks for the file <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">seorbel.txt</span></font></font></font>
in the ephemeris path set by <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_set_ephe_path()</span></font></font></font>.
If no orbital elements file is found, <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font><i>
</i>uses the built-in orbital elements of the above mentioned
<font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477832724">Uranian
planets </a></u></font></font></font>and some other bodies. The
planet number of a fictitious planet is defined as
</p>
<p class="western"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ipl
= SE_FICT_OFFSET_1 + number_of_elements_set;</font></font></font></p>
<p lang="da-DK" class="western"><br/>
</p>
<p class="western"><span lang="da-DK">e.g. for Kronos: </span><font color="#000080"><span lang="da-DK">ipl
= 39 + 4 = 43</span></font><span lang="da-DK">.</span></p>
<p lang="da-DK" class="western"><br/>
</p>
<p class="western">The file <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">seorbel.txt</span></font></font></font>
has the following structure:</p>
<p><br/>
</p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
Orbital elements of fictitious planets</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
27 Jan. 2000</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
This file is part of the Swiss Ephemeris, from Version 1.60 on.</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
Warning! These planets do not exist!</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
The user can add his or her own elements.</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
960 is the maximum number of fictitious planets.</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
The elements order is as follows:</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
1. epoch of elements (Julian day)</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
2. equinox (Julian day or "J1900" or "B1950" or
"J2000" or “JDATE”)</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
3. mean anomaly at epoch</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
4. semi-axis</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
5. eccentricity</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
6. argument of perihelion (ang. distance of perihelion from node)</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
7. ascending node</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
8. inclination</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
9. name of planet</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
use '#' for comments</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
to compute a body with swe_calc(), use planet number </font></font>
</p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
ipl = SE_FICT_OFFSET_1 + number_of_elements_set,</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
e.g. number of Kronos is ipl = 39 + 4 = 43</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
Witte/Sieggruen planets, refined by James Neely</font></font></p>
<p lang="es-ES" style="border: 1px solid #000000; padding: 0.01in"><font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">J1900,
J1900, 163.7409, 40.99837, 0.00460, 171.4333, 129.8325, 1.0833,
Cupido # 1</font></font></p>
<p lang="nl-NL" style="border: 1px solid #000000; padding: 0.01in"><font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">J1900,
J1900, 27.6496, 50.66744, 0.00245, 148.1796, 161.3339, 1.0500,
Hades # 2</font></font></p>
<p lang="nl-NL" style="border: 1px solid #000000; padding: 0.01in"><font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">J1900,
J1900, 165.1232, 59.21436, 0.00120, 299.0440, 0.0000, 0.0000, Zeus
# 3</font></font></p>
<p lang="es-ES" style="border: 1px solid #000000; padding: 0.01in"><font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">J1900,
J1900, 169.0193, 64.81960, 0.00305, 208.8801, 0.0000, 0.0000,
Kronos # 4</font></font></p>
<p lang="es-ES" style="border: 1px solid #000000; padding: 0.01in"><font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">J1900,
J1900, 138.0533, 70.29949, 0.00000, 0.0000, 0.0000, 0.0000,
Apollon # 5</font></font></p>
<p lang="pt-BR" style="border: 1px solid #000000; padding: 0.01in"><font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">J1900,
J1900, 351.3350, 73.62765, 0.00000, 0.0000, 0.0000, 0.0000,
Admetos # 6</font></font></p>
<p lang="fi-FI" style="border: 1px solid #000000; padding: 0.01in"><font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">J1900,
J1900, 55.8983, 77.25568, 0.00000, 0.0000, 0.0000, 0.0000,
Vulcanus # 7</font></font></p>
<p lang="fi-FI" style="border: 1px solid #000000; padding: 0.01in"><font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">J1900,
J1900, 165.5163, 83.66907, 0.00000, 0.0000, 0.0000, 0.0000,
Poseidon # 8</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
Isis-Transpluto; elements from "Die Sterne" 3/1952, p.
70ff. </font></font>
</p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
Strubell does not give an equinox. 1945 is taken in order to </font></font>
</p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
reproduce the as best as ASTRON ephemeris. (This is a strange </font></font>
</p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
choice, though.)</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
The epoch according to Strubell is 1772.76. </font></font>
</p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
1772 is a leap year!</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
The fraction is counted from 1 Jan. 1772</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"><font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">2368547.66,
2431456.5, 0.0, 77.775, 0.3, 0.7, 0, 0, Isis-Transpluto
# 9</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
Nibiru, elements from Christian Woeltge, Hannover</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"><font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">1856113.380954,
1856113.380954, 0.0, 234.8921, 0.981092, 103.966, -44.567, 158.708,
Nibiru # 10</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
Harrington, elements from Astronomical Journal 96(4), Oct. 1988 </font></font>
</p>
<p style="border: 1px solid #000000; padding: 0.01in"><font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">2374696.5,
J2000, 0.0, 101.2, 0.411, 208.5, 275.4, 32.4, Harrington
# 11</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"> <font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
according to W.G. Hoyt, "Planets X and Pluto", Tucson
1980, p. 63 </font></font>
</p>
<p style="border: 1px solid #000000; padding: 0.01in"><font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">2395662.5,
2395662.5, 34.05, 36.15, 0.10761, 284.75, 0, 0, Leverrier (Neptune)
# 12</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"><font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">2395662.5,
2395662.5, 24.28, 37.25, 0.12062, 299.11, 0, 0, Adams (Neptune)
# 13</font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in"><font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">2425977.5,
2425977.5, 281, 43.0, 0.202, 204.9, 0, 0, Lowell (Pluto)
# 14</font></font></p>
<p lang="de-CH" style="border: 1px solid #000000; padding: 0.01in"><font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">2425977.5,
2425977.5, 48.95, 55.1, 0.31, 280.1, 100, 15, Pickering (Pluto)
# 15</font></font></p>
<p lang="de-CH" class="western" style="border: 1px solid #000000; padding: 0.01in">
<font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">J1900,JDATE,
252.8987988 + 707550.7341 * T, 0.13744, 0.019,
322.212069+1670.056*T, 47.787931-1670.056*T, 7.5, Vulcan # 16</font></font></p>
<p class="western" style="border: 1px solid #000000; padding: 0.01in">
<font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">#
Selena/White Moon</font></font></p>
<p class="western" style="border: 1px solid #000000; padding: 0.01in">
<font face="Lucida Console, monospace"><font size="2" style="font-size: 9pt">J2000,JDATE,
242.2205555, 0.05279142865925, 0.0, 0.0, 0.0, 0.0, Selena/White
Moon, geo # 17</font></font></p>
<p lang="da-DK" class="western"><br/>
</p>
<p lang="da-DK" class="western">All orbital elements except epoch
and equinox may have T terms, where</p>
<p lang="da-DK" class="western">T = (tjd – epoch) / 36525.
</p>
<p lang="da-DK" class="western">(See, e.g., Vulcan, the second last
elements set (not the ”Uranian” Vulcanus but the
intramercurian hypothetical planet Vulcan).) ”T * T”,
”T2”, ”T3” are also allowed.
</p>
<p lang="da-DK" class="western">The equinox can either be entered as
a Julian day or as ”J1900” or ”B1950” or
”J2000” or, if the equinox of date is required, as
”JDATE”. If you use T terms, note that precession has to
be taken into account with JDATE, whereas it has to be neglected
with fixed equinoxes.
</p>
<p lang="da-DK" class="western"><br/>
</p>
<p lang="da-DK" class="western">No T term is required with the mean
anomaly, i.e. for the speed of the body, because our software can
compute it from semi-axis and gravity. However, a mean anomaly T
term had to be added with Vulcan because its speed is not in
agreement with the laws of physics. In such cases, the software
takes the speed given in the elements and does not compute it
internally.</p>
<p lang="da-DK" class="western"><br/>
</p>
<p lang="da-DK" class="western">From Version 1.62 on, the software
also accepts orbital elements for fictitious bodies that move about
the earth. As an example, study the last elements set in the excerpt
of seorbel.txt above. After the name of the body, ”, geo”
has to be added.</p>
<p lang="da-DK" class="western"><br/>
</p>
<p lang="da-DK" class="western"><br/>
</p>
<p style="page-break-before: always"><br/>
</p>
<ol>
<ol>
<ol>
<ol start="3">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365635951"></a><a name="_Hlk477320958"></a>
Obliquity and nutation</h4>
</ol>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p class="western"><a name="_Hlk477832844"></a>A special body number
SE_ECL_NUT is provided to compute the obliquity of the ecliptic and
the nutation. Of course nutation is already added internally to the
planetary coordinates by <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font>
but sometimes it will be needed as a separate value.
</p>
<p class="western"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="fr-FR">iflgret
= </span><span lang="fr-FR"><b>swe_calc</b></span><span lang="fr-FR">(tjd_et,
SE_ECL_NUT, 0, x, serr);</span></font></font></font></p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><i>x</i>
is an array of 6 doubles as usual. They will be filled as follows:</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">x[0]
= true obliqutiy of the Ecliptic (includes nutation)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">x[1]
= mean obliquity of the Ecliptic</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">x[2]
= nutation in longitude</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">x[3]
= nutation in obliquity</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">x[4]
= x[5] = 0</font></font></font></p>
<ol>
<ol>
<ol start="4">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635952"></a>
2.4. Options chosen by flag bits<span style="font-weight: normal">
(long iflag)</span></h3>
<ol>
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365635953"></a><a name="_Hlk477321208"></a>
2.4.1. The use of flag bits</h4>
</ol>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p style="margin-right: -0.02in">If no bits are set, i.e. if <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>iflag
== 0</b></font></font>, <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font>
computes what common astrological ephemerides (as available in book
shops) supply, i.e. an <font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477833007">apparent</a></u></font></font></font>
body position in <b>geocentric</b> ecliptic polar coordinates (
longitude, latitude, and distance) relative to the true<b> </b><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477833149">equinox
of the date</a></u></font></font></font>.
</p>
<p style="margin-right: -0.02in">If the speed of the body is
required, set <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">iflag
= SEFLG_SPEED</font></font></font></p>
<p style="margin-right: -0.02in">For mathematical points as the mean
lunar node and the mean apogee, there is no apparent position.
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Swe_calc()</span></font></font></font><i>
</i>returns true positions for these points.</p>
<p style="margin-right: -0.02in">If you need another kind of
computation, use the flags explained in the following paragraphs
(c.f.<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">
swephexp.h</span></font></font></font>). Their names begin with
‚<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SEFLG_</font></font></font>‘.
To combine them, you have to concatenate them (inclusive-or) as in
the following example:</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="da-DK">iflag
= SEFLG_SPEED | SEFLG_TRUEPOS; (or: </span>iflag = SEFLG_SPEED +
SEFLG_TRUEPOS;<span lang="da-DK">) // C</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="da-DK">iflag
= SEFLG_SPEED </span><span lang="da-DK"><b>or</b></span><span lang="da-DK">
SEFLG_TRUEPOS;(or: </span>iflag = SEFLG_SPEED + SEFLG_TRUEPOS;<span lang="da-DK">)
// Pascal</span></font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">With this value of<b> </b><font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>iflag</b></font></font>,
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font>
will compute true positions ( i.e. not accounted for light-time )
with speed.</p>
<p style="margin-right: -0.02in">The flag bits, which are defined in
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swephexp.h</span></font></font></font>,
are:</p>
<p><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SEFLG_JPLEPH 1L // use JPL ephemeris </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SEFLG_SWIEPH 2L // use SWISSEPH ephemeris, default</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SEFLG_MOSEPH 4L // use Moshier ephemeris </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SEFLG_HELCTR 8L // return heliocentric position </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SEFLG_TRUEPOS 16L // return true positions, not apparent </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SEFLG_J2000 32L // no precession, i.e. give J2000 equinox </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SEFLG_NONUT 64L // no nutation, i.e. mean equinox of date </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SEFLG_SPEED3 128L // speed from 3 positions (do not use it,
SEFLG_SPEED is</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> //
faster and preciser.) </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SEFLG_SPEED 256L // high precision speed (analyt. comp.)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SEFLG_NOGDEFL 512L // turn off gravitational deflection </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SEFLG_NOABERR 1024L // turn off 'annual' aberration of light </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SEFLG_EQUATORIAL 2048L // equatorial positions are wanted </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SEFLG_XYZ 4096L // cartesian, not polar, coordinates </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SEFLG_RADIANS 8192L // coordinates in radians, not degrees </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SEFLG_BARYCTR 16384L // barycentric positions </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SEFLG_TOPOCTR (32*1024L) // topocentric positions </font></font></font>
</p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SEFLG_SIDEREAL (64*1024L) // sidereal positions </font></font></font>
</p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SEFLG_ICRS (128*1024L) // ICRS (DE406 reference frame) </font></font></font>
</p>
<ol>
<ol>
<ol>
<ol start="2">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365635954"></a><a name="_Hlk477321234"></a>
2.4.2. Ephemeris flags</h4>
</ol>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p style="margin-right: -0.02in">The flags to choose an ephemeris
are: (s. <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swephexp.h</span></font></font></font>)</p>
<p><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SEFLG_JPLEPH
/* use JPL ephemeris */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SEFLG_SWIEPH
/* use Swiss Ephemeris */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SEFLG_MOSEPH
/* use Moshier ephemeris */</font></font></font></p>
<p class="western"><br/>
</p>
<p style="margin-right: -0.02in">If none of this flags is specified,
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font>
tries to compute the default ephemeris. The default ephemeris is
defined in<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">
swephexp.h:</span></font></font></font></p>
<p lang="de-CH" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SEFLG_DEFAULTEPH SEFLG_SWIEPH</font></font></font></p>
<p style="margin-right: -0.02in"><a name="_Hlk477833574"></a>In this
case the default ephemeris is Swiss Ephemeris. If you have not
specified an ephemeris in<b> </b><font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>iflag</b></font></font>,
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font>
tries to compute a Swiss Ephemeris position. If it does not find the
required Swiss Ephemeris file either, it computes a Moshier
position.
</p>
<ol>
<ol>
<ol>
<ol start="3">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365635955"></a><a name="_Hlk477321274"></a>
2.4.3. Speed flag</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Swe_calc()</span></font></font></font><i>
</i>does not compute speed if you do not add the speed flag
SEFLG_SPEED. E.g.
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">iflag
|= SEFLG_SPEED; </font></font></font>
</p>
<p class="western">The computation of speed is usually cheap, so you
may set this bit by default even if you do not need the speed.</p>
<p class="western"><br/>
</p>
<ol>
<ol>
<ol>
<ol start="4">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365635956"></a><a name="_Hlk477321265"></a>
2.4.4. Coordinate systems, degrees and radians</h4>
</ol>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477833734"></a>SEFLG_EQUATORIAL returns
equatorial positions: rectascension and declination.</p>
<p style="margin-right: -0.02in"><a name="_Hlk477833826"></a>SEFLG_XYZ returns
x, y, z coordinates instead of longitude, latitude, and distance.</p>
<p style="margin-right: -0.02in"><a name="_Hlk477833841"></a>SEFLG_RADIANS
returns position in radians, not degrees.</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">E.g. to compute rectascension and
declination, write:</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">iflag
= SEFLG_SWIEPH | SEFLG_SPEED | SEFLG_EQUATORIAL;</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="5">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365635957"></a>
2.4.5. Specialties (going beyond common interest)</h4>
<ol>
<li/>
<h5 class="western"><a name="__RefHeading___Toc365635958"></a><a name="_Hlk477321411"></a>
a. True or apparent positions</h5>
</ol>
</ol>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in"><a name="_Hlk477833007"></a>Common
ephemerides supply apparent geocentric positions. Since the journey
of the light from a planet to the earth takes some time, the planets
are never seen where they actually are, but where they were a few
minutes or hours before. Astrology uses to work with the positions
<b>we see</b>. ( More precisely: with the positions we would see, if
we stood at the center of the earth and could see the sky. Actually,
the geographical position of the observer could be of importance as
well and <font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477833975">topocentric
positions</a></u></font></font></font><i> </i>could be computed, but
this is usually not taken into account in astrology.). The
geocentric position for the earth (SE_EARTH) is returned as zero.</p>
<p style="margin-right: -0.02in"><a name="_Hlk477834072"></a>To
compute the <b>true</b><i> </i>geometrical position of a planet,
disregarding light-time, you have to add the flag <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SEFLG_TRUEPOS.</font></font></font></p>
<ol>
<ol>
<ol>
<ol>
<ol start="2">
<li/>
<h5 class="western"><a name="__RefHeading___Toc365635959"></a><a name="_Hlk477321643"></a>
b. Topocentric positions</h5>
</ol>
</ol>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in"><a name="_Hlk477833975"></a>To
compute topocentric positions, i.e. positions referred to the place
of the observer (the birth place) rather than to the center of the
earth, do as follows:</p>
<ul>
<li/>
<p style="margin-right: -0.02in">call <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><b>swe_set_topo</b></font></font></font><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">(geo_lon,
geo_lat, altitude_above_sea)</font></font></font> (The longitude
and latitude must be in <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">degrees</span></font></font></font>,
the altitude in <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">meters</span></font></font></font>.)</p>
<li/>
<p style="margin-right: -0.02in">add the flag <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SEFLG_TOPOCTR</font></font></font>
to<b> </b><font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>iflag</b></font></font></p>
<li/>
<p style="margin-right: -0.02in">call <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">swe_calc(...)</font></font></font></p>
</ul>
<ol>
<ol>
<ol>
<ol>
<ol start="3">
<li/>
<h5 class="western"><a name="__RefHeading___Toc365635960"></a><a name="_Hlk477321658"></a>
c. Heliocentric positions</h5>
</ol>
</ol>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in">To compute a heliocentric position,
add <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SEFLG_HELCTR.</font></font></font></p>
<p style="margin-right: -0.02in">A heliocentric position can be
computed for all planets including the moon. For the <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">sun,
lunar nodes</span></font></font></font> and <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">lunar
apogees</span></font></font></font> the coordinates are returned as
zero; <b>no error message appears</b>.</p>
<ol>
<ol>
<ol>
<ol>
<ol start="4">
<li/>
<h5 class="western"><a name="__RefHeading___Toc365635961"></a><a name="_Hlk477321673"></a>
d. Barycentric positions</h5>
</ol>
</ol>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SEFLG_BARYCTR</font></font></font>
yields coordinates as referred to the solar system barycenter.
However, this option is not completely implemented. It was used for
program tests during development. It works only with the JPL and
the Swiss Ephemeris, <b>not with the Moshier</b> ephemeris; and <b>only
with physical bodies</b>, but not with the nodes and the apogees.</p>
<p style="margin-right: -0.02in">Moreover, the barycentric Sun of
Swiss Ephemeris has ”only” a precision of 0.1”.
Higher accuracy would have taken a lot of storage, on the other hand
it is not needed for precise geocentric and heliocentric positions.
For more precise barycentric positions the JPL ephemeris file should
be used.</p>
<p style="margin-right: -0.02in">A barycentric position can be
computed <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">for
all planets</span></font></font></font> including the sun and moon.
For the lunar nodes and lunar apogees the coordinates are returned
as zero; no error message appears.</p>
<ol>
<ol>
<ol>
<ol>
<ol start="5">
<li/>
<h5 class="western"><a name="__RefHeading___Toc365635962"></a><a name="_Hlk477321696"></a>
e. Astrometric positions</h5>
</ol>
</ol>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in">For astrometric positions, which
are sometimes given in the Astronomical Almanac, the light-time
correction is computed, but annual aberration and the
light-deflection by the sun neglected. This can be done with
SEFLG_NOABERR and SEFLG_NOGDEFL. For positions related to the mean
equinox of 2000, you must set SEFLG_J2000 and SEFLG_NONUT, as well.</p>
<ol>
<ol>
<ol>
<ol>
<ol start="6">
<li/>
<h5 class="western"><a name="__RefHeading___Toc365635963"></a><a name="_Hlk477321511"></a><a name="_Hlk477833149"></a>
f. True or mean equinox of date</h5>
</ol>
</ol>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Swe_calc()</span></font></font></font>
usually computes the positions as referred to the true equinox of
the date ( i.e. with nutation ). If you want the mean equinox, you
can turn nutation off, using the flag bit SEFLG_NONUT.</p>
<ol>
<ol>
<ol>
<ol>
<ol start="7">
<li/>
<h5 class="western"><a name="__RefHeading___Toc365635964"></a><a name="_Hlk477321486"></a>
g. J2000 positions and positions referred to other equinoxes</h5>
</ol>
</ol>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Swe_calc()</span></font></font></font>
usually computes the positions as referred to the equinox of date.
SEFLG_J2000 yields data referred to the equinox J2000. For positions
referred to other equinoxes, SEFLG_SIDEREAL has to be set and the
equinox specified by <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_set_sid_mode()</span></font></font></font>.
For more information, read the description of this function.</p>
<ol>
<ol>
<ol>
<ol>
<ol start="8">
<li/>
<h5 class="western"><a name="__RefHeading___Toc365635965"></a><a name="_Hlk477321473"></a>
h. Sidereal positions</h5>
</ol>
</ol>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in">To compute sidereal positions, set
bit SEFLG_SIDEREAL and use the function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_set_sid_mode()</span></font></font></font>
in order to define the <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>ayanamsha</b></font></font>
you want. For more information, read the description of this
function.</p>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol>
<ol start="5">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635966"></a><a name="_Hlk477325102"></a>
2.5. Position and Speed <span style="font-weight: normal">(double
xx[6])</span></h3>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p style="margin-right: -0.02in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font><i>
</i>returns the coordinates of position and velocity in the
following order:</p>
<p><br/>
</p>
<table width="627" cellpadding="7" cellspacing="0">
<col width="256">
<col width="340">
<tr valign="top">
<td width="256" style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0in; padding-left: 0.08in; padding-right: 0in">
<p class="western" align="center"><b>Ecliptic position</b></p>
</td>
<td width="340" style="border: 1px solid #000000; padding: 0in 0.08in">
<p class="western" align="center"><b>Equatorial position (
</b>SEFLG_EQUATORIAL<b> )</b></p>
</td>
</tr>
<tr valign="top">
<td width="256" style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0in; padding-left: 0.08in; padding-right: 0in">
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">Longitude</font></font></font></p>
</td>
<td width="340" style="border: 1px solid #000000; padding: 0in 0.08in">
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">Rectascension</font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="256" style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0in; padding-left: 0.08in; padding-right: 0in">
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">Latitude</font></font></font></p>
</td>
<td width="340" style="border: 1px solid #000000; padding: 0in 0.08in">
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">Declination</font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="256" style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0in; padding-left: 0.08in; padding-right: 0in">
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">Distance
in AU</font></font></font></p>
</td>
<td width="340" style="border: 1px solid #000000; padding: 0in 0.08in">
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">distance
in AU</font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="256" style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0in; padding-left: 0.08in; padding-right: 0in">
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">Speed
in longitude (deg/day)</font></font></font></p>
</td>
<td width="340" style="border: 1px solid #000000; padding: 0in 0.08in">
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">Speed
in rectascension (deg/day)</font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="256" style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0in; padding-left: 0.08in; padding-right: 0in">
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">Speed
in latitude (deg/day)</font></font></font></p>
</td>
<td width="340" style="border: 1px solid #000000; padding: 0in 0.08in">
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">Speed
in declination (deg/day)</font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="256" style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0in; padding-left: 0.08in; padding-right: 0in">
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">Speed
in distance (AU/day)</font></font></font></p>
</td>
<td width="340" style="border: 1px solid #000000; padding: 0in 0.08in">
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">Speed
in distance (AU/day)</font></font></font></p>
</td>
</tr>
</table>
<p><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477324768"></a>If you
need rectangular coordinates ( SEFLG_XYZ ), <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font>
returns <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">x,
y, z, dx, dy, dz</span></font></font></font> in <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">AU</span></font></font></font>.</p>
<p style="margin-right: -0.02in">Once you have computed a planet,
e.g., in ecliptic coordinates, its equatorial position or its
rectangular coordinates are available, too. You can get them very
cheaply ( little CPU time used ), calling again <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font><i>
</i>with the same parameters, but adding SEFLG_EQUATORIAL or
SEFLG_XYZ to<font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>
iflag</b></font></font>.<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">
swe_calc()</span></font></font></font> will not compute the body
again, just return the data specified from internal storage.</p>
<p class="western"><a name="OLE_LINK1"></a><br/>
</p>
<ol>
<ol start="3">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365635967"></a>
3. The function swe_get_planet_name()</h2>
</ol>
</ol>
<p style="margin-right: -0.02in"><a name="_Hlk477834622"></a>This
function allows to find a planetary or asteroid name, when the
planet number is given. The function definition is
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477324852"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char*
<b>swe_get_planet_name</b>(int ipl, char *spname); </font></font></font>
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">If an asteroid name is wanted, the
function does the following:</p>
<p style="margin-right: -0.02in"><br/>
</p>
<ul>
<li/>
<p style="margin-right: -0.02in">The name is first looked for
in the asteroid file.
</p>
<li/>
<p style="margin-right: -0.02in">Because many asteroids,
especially the ones with high catalogue numbers, have no names yet
(or have only a preliminary designation like 1968 HB), and because
the Minor Planet Center of the IAU add new names quite often, it
happens that there is no name in the asteroid file although the
asteroid has already been given a name. For this, we have the file
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">seasnam.txt</span></font></font></font>,
a file that contains a list of all named asteroid and is usually
more up to date. If <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font>
finds a preliminary designation, it looks for a name in this file.
</p>
</ul>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">The file <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">seasnam.txt</span></font></font></font>
can be updated by the user. To do this, download the names list from
the Minor Planet Center
<font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="http://cfa-www.harvard.edu/iau/lists/MPNames.html">http://cfa-www.harvard.edu/iau/lists/MPNames.html</a></u></font></font></font>,
rename it as <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">seasnam.txt</span></font></font></font>
and move it into your ephemeris directory.</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">The file <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">seasnam.txt</span></font></font></font>
need not be ordered in any way. There must be one asteroid per line,
first its catalogue number, then its name. The asteroid number may
or may not be in brackets.</p>
<p style="margin-right: -0.02in; page-break-before: always">Example:</p>
<p><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">(3192)
A'Hearn</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">(3654)
AAS</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">(8721)
AMOS</font></font></font></p>
<p lang="nl-NL" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">(3568)
ASCII</font></font></font></p>
<p lang="nl-NL" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">(2848)
ASP</font></font></font></p>
<p lang="nl-NL" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">(677)
Aaltje</font></font></font></p>
<p lang="nl-NL" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">...</font></font></font></p>
<ol>
<ol start="4">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365635968"></a>
4. Fixed stars functions</h2>
<ol>
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635969"></a>
4.1 swe_fixstar_ut</h3>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in">The function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_fixstar_ut()</span></font></font></font>
was introduced with Swisseph <b>version 1.60</b>. It does exactly
the same as <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_fixstar()</span></font></font></font>
except that it expects Universal Time rather than Ephemeris time as
an input value. (cf. <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc_ut()</span></font></font></font>
and <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font>)</p>
<p style="margin-right: -0.02in">The functions <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_fixstar_ut()</span></font></font></font>
and <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_fixstar()</span></font></font></font><i>
</i>computes fixed stars. They are defined as follows:</p>
<p class="western"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477325162"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">long
<b>swe_fixstar_ut</b>(char* <font color="#0000ff">star</font>,
double <font color="#0000ff">tjd_ut</font>, long <font color="#0000ff">iflag</font>,
double* <font color="#0000ff">xx</font>, char* <font color="#0000ff">serr</font>);</font></font></font></p>
<p class="western">where</p>
<p style="margin-left: 0.06in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">star =name
of fixed star to be searched, returned name of found star</font></font></font></p>
<p style="margin-left: 0.06in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tjd_ut =Julian
day in Universal Time</font></font></font></p>
<p style="margin-left: 0.06in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">iflag =an
integer containing several flags that indicate what kind of
computation is wanted</font></font></font></p>
<p style="margin-left: 0.06in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">xx =array
of 6 doubles for longitude, latitude, distance, speed in long.,
speed in lat., and speed in dist.</font></font></font></p>
<p style="margin-left: 0.06in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">serr[256]
=character string to contain error messages in case of error.</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">For
more info, see below under 4.2. swe_fixstar()</font></font></font></p>
<p><br/>
</p>
<ol>
<ol>
<ol start="2">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635970"></a>
4.2 swe_fixstar()</h3>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477325176"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">long
<b>swe_fixstar</b>(char *<font color="#0000ff">star</font>, double
<font color="#0000ff">tjd_et</font>, long <font color="#0000ff">iflag</font>,
double* <font color="#0000ff">xx</font>, char* <font color="#0000ff">serr</font>);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">same,
but tjd_et= Julian day in Ephemeris Time</font></font></font></p>
<p><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477835149"></a>The
parameter <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>star</b></font></font>
must provide for at least 41 characters for the returned star name.
If a star is found, its name is returned in this field in the
following format:<br><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">traditional_name,
nomenclature_name</span></font></font></font> <span lang="da-DK">e.g.
</span><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">"Aldebaran,alTau"</span></font></font></font><span lang="da-DK">.</span></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477835264"></a>The
function has three modes to search for a star in the file<font face="Verdana, sans-serif">
</font><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">fixstars.cat</span></font></font></font><font face="Verdana, sans-serif">:</font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<ul>
<li/>
<p style="margin-right: -0.02in"><font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>star</b></font></font>
contains a positive number ( in ASCII string format, e.g.<font color="#000080">
"234"</font>): The 234-<font size="2" style="font-size: 9pt">th</font>
non-comment line in the file <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">fixstars.cat</span></font></font></font>
is used. Comment lines begin with # and are ignored.</p>
<li/>
<p style="margin-right: -0.02in"><font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>star</b></font></font><b>
</b>contains a traditional name: the first star in the file<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">
fixstars.cat</span></font></font></font> is used whose traditional
name fits the given name. All names are mapped to lower case before
comparison. If <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>star</b></font></font>
has <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>n</b></font></font>
characters, only the first <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>n</b></font></font>
characters of the traditional name field are compared. If a comma
appears after a non-zero-length traditional name, the traditional
name is cut off at the comma before the search. This allows the
reuse of the returned star name from a previous call in the next
call.</p>
<li/>
<p style="margin-right: -0.02in"><font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>star</b></font></font><b>
</b>begins with a comma, followed by a nomenclature name, e.g.
<font color="#000080">",alTau"</font>: the star with this
name in the nomenclature field ( the second field ) is returned.
Letter case is observed in the comparison for nomenclature names.
</p>
</ul>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">For correct spelling of
nomenclature names, see file<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">
fixstars.cat</span></font></font></font>. Nomenclature names are
usually composed of a Greek letter and the name of a star
constellation. The Greek letters were originally used to write
numbers, therefore to number the stars of the constellation. The
abbreviated nomenclature names we use in <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">fixstars.cat</span></font></font></font>
are constructed from two lowercase letters for the Greek letter
(e.g. <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">”al”</span></font></font></font>
for <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">”alpha”</span></font></font></font>)
and three letters for the constellation (e.g. <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">”Tau”</span></font></font></font>
for <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">”Tauri”</span></font></font></font>).</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">The function and the DLL should
survive damaged <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">fixstars.cat</span></font></font></font>
files which contain illegal data and star names exceeding the
accepted length. Such fields are cut to acceptable length.</p>
<p class="western">There are two special entries in the file
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">fixstars.cat:</span></font></font></font></p>
<p class="western"><br/>
</p>
<ul>
<li/>
<p class="western">an entry for the Galactic Center, named
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">"Gal.
Center"</span></font></font></font> with one blank.</p>
<li/>
<p class="western">a star named <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">"AA_page_B40"</span></font></font></font>
which is the star calculation sample of Astronomical Almanac (our
bible of the last two years), page B40.</p>
</ul>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">You may edit the star catalogue and
move the stars you prefer to the top of the file. This will increase
the speed of your computations. The search mode is linear through
the whole star file for each call of <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_fixstar()</span></font></font></font>.</p>
<p style="margin-right: -0.02in">As for the explanation of the other
parameters, see <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc().</span></font></font></font></p>
<p style="margin-right: -0.02in">Barycentric positions are not
implemented. The difference between geocentric and heliocentric fix
star position is noticeable and arises from parallax and
gravitational deflection.
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477863706"></a><font color="#ffffff"><font face="Arial, sans-serif"><b><span style="background: #0000ff">Attention:</span></b></font></font>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_fixstar()</span></font></font></font><font color="#800000"><i><b>
</b></i></font><font color="#800000"><b>does not compute speeds</b></font><font color="#800000">
</font>of the fixed stars. If you need them, you have to compute
them on your own, calling <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_fixstar()</span></font></font></font><i>
</i>for a second ( and third ) time.</p>
<p><br/>
</p>
<ol>
<ol>
<ol start="3">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635971"></a>
4.3 swe_fixstar_mag()</h3>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">long
<b>swe_fixstar_mag</b>(char *<font color="#0000ff">star</font>,
double* <font color="#0000ff">mag</font>, char* <font color="#0000ff">serr</font>);</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">Function calculates the magnitude
of a fixed star. The function returns OK or ERR. The magnitude value
is returned in the parameter <font color="#0000ff">mag</font>.
</p>
<p style="margin-right: -0.02in">For the definition and use of the
parameter <font color="#0000ff">star</font> see function
swe_fixstar(). The parameter <font color="#0000ff">serr</font> and
is, as usually, an error string pointer.</p>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol start="5">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365635972"></a>
5. Apsides functions</h2>
<ol>
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635973"></a>
5.1 swe_nod_aps_ut</h3>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in"><a name="_Hlk477836016"></a>The
functions <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_nod_aps_ut()</span></font></font></font>
and <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_nod_aps()</span></font></font></font>
compute planetary nodes and apsides ( perihelia, aphelia, second
focal points of the orbital ellipses ). Both functions do exactly
the same except that they expect a different time parameter (cf.
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc_ut()</span></font></font></font>
and <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()
</span></font></font></font>).</p>
<p lang="ru-RU" style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">The definitions are:
</p>
<p><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477325741"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_nod_aps_ut</b>(double <font color="#0000ff">tjd_ut</font>,
int32 <font color="#0000ff">ip</font>l, int32 <font color="#0000ff">iflag</font>,
int32 <font color="#0000ff">method</font>, double *<font color="#0000ff">xnasc</font>,
double *<font color="#0000ff">xndsc</font>, double *<font color="#0000ff">xperi</font>,
double *<font color="#0000ff">xaphe</font>, char *<font color="#0000ff">serr</font>);</font></font></font></p>
<p>where</p>
<p style="margin-left: 0.44in; text-indent: -0.04in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tjd_ut =Julian
day in Universal Time</font></font></font></p>
<p style="margin-left: 0.44in; text-indent: -0.04in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ipl
=planet number</font></font></font></p>
<p style="margin-left: 0.44in; text-indent: -0.04in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">iflag =same
as with swe_calc_ut() and swe_fixstar_ut()</font></font></font></p>
<p style="margin-left: 0.44in; text-indent: -0.04in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">method =another
integer that specifies the calculation method, see explanations
below</font></font></font></p>
<p style="margin-left: 0.44in; text-indent: -0.04in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">xnasc =array
of 6 doubles for ascending node</font></font></font></p>
<p style="margin-left: 0.44in; text-indent: -0.04in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">xndsc =array
of 6 doubles for descending node</font></font></font></p>
<p style="margin-left: 0.44in; text-indent: -0.04in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">xperi =array
of 6 doubles for perihelion</font></font></font></p>
<p style="margin-left: 0.44in; text-indent: -0.04in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">xaphe =array
of 6 doubles for aphelion</font></font></font></p>
<p style="margin-left: 0.44in; text-indent: -0.04in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">serr[256]
=character string to contain error messages in case of error.</font></font></font></p>
<ol>
<ol>
<ol start="2">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635974"></a>
5.2 swe_nod_aps()</h3>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477325759"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_nod_aps</b>(double tjd_et, int32 ipl, int32 iflag, int32
method, double *xnasc, double *xndsc, double *xperi, double *xaphe,
char *serr);</font></font></font></p>
<p class="western">same, but</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tjd_et = Julian
day in Ephemeris Time</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">The parameter <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>iflag</b></font></font>
allows the same specifications as with the function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc_ut()</span></font></font></font>.
I.e., it contains the Ephemeris flag, the heliocentric, topocentric,
speed, nutation flags etc. etc.</p>
<p style="margin-right: -0.02in"><a name="_Hlk477836150"></a>The
parameter <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>method</b></font></font>
tells the function what kind of nodes or apsides are required:</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_NODBIT_MEAN 1</font></font></font></p>
<p lang="ru-RU" style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">This is also the default. Mean
nodes and apsides are calculated for the bodies that have them, i.e.
for the Moon and the planets Mercury through Neptune, osculating
ones for Pluto and the asteroids.</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_NODBIT_OSCU 2</font></font></font></p>
<p lang="ru-RU" style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">Osculating nodes and apsides are
calculated for all bodies.</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_NODBIT_OSCU_BAR 4</font></font></font></p>
<p lang="ru-RU" style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">Osculating nodes and apsides are
calculated for all bodies. With planets beyond Jupiter, they are
computed from a barycentric ellipse. Cf. the explanations in<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">
swisseph.doc.</span></font></font></font></p>
<p lang="ru-RU" style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">If this bit is combined with
SE_NODBIT_MEAN, mean values are given for the planets Mercury -
Neptun.</p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_NODBIT_FOPOINT 256</font></font></font></p>
<p lang="ru-RU" style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">The second focal point of the
orbital ellipse is computed and returned in the array of the
aphelion. This bit can be combined with any other bit.</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">It is not meaningful to compute
mean oribital elements topocentrically. The concept of mean elements
precludes consideration of any short term fluctuations in
coordinates.</p>
<p style="margin-right: -0.02in; page-break-before: always"><br/>
</p>
<ol>
<ol start="6">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365635975"></a>
6. Eclipse and planetary phenomena functions</h2>
</ol>
</ol>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">There are the following functions
for eclipse and occultation calculations.
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><b>Solar eclipses:</b></p>
<ul>
<li/>
<p style="margin-right: -0.02in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_sol_eclipse_when_loc(
tjd...)</span></font></font></font> finds the next eclipse for a
given geographic position.</p>
<li/>
<p style="margin-right: -0.02in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_sol_eclipse_when_glob(
tjd...)</span></font></font></font> finds the next eclipse
globally.</p>
<li/>
<p style="margin-right: -0.02in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_sol_eclipse_where()</span></font></font></font>
computes the geographic location of a solar eclipse for a given
tjd.
</p>
<li/>
<p style="margin-right: -0.02in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_sol_eclipse_how()</span></font></font></font>
computes attributes of a solar eclipse for a given <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">tjd</span></font></font></font>,
geographic <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">longitude,
latitude</span></font></font></font> and <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">height</span></font></font></font>.</p>
</ul>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><b>Occultations of planets by the
moon:</b></p>
<p style="margin-right: -0.02in">These functions can also be used
for solar eclipses. But they are slightly less efficient.</p>
<ul>
<li/>
<p style="margin-right: -0.02in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_lun_occult_when_loc(
tjd...)</span></font></font></font> finds the next occultation for
a body and a given geographic position.</p>
<li/>
<p style="margin-right: -0.02in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_lun_occult_when_glob(
tjd...)</span></font></font></font> finds the next occultation of a
given body globally.</p>
<li/>
<p style="margin-right: -0.02in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_lun_occult_where()</span></font></font></font>
computes the geographic location of an occultation for a given tjd.
</p>
</ul>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><b>Lunar eclipses:</b></p>
<ul>
<li/>
<p style="margin-right: -0.02in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_lun_eclipse_when(tjd...)</span></font></font></font>
finds the next lunar eclipse.</p>
<li/>
<p style="margin-right: -0.02in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_lun_eclipse_how()
</span></font></font></font>computes the attributes of a lunar
eclipse for a given <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">tjd.</span></font></font></font></p>
</ul>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><b>Risings, settings, and meridian
transits of planets and stars:</b></p>
<ul>
<li/>
<p style="margin-right: -0.02in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_rise_trans()</span></font></font></font></p>
<li/>
<p style="margin-right: -0.02in">swe_rise_trans_true_hor( )
returns rising and setting times for a local horizon with altitude
!= 0</p>
</ul>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><b>Planetary phenomena:</b></p>
<ul>
<li/>
<p style="margin-right: -0.02in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_pheno_ut()</span></font></font></font>
and <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_pheno()</span></font></font></font>
compute phase angle, phase, elongation, apparent diameter, and
apparent magnitude of the Sun, the Moon, all planets and asteroids.</p>
</ul>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol>
<ol>
<li/>
<h3 lang="en-GB" class="western"><a name="__RefHeading___Toc365635976"></a>
6.0. Example of a typical eclipse calculation</h3>
</ol>
</ol>
</ol>
<p lang="en-GB" style="margin-right: -0.02in">Find the next total
eclipse, calculate the geographical position where it is maximal and
the four contacts for that position (for a detailed explanation of
all eclipse functions see the next chapters):</p>
<p lang="en-GB" style="margin-right: -0.02in"><br/>
</p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tret[10], attr[20], geopos[10];</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
serr[255];</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
whicheph = 0; /* default ephemeris */ </font></font></font>
</p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_start = 2451545; /* Julian day number for 1 Jan 2000 */</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifltype = SE_ECL_TOTAL ¦ SE_ECL_CENTRAL ¦
SE_ECL_NONCENTRAL;</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
find next eclipse anywhere on earth */</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">eclflag
= swe_sol_eclipse_when_glob(tjd_start, whicheph, ifltype, tret, 0,
serr);</font></font></font></p>
<p lang="de-DE" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">if
(eclflag == ERR)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="en-GB">return
ERR;</span></font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
the time of the greatest eclipse has been returned in tret[0]; </font></font></font>
</p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
now we can find geographical position of the eclipse maximum */</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tjd_start
= tret[0];</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">eclflag
= swe_sol_eclipse_where(tjd_start, whicheph, geopos, attr, serr);</font></font></font></p>
<p lang="de-DE" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">if
(eclflag == ERR)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="en-GB">return
ERR;</span></font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
the geographical position of the eclipse maximum is in geopos[0] and
geopos[1];</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
now we can calculate the four contacts for this place. The start
time is chosen</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
a day before the maximum eclipse: */</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tjd_start
= tret[0] - 1;</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">eclflag
= swe_sol_eclipse_when_loc(tjd_start, whicheph, geopos, tret, attr,
0, serr);</font></font></font></p>
<p lang="de-DE" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">if
(eclflag == ERR)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="en-GB">return
ERR;</span></font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
now tret[] contains the following values:</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
tret[0] = time of greatest eclipse (Julian day number)</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
tret[1] = first contact</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
tret[2] = second contact</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
tret[3] = third contact</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
tret[4] = fourth contact */</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol>
<ol start="2">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635977"></a>
6.1. swe_sol_eclipse_when_loc() and swe_lun_occult_when_loc()</h3>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477836581"></a>To find
the next eclipse for a given geographic position, use
swe_sol_eclipse_when_loc().
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477326105"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_sol_eclipse_when_loc</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_start, /* start date for search, Jul. day UT */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifl, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* 3 doubles for geo. lon, lat, height eastern longitude
is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
western longitude is negative, northern latitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
southern latitude is negative */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*tret, /* return array, 10 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*attr, /* return array, 20 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">AS_BOOL
backward, /* TRUE, if backward search */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">The function returns:
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
retflag -1 (ERR) on error (e.g. if swe_calc() for sun or moon fails)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> SE_ECL_TOTAL
or SE_ECL_ANNULAR or SE_ECL_PARTIAL</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> SE_ECL_VISIBLE,
</font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> SE_ECL_MAX_VISIBLE,
</font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> SE_ECL_1ST_VISIBLE,
SE_ECL_2ND_VISIBLE</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> SE_ECL_3ST_VISIBLE,
SE_ECL_4ND_VISIBLE</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
</font><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477836682"></a>
<font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[0] time
of maximum eclipse</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[1] time
of first contact</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[2] time
of second contact</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[3] time
of third contact</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[4] time
of forth contact</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[5] time
of sunrise between first and forth contact (not implemented so far)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[6] time
of sunset beween first and forth contact (not implemented so far)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
</font><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[0] fraction
of solar diameter covered by moon;</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> with
total/annular eclipses, it results in magnitude acc. to IMCCE.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[1] ratio
of lunar diameter to solar one</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[2] fraction
of solar disc covered by moon (obscuration)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[3] diameter
of core shadow in km</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[4] azimuth
of sun at tjd</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[5] true
altitude of sun above horizon at tjd</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[6] apparent
altitude of sun above horizon at tjd</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[7] elongation
of moon in degrees</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="it-IT">attr[8]
magnitude acc. to NASA;</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">=
attr[0] for partial and attr[1] for annular and total eclipses</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[9] saros
series number </font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[10] saros
series member number</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*/</font></font></font></p>
<p><br/>
</p>
<ol>
<ol>
<ol start="3">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635978"></a>
6.2. swe_sol_eclipse_when_glob()</h3>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477836848"></a>To find
the next eclipse globally:
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477326215"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_sol_eclipse_when_glob</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_start, /* start date for search, Jul. day UT */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifl, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifltype, /* eclipse type wanted: SE_ECL_TOTAL etc. or 0, if any
eclipse type */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*tret, /* return array, 10 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">AS_BOOL
backward, /* TRUE, if backward search */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">This function requires the time
parameter <i>tjd_start</i> in <i>Universal Time </i>and also yields
the return values (<i>tret[]</i>) in UT. For conversions between ET
and UT, use the function swe_deltat().</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">Note: An implementation of this
function with parameters in Ephemeris Time would have been possible.
The question when the next solar eclipse will happen anywhere on
earth is independent of the rotational position of the earth and
therefore independent of Delta T. However, the function is often
used in combination with other eclipse functions (see example
below), for which input and output in ET makes no sense, because
they concern local circumstances of an eclipse and therefore <i>are
</i>dependent on the rotational position of the earth. For this
reason, UT has been chosen for the time parameters of all eclipse
functions.
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">ifltype specifies the eclipse type
wanted. It can be a combination of the following bits (see
swephexp.h):
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_ECL_CENTRAL 1</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_ECL_NONCENTRAL 2</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_ECL_TOTAL 4</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_ECL_ANNULAR 8</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_ECL_PARTIAL 16</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_ECL_ANNULAR_TOTAL 32</font></font></font></p>
<p lang="en-GB" style="margin-right: -0.02in"><br/>
</p>
<p lang="en-GB" style="margin-right: -0.02in">Recommended values for
ifltype:</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="en-GB">/*</span>
search for any eclipse, no matter which type */</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ifltype
= 0; </font></font></font>
</p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
search a total eclipse; note: non-central total eclipses are very
rare */</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ifltype
= SE_ECL_TOTAL ¦ SE_ECL_CENTRAL ¦ SE_ECL_NONCENTRAL;</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
search an annular eclipse */</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ifltype
= SE_ECL_TOTAL ¦ SE_ECL_CENTRAL ¦ SE_ECL_NONCENTRAL;</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
search an annular-total (hybrid) eclipse */</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ifltype_
= SE_ECL_ANNULAR_TOTAL ¦ SE_ECL_CENTRAL ¦
SE_ECL_NONCENTRAL;</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
search a partial eclipse */</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ifltype
= SE_ECL_PARTIAL;</font></font></font></p>
<p lang="en-GB" style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><font color="#ffffff"><font face="Arial, sans-serif"><b><span style="background: #0000ff">If
your code does not work, please study the sample code in swetest.c.</span></b></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">The function returns:
</p>
<p class="western"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
retflag -1 (ERR) on error (e.g. if swe_calc() for sun or moon fails)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> SE_ECL_TOTAL
or SE_ECL_ANNULAR or SE_ECL_PARTIAL or SE_ECL_ANNULAR_TOTAL</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> SE_ECL_CENTRAL</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> SE_ECL_NONCENTRAL</font></font></font></p>
<p><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[0] time
of maximum eclipse</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[1] time,
when eclipse takes place at local apparent noon</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[2] time
of eclipse begin</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[3] time
of eclipse end</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[4] time
of totality begin</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[5] time
of totality end</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[6] time
of center line begin</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[7] time
of center line end</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[8] time
when annular-total eclipse becomes total not implemented so far</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[9] time
when annular-total eclipse becomes annular again not implemented so
far</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><font color="#ff0000"> </font><font color="#ffffff"><font face="Arial, sans-serif"><b><span style="background: #0000ff">declare
as tret[10] at least !</span></b></font></font></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*/</font></font></font></p>
<ol>
<ol>
<ol start="4">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635979"></a>
6.3. swe_sol_eclipse_how ()</h3>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477837220"></a>To
calculate the attributes of an eclipse for a given geographic
position and time:</p>
<p><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477326421"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_sol_eclipse_how</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_ut, /* time, Jul. day UT */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifl, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos /* geogr. longitude, latitude, height above sea</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* eastern longitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* western longitude is negative,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* northern latitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* southern latitude is negative */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*attr, /* return array, 20 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
retflag -1 (ERR) on error (e.g. if swe_calc() for sun or moon
fails)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> SE_ECL_TOTAL
or SE_ECL_ANNULAR or SE_ECL_PARTIAL</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> 0,
if no eclipse is visible at geogr. position.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
</font><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[0] fraction
of solar diameter covered by moon;</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> with
total/annular eclipses, it results in magnitude acc. to IMCCE.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[1] ratio
of lunar diameter to solar one</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[2] fraction
of solar disc covered by moon (obscuration)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[3] diameter
of core shadow in km</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[4] azimuth
of sun at tjd</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[5] true
altitude of sun above horizon at tjd</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[6] apparent
altitude of sun above horizon at tjd</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[7] elongation
of moon in degrees</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="it-IT">attr[8]
magnitude acc. to NASA;</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">=
attr[0] for partial and attr[1] for annular and total eclipses</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[9] saros
series number </font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[10] saros
series member number</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol>
<ol start="5">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635980"></a>
6.4. swe_sol_eclipse_where ()</h3>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477837360"></a>This
function can be used to find out the geographic position, where, for
a given time, a central eclipse is central or where a non-central
eclipse is maximal.
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477837327"></a><a name="_Hlk477837444"></a>
If you want to draw the eclipse path of a total or annular eclipse
on a map, first compute the start and end time of the total or
annular phase with <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_sol_eclipse_when_glob()</span></font></font></font>,
then <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">call
swe_sol_eclipse_how()</span></font></font></font> for several time
intervals to get geographic positions on the central path. The
northern and southern limits of the umbra and penumbra are not
implemented yet.
</p>
<p><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477326645"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_sol_eclipse_where </b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_ut, /* time, Jul. day UT */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifl, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* return array, 2 doubles, geo. long. and lat.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* eastern longitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* western longitude is negative,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* northern latitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* southern latitude is negative */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*attr, /* return array, 20 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<p style="margin-right: -0.02in">The function returns:</p>
<p class="western"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
-1 (ERR) on error (e.g. if swe_calc() for sun or moon fails)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">0 if
there is no solar eclipse at tjd</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SE_ECL_TOTAL</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SE_ECL_ANNULAR</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SE_ECL_TOTAL
| SE_ECL_CENTRAL</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SE_ECL_TOTAL
| SE_ECL_NONCENTRAL</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SE_ECL_ANNULAR
| SE_ECL_CENTRAL</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="it-IT">SE_ECL_ANNULAR
| SE_ECL_NONCENTRAL</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SE_ECL_PARTIAL</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
</font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">geopos[0]: geographic
longitude of central line</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">geopos[1]: geographic
latitude of central line</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
</font><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">not
implemented so far:</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">geopos[2]: geographic
longitude of northern limit of umbra</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">geopos[3]: geographic
latitude of northern limit of umbra</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">geopos[4]: geographic
longitude of southern limit of umbra</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">geopos[5]: geographic
latitude of southern limit of umbra</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">geopos[6]: geographic
longitude of northern limit of penumbra</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">geopos[7]: geographic
latitude of northern limit of penumbra</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">geopos[8]: geographic
longitude of southern limit of penumbra</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">geopos[9]: geographic
latitude of southern limit of penumbra</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
</font><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">eastern
longitudes are positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">western
longitudes are negative,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">northern
latitudes are positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">southern
latitudes are negative</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
</font><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[0] fraction
of solar diameter covered by the moon</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[1] ratio
of lunar diameter to solar one</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[2] fraction
of solar disc covered by moon (obscuration)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[3] diameter
of core shadow in km</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[4] azimuth
of sun at tjd</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[5] true
altitude of sun above horizon at tjd</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[6] apparent
altitude of sun above horizon at tjd</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[7] angular
distance of moon from sun in degrees</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[8] eclipse
magnitude (= attr[0] or attr[1] depending on eclipse type)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[9] saros
series number </font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[10] saros
series member number</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <font color="#ffffff"><font face="Arial, sans-serif"><b><span style="background: #0000ff">declare
as attr[20]!</span></b></font></font></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*/</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol>
<ol start="6">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635981"></a>
6.5. swe_lun_occult_when_loc()</h3>
</ol>
</ol>
</ol>
<p><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">To
find the next occultation of a planet or star by the moon for a
given location, use swe_lun_occult_when_loc().</font></font></p>
<p style="margin-right: -0.02in">The same function can also be used
for local solar eclipses instead of swe_sol_eclipse_when_loc(), but
is a bit less efficient.
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
Same declaration as swe_sol_eclipse_when_loc().</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
In addition:</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
int32 ipl planet number of occulted body</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
char* starname name of occulted star. Must be NULL or "",
if a planetary</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
occultation is to be calculated. For use of this
field, </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
see swe_fixstar().</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
int32 ifl ephemeris flag. If you want to have only one
conjunction</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
of the moon with the body tested, add the
following flag:</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
backward |= SE_ECL_ONE_TRY. If this flag is not
set,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
the function will search for an occultation
until it</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
finds one. For bodies with ecliptical latitudes
> 5,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
the function may search successlessly until it
reaches</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
the end of the ephemeris. </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*/</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_lun_occult_when_loc</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_start, /* start date for search, Jul. day UT */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ipl, /* planet number */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char*
starname, /* star name, must be NULL or ”” if not a
star */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifl, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* 3 doubles for geo. lon, lat, height eastern longitude
is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
western longitude is negative, northern latitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
southern latitude is negative */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*tret, /* return array, 10 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*attr, /* return array, 20 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">AS_BOOL
backward, /* TRUE, if backward search */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><font color="#000000">If
an occultation of </font><font color="#000000"><i>any </i></font><font color="#000000">planet
is wanted, call the function for all planets you want to consider
and find the one with the smallest tret[1] (first contact). (If
searching backward, find the one with the greatest tret[1]). For
efficiency, set ifl |= SE_ECL_ONE_TRY. With this flag, only the next
conjunction of the moon with the bodies is checked. If no
occultation has been found, repeat the calculation with tstart =
tstart + 20. </font></font></font></font>
</p>
<p><br/>
</p>
<p style="margin-right: -0.02in">The function returns:
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
retflag </font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">-1
(ERR) on error (e.g. if swe_calc() for sun or moon fails)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">0
(if no occultation/no eclipse found)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> SE_ECL_TOTAL
or SE_ECL_ANNULAR or SE_ECL_PARTIAL</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> SE_ECL_VISIBLE,
</font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> SE_ECL_MAX_VISIBLE,
</font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> SE_ECL_1ST_VISIBLE,
SE_ECL_2ND_VISIBLE</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> SE_ECL_3ST_VISIBLE,
SE_ECL_4ND_VISIBLE</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">These
return values (except the SE_ECL_ANNULAR) also appear with
occultations.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
</font><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[0] time
of maximum eclipse</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[1] time
of first contact</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[2] time
of second contact</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[3] time
of third contact</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[4] time
of forth contact</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[5] time
of sunrise between first and forth contact (not implemented so far)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[6] time
of sunset beween first and forth contact (not implemented so far)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
</font><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[0] fraction
of solar diameter covered by moon (magnitude)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[1] ratio
of lunar diameter to solar one</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[2] fraction
of solar disc covered by moon (obscuration)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[3] diameter
of core shadow in km</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[4] azimuth
of sun at tjd</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[5] true
altitude of sun above horizon at tjd</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[6] apparent
altitude of sun above horizon at tjd</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[7] elongation
of moon in degrees */</font></font></font></p>
<p><br/>
</p>
<ol>
<ol>
<ol start="7">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635982"></a>
6.6. swe_lun_occult_when_glob()</h3>
</ol>
</ol>
</ol>
<p><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">To
find the next occultation of a planet or star by the moon globally
(not for a particular geographic location), use
swe_lun_occult_when_glob().</font></font></p>
<p style="margin-right: -0.02in">The same function can also be used
for global solar eclipses instead of swe_sol_eclipse_when_glob(),
but is a bit less efficient.
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
Same declaration as swe_sol_eclipse_when_glob().</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
In addition:</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
int32 ipl planet number of occulted body</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
char* starname name of occulted star. Must be NULL or "",
if a planetary</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
occultation is to be calculated. For use of this
field, </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
see swe_fixstar().</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
int32 ifl ephemeris flag. If you want to have only one
conjunction</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
of the moon with the body tested, add the
following flag:</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
backward |= SE_ECL_ONE_TRY. If this flag is not
set,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
the function will search for an occultation
until it</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
finds one. For bodies with ecliptical latitudes
> 5,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
the function may search successlessly until it
reaches</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
the end of the ephemeris. </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*/</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_lun_occult_when_glob</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_start, /* start date for search, Jul. day UT */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ipl, /* planet number */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char*
starname, /* star name, must be NULL or ”” if not a
star */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifl, /* ephemeris flag */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifltype, /* eclipse type wanted */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* 3 doubles for geo. lon, lat, height eastern longitude
is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
western longitude is negative, northern latitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
southern latitude is negative */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*tret, /* return array, 10 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">AS_BOOL
backward, /* TRUE, if backward search */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><font color="#000000">If
an occultation of </font><font color="#000000"><i>any </i></font><font color="#000000">planet
is wanted, call the function for all planets you want to consider
and find the one with the smallest tret[1] (first contact). (If
searching backward, find the one with the greatest tret[1]). For
efficiency, set ifl |= SE_ECL_ONE_TRY. With this flag, only the next
conjunction of the moon with the bodies is checked. If no
occultation has been found, repeat the calculation with tstart =
tstart + 20. </font></font></font></font>
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">The function returns:
</p>
<p class="western"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
retflag </font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">-1
(ERR) on error (e.g. if swe_calc() for sun or moon fails)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">0
(if no occultation / eclipse has been found)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> SE_ECL_TOTAL
or SE_ECL_ANNULAR or SE_ECL_PARTIAL or SE_ECL_ANNULAR_TOTAL</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> SE_ECL_CENTRAL</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> SE_ECL_NONCENTRAL</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
</font><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[0] time
of maximum eclipse</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[1] time,
when eclipse takes place at local apparent noon</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[2] time
of eclipse begin</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[3] time
of eclipse end</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[4] time
of totality begin</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[5] time
of totality end</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[6] time
of center line begin</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[7] time
of center line end</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[8] time
when annular-total eclipse becomes total not implemented so far</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[9] time
when annular-total eclipse becomes annular again not implemented so
far</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><font color="#ff0000"> </font><font color="#ffffff"><font face="Arial, sans-serif"><b><span style="background: #0000ff">declare
as tret[10] at least !</span></b></font></font></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*/</font></font></font></p>
<p><br/>
</p>
<ol>
<ol>
<ol start="8">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635983"></a>
6.7. swe_lun_occult_where ()</h3>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p style="margin-right: -0.02in">Similar to swe_sol_eclipse_where(),
this function can be used to find out the geographic position,
where, for a given time, a central eclipse is central or where a
non-central eclipse is maximal. With occultations, it tells us, at
which geographic location the occulted body is in the middle of the
lunar disc or closest to it. Because occultations are always visible
from a very large area, this is not very interesting information.
But it may</p>
<p style="margin-right: -0.02in">become more interesting as soon as
the limits of the umbra (and penumbra) will be implemented.</p>
<p><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_lun_occult_where </b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_ut, /* time, Jul. day UT */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ipl, /* planet number */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char*
starname, /* star name, must be NULL or ”” if not a
star */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifl, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* return array, 2 doubles, geo. long. and lat.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* eastern longitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* western longitude is negative,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* northern latitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* southern latitude is negative */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*attr, /* return array, 20 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<p style="margin-right: -0.02in">The function returns:</p>
<p class="western"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
-1 (ERR) on error (e.g. if swe_calc() for sun or moon fails)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">0 if
there is no solar eclipse (occultation) at tjd</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SE_ECL_TOTAL</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SE_ECL_ANNULAR</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SE_ECL_TOTAL
| SE_ECL_CENTRAL</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SE_ECL_TOTAL
| SE_ECL_NONCENTRAL</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SE_ECL_ANNULAR
| SE_ECL_CENTRAL</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="it-IT">SE_ECL_ANNULAR
| SE_ECL_NONCENTRAL</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SE_ECL_PARTIAL</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
</font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">geopos[0]: geographic
longitude of central line</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">geopos[1]: geographic
latitude of central line</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
</font><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">not
implemented so far:</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">geopos[2]: geographic
longitude of northern limit of umbra</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">geopos[3]: geographic
latitude of northern limit of umbra</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">geopos[4]: geographic
longitude of southern limit of umbra</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">geopos[5]: geographic
latitude of southern limit of umbra</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">geopos[6]: geographic
longitude of northern limit of penumbra</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">geopos[7]: geographic
latitude of northern limit of penumbra</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">geopos[8]: geographic
longitude of southern limit of penumbra</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">geopos[9]: geographic
latitude of southern limit of penumbra</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
</font><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">eastern
longitudes are positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">western
longitudes are negative,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">northern
latitudes are positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">southern
latitudes are negative</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
</font><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[0] fraction
of solar diameter covered by moon (magnitude)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[1] ratio
of lunar diameter to solar one</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[2] fraction
of solar disc covered by moon (obscuration)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[3] diameter
of core shadow in km</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[4] azimuth
of sun at tjd</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[5] true
altitude of sun above horizon at tjd</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[6] apparent
altitude of sun above horizon at tjd</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[7] angular
distance of moon from sun in degrees</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <font color="#ffffff"><font face="Arial, sans-serif"><b><span style="background: #0000ff">declare
as attr[20]!</span></b></font></font></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*/</font></font></font></p>
<ol>
<ol>
<ol start="9">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635984"></a>
6.8. swe_lun_eclipse_when ()</h3>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in"><a name="_Hlk477837545"></a>To find
the next lunar eclipse:</p>
<p class="western"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477326807"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_lun_eclipse_when</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_start, /* start date for search, Jul. day UT */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifl, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifltype, /* eclipse type wanted: SE_ECL_TOTAL etc. or 0, if any
eclipse type */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*tret, /* return array, 10 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">AS_BOOL
backward, /* TRUE, if backward search */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p lang="en-GB" style="margin-right: -0.02in">Recommended values for
ifltype:</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="en-GB">/*</span>
search for any lunar eclipse, no matter which type */</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ifltype
= 0; </font></font></font>
</p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
search a total lunar eclipse */</font></font></font></p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ifltype
= SE_ECL_TOTAL;</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
search a partial lunar eclipse */</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ifltype
= SE_ECL_PARTIAL;</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
search a penumbral lunar eclipse */</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ifltype
= SE_ECL_PENUMBRAL;</font></font></font></p>
<p lang="it-IT" style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><font color="#ffffff"><font face="Arial, sans-serif"><b><span style="background: #0000ff">If
your code does not work, please study the sample code in swetest.c.</span></b></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">The function returns:</p>
<p class="western"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
retflag -1 (ERR) on error (e.g. if swe_calc() for sun or moon
fails)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> SE_ECL_TOTAL
or SE_ECL_PENUMBRAL or SE_ECL_PARTIAL</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[0] time
of maximum eclipse</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[1] </font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[2] time
of partial phase begin (indices consistent with solar eclipses)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[3] time
of partial phase end</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[4] time
of totality begin</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[5] time
of totality end</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[6] time
of penumbral phase begin</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tret[7] time
of penumbral phase end</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*/</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol>
<ol start="10">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635985"></a>
6.9. swe_lun_eclipse_how ()</h3>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477837573"></a>This
function computes the attributes of a lunar eclipse at a given time:</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477326863"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_lun_eclipse_how</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_ut, /* time, Jul. day UT */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifl, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* input array, geopos, geolon, geoheight</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> eastern
longitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> western
longitude is negative,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> northern
latitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> southern
latitude is negative */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*attr, /* return array, 20 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">The function returns:</p>
<p class="western"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
retflag -1 (ERR) on error (e.g. if swe_calc() for sun or moon
fails)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> SE_ECL_TOTAL
or SE_ECL_PENUMBRAL or SE_ECL_PARTIAL</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> 0
if there is no eclipse</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[0] umbral
magnitude at tjd</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[1] penumbral
magnitude</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[4] azimuth
of moon at tjd. Not implemented so far</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[5] true
altitude of moon above horizon at tjd. Not implemented so far</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[6] apparent
altitude of moon above horizon at tjd. Not implemented so far</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[7] distance
of moon from opposition in degrees</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[8] eclipse
magnitude (= attr[0])</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[9] saros
series number </font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[10] saros
series member number</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><font color="#ffffff"><font face="Arial, sans-serif"><b><span style="background: #0000ff">declare
as attr[20] at least !</span></b></font></font></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*/</font></font></font></p>
<ol>
<ol>
<ol start="11">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635986"></a>
6.10. swe_rise_trans() and swe_rise_trans_true_hor() (risings,
settings, meridian transits)</h3>
</ol>
</ol>
</ol>
<p><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477837700"></a>The
function swe_rise_trans() computes the times of rising, setting and
meridian transits for all planets, asteroids, the moon, and the
fixed stars. The function swe_rise_trans_true_hor() does the same
for a local horizon that has an altitude != 0. Their definitions are
as follows:
</p>
<p><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477327296"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_rise_trans</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_ut, /* search after this time (UT) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ipl, /* planet number, if planet or moon */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*starname, /* star name, if star */</font></font></font></p>
<p lang="de-CH" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
epheflag, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
rsmi, /* integer specifying that rise, set, orone of the two
meridian transits is</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
wanted. see definition below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* array of three doubles containing</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* geograph. long., lat., height of observer */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
atpress, /* atmospheric pressure in mbar/hPa */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
attemp, /* atmospheric temperature in deg. C */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*tret, /* return address (double) for rise time etc. */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return address for error message */</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_rise_trans_true_hor</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_ut, /* search after this time (UT) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ipl, /* planet number, if planet or moon */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*starname, /* star name, if star */</font></font></font></p>
<p lang="de-CH" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
epheflag, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
rsmi, /* integer specifying that rise, set, orone of the two
meridian transits is</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
wanted. see definition below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* array of three doubles containing</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* geograph. long., lat., height of observer */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
atpress, /* atmospheric pressure in mbar/hPa */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
attemp, /* atmospheric temperature in deg. C */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
horhgt, /* height of local horizon in deg at the point where the
body rises or sets*/</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*tret, /* return address (double) for rise time etc. */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return address for error message */</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">The second function has one
additional parameter horhgt for the height of the local horizon at
the point where the body rises or sets.</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477328165"></a>The
variable<font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>
rsmi</b></font></font> can have the following values:</p>
<p><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
for swe_rise_transit() and swe_rise_transit_true_hor() */</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_CALC_RISE 1</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_CALC_SET 2</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_CALC_MTRANSIT 4 /* upper meridian transit (southern for northern
geo. latitudes) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_CALC_ITRANSIT 8 /* lower meridian transit (northern, below the
horizon) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
the following bits can be added (or’ed) to SE_CALC_RISE or
SE_CALC_SET */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_BIT_DISC_CENTER 256 /* for rising or setting of disc
center */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_BIT_DISC_BOTTOM 8192 /* for rising or setting of lower
limb of disc */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_BIT_NO_REFRACTION 512 <i> </i>/* if refraction is not to
be considered */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_BIT_CIVIL_TWILIGHT 1024 <i> </i>/* in order to calculate
civil twilight */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_BIT_NAUTIC_TWILIGHT 2048 <i> </i>/* in order to calculate
nautical twilight */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_BIT_ASTRO_TWILIGHT 4096 <i> </i>/* in order to calculate
astronomical twilight */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_BIT_FIXED_DISC_SIZE (16*1024) /* neglect the effect of distance
on disc size */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-right: -0.02in"><font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>rsmi
</b></font></font>= 0 will return risings.</p>
<p style="margin-right: -0.02in"><a name="_Hlk477837912"></a><a name="_Hlk477328180"></a><a name="_Hlk477328191"></a>
The rising times depend on the atmospheric pressure and temperature.
<font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>atpress</b></font></font>
expects the atmospheric pressure in <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">millibar
(hectopascal)</span></font></font></font>; <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>attemp</b></font></font>
the temperature in degrees <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Celsius</span></font></font></font>.</p>
<p style="margin-right: -0.02in">If <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>atpress</b></font></font>
is given the value 0, the function estimates the pressure from the
geographical altitude given in <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>geopos[2]</b></font></font>
and <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>attemp</b></font></font>.
If <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>geopos[2]</b></font></font>
is 0, <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>atpress</b></font></font>
will be estimated for sea level.</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol>
<ol start="12">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635987"></a>
6.11. swe_pheno_ut() and swe_pheno(), planetary phenomena</h3>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477838007"></a>These
functions compute phase, phase angle, elongation, apparent diameter,
apparent magnitude for the Sun, the Moon, all planets and asteroids.
The two functions do exactly the same but expect a different time
parameter.</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477328995"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_pheno_ut</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_ut, /* time Jul. Day UT */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ipl, /* planet number */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
iflag, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*attr, /* return array, 20 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477329016"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_pheno</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_et, /* time Jul. Day ET */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ipl, /* planet number */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
iflag, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*attr, /* return array, 20 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<p><br/>
</p>
<p style="margin-right: -0.02in">The function returns:</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
</font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[0]
= phase angle (earth-planet-sun)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[1]
= phase (illumined fraction of disc)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[2]
= elongation of planet</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[3]
= apparent diameter of disc</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">attr[4]
= apparent magnitude</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><font color="#ffffff"><font face="Arial, sans-serif"><b><span style="background: #0000ff">declare
as attr[20] at least !</span></b></font></font></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
</font><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">Note:
the lunar magnitude is quite a complicated thing,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">but
our algorithm is very simple. </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">The
phase of the moon, its distance from the earth and</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">the
sun is considered, but no other factors.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
</font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="de-CH">iflag
also allows SEFLG_TRUEPOS, SEFLG_HELCTR</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*/</font></font></font></p>
<p><br/>
</p>
<ol>
<ol>
<ol start="13">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635988"></a>
6.12. swe_azalt(), horizontal coordinates, azimuth, altitude</h3>
</ol>
</ol>
</ol>
<p><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477838340"></a><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_azalt()</span></font></font></font><i>
</i>computes the horizontal coordinates (azimuth and altitude) of a
planet or a star from either ecliptical or equatorial coordinates.
</p>
<p><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.68in"><a name="_Hlk477329169"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
<b>swe_azalt</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.68in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="fr-FR">double
tjd_ut, // UT </span></font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.68in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="pt-BR">int32
calc_flag, // SE_ECL2HOR or SE_EQU2HOR</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.68in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, // array of 3 doubles: geograph. long., lat., height</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.68in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
atpress, // atmospheric pressure in mbar (hPa)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.68in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
attemp, // atmospheric temperature in degrees Celsius</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.68in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*xin, // array of 3 doubles: position of body in either ecliptical
or equatorial coordinates, </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.68in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> //
depending on calc_flag </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.68in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*xaz); // return array of 3 doubles, containing azimuth, true
altitude, apparent altitude</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.68in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.8in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">If
<b>calc_flag</b>=SE_ECL2HOR, set xin[0]= ecl. long., xin[1]= ecl.
lat., (xin[2]=distance (not required));</font></font></font></p>
<p class="western" style="text-indent: 0.25in">else
</p>
<p style="margin-left: 0.8in; text-indent: -0.8in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">if
<b>calc_flag</b>= SE_EQU2HOR, set xin[0]=rectascension,
xin[1]=declination, (xin[2]= distance (not required));</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.68in"><br/>
</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_ECL2HOR 0</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_EQU2HOR 1</font></font></font></p>
<p lang="it-IT" style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">The return values are:
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477838689"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">xaz[0]
= azimuth, i.e. position degree, measured from the south point to
west.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477838704"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">xaz[1]
= true altitude above horizon in degrees.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">xaz[2]
= apparent (refracted) altitude above horizon in degrees.</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">The apparent altitude of a body
depends on the atmospheric pressure and temperature. If only the
true altitude is required, these parameters can be neglected.</p>
<p style="margin-right: -0.02in">If <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>atpress</b></font></font>
is given the value 0, the function estimates the pressure from the
geographical altitude given in geopos[2] and <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>attemp</b></font></font>.
If geopos[2] is 0, <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>atpress</b></font></font>
will be estimated for sea level.</p>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol>
<ol start="14">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635989"></a>
6.13. swe_azalt_rev()</h3>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in">The function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_azalt_rev()</span></font></font></font><i>
</i>is not precisely the reverse of <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_azalt()</span></font></font></font>.
It computes either ecliptical or equatorial coordinates from azimuth
and true altitude. If only an apparent altitude is given, the true
altitude has to be computed first with the function
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_refrac()</span></font></font></font> (see
below).</p>
<p style="margin-right: -0.02in">It is defined as follows:</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477329516"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
<b>swe_azalt_rev</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="fr-FR">double
tjd_ut,</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
calc_flag, /* either SE_HOR2ECL or SE_HOR2EQU */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* array of 3 doubles for geograph. pos. of observer */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*xin, /* array of 2 doubles for azimuth and true altitude of
planet */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*xout); // return array of 2 doubles for either ecliptic or</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> //
equatorial coordinates, depending on calc_flag </font></font></font>
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">For the definition of the azimuth
and true altitude, see chapter 4.9 on <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_azalt()</span></font></font></font>.</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_HOR2ECL 0</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_HOR2EQU 1</font></font></font></p>
<ol>
<ol>
<ol start="15">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635990"></a>
6.14. swe_refrac(), swe_refract_extended(), refraction</h3>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in"><a name="_Hlk477838834"></a>The
refraction function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_refrac()</span></font></font></font><i>
</i>calculates either the true altitude from the apparent altitude
or the apparent altitude from the apparent altitude. Its definition
is:
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477329626"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
<b>swe_refrac</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
inalt, </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
atpress, /* atmospheric pressure in mbar (hPa) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
attemp, /* atmospheric temperature in degrees Celsius */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
calc_flag); /* either SE_TRUE_TO_APP or SE_APP_TO_TRUE */</font></font></font></p>
<p style="margin-right: -0.02in">where</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_TRUE_TO_APP 0</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_APP_TO_TRUE 1</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-right: -0.02in">The refraction depends on the
atmospheric pressure and temperature at the location of the
observer.
</p>
<p style="margin-right: -0.02in">If <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>atpress</b></font></font>
is given the value 0, the function estimates the pressure from the
geographical altitude given in geopos[2] and <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>attemp</b></font></font><b>.</b>
If geopos[2] is 0, <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>atpress</b></font></font>
will be estimated for sea level.</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">There is also a more sophisticated
function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_refrac_extended()</span></font></font></font>,
It allows correct calculation of refraction for altitudes above sea
> 0, where the ideal horizon and planets that are visible may
have a negative height. (for swe_refrac(), negative apparent heights
do not exist!)</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
<b>swe_refract_extended</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
inalt, /* altitude of object above geometric horizon in degrees,
where</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
geometric horizon = plane perpendicular to gravity */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
geoalt, /* altitude of observer above sea level in meters */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
atpress, /* atmospheric pressure in mbar (hPa) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
lapse_rate, /* (dattemp/dgeoalt) = [°K/m] */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
attemp, /* atmospheric temperature in degrees Celsius */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
calc_flag); /* either SE_TRUE_TO_APP or SE_APP_TO_TRUE */</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">function returns:</p>
<p style="margin-right: -0.02in">case 1, conversion from true
altitude to apparent altitude:</p>
<p style="margin-right: -0.02in">- apparent altitude, if body
appears above is observable above ideal horizon</p>
<p style="margin-right: -0.02in">- true altitude (the input value),
otherwise</p>
<p style="margin-right: -0.02in"> "ideal horizon" is the
horizon as seen above an ideal sphere (as seen from a plane over the
ocean with
</p>
<p style="margin-right: -0.02in"> a clear sky)</p>
<p style="margin-right: -0.02in">case 2, conversion from apparent
altitude to true altitude:</p>
<p style="margin-right: -0.02in">- the true altitude resulting from
the input apparent altitude, if this value is a plausible apparent
altitude,
</p>
<p style="margin-right: -0.02in"> i.e. if it is a position above
the ideal horizon</p>
<p style="margin-right: -0.02in">- the input altitude otherwise</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">in addition the array dret[]
returns the following values</p>
<p style="margin-right: -0.02in">- dret[0] true altitude, if
possible; otherwise input value</p>
<p style="margin-right: -0.02in">- dret[1] apparent altitude, if
possible; otherwise input value</p>
<p style="margin-right: -0.02in">- dret[2] refraction</p>
<p style="margin-right: -0.02in">- dret[3] dip of the horizon</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">The body is above the horizon if
the dret[0] != dret[1]</p>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol>
<ol start="16">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635991"></a>
6.15. Heliacal risings etc.: swe_heliacal_ut()</h3>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in">The function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_heliacal_ut()</span></font></font></font><i>
</i>the Julian day of the next heliacal phenomenon after a given
start date. It works between geographic latitudes 60s – 60n.</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_heliacal_ut</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjdstart, /* Julian day number of start date for the search of the
heliacal event */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*dgeo /* geographic position (details below) */ </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*datm, /* atmospheric conditions (details below) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*dobs, /* observer description (details below) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*objectname, /* name string of fixed star or planet */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
event_type, /* event type (details below) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
helflag, /* calculation flag, bitmap (details below) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*dret, /* result: array of at least 50 doubles, of which 3 are used
at the moment */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
* serr /* error string */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">); </font></font></font></p>
<p><br/>
</p>
<p><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">Function
returns OK or ERR</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">Details for dgeo[] (array of
doubles):</p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">dgeo[0]:
geographic longitude</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">dgeo[1]:
geographic latitude</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">dgeo[2]:
geographic altitude (eye height) in meters </font></font></font>
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">Details for datm[] (array of
doubles):</p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">datm[0]:
atmospheric pressure in mbar (hPa)</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">datm[1]:
atmospheric temperature in degrees Celsius</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">datm[2]:
relative humidity in %</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">datm[3]:
if datm[3]>=1, then it is Meteorological Range [km]</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">if
1>datm[3]>0, then it is the total atmsopheric coeffcient
(ktot)</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">datm[3]=0,
then the other atmospheric parameters determine the total </font></font></font>
</p>
<p><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">atmsopheric
coeffcient (ktot)</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">Default
values:</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">If
this is too much for you, set all these values to 0. The software
will then set the following defaults:</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">Pressure
1013.25, temperature 15, relative humidity 40. The values will be
modified depending </font></font></font>
</p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">on
the altitude of the observer above sea level.</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">If
the extinction coefficient (meteorological range) datm[3] is 0, the
software will calculate its value</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">from
datm[0..2].</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">Details for dobs[] (array of
doubles):</p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">dobs[0]:
age of observer in years (default = 36)</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">dobs[1]:
Snellen ratio of observers eyes (default = 1 = normal)</font></font></font></p>
<p><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">The
following parameters are only relevant if the flag
SE_HELFLAG_OPTICAL_PARAMS is set:</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">dobs[2]:
0 = monocular, 1 = binocular (actually a boolean)</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">dobs[3]:
telescope magnification: 0 = default to naked eye (binocular), 1 =
naked eye</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="it-IT">dobs[4]:
optical aperture (telescope diameter) in mm</span></font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">dobs[5]:
optical transmission</font></font></font></p>
<p><br/>
</p>
<p style="margin-right: -0.02in">Details for event_type:</p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">event_type
= SE_HELIACAL_RISING (1): morning first (exists for all visible
planets and stars)</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">event_type
= SE_HELIACAL_SETTING (2): evening last (exists for all visible
planets and stars) </font></font></font>
</p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">event_type
= SE_EVENING_FIRST (3): evening first (exists for Mercury, Venus,
and the Moon)</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">event_type
= SE_MORNING_LAST (4): morning last (exists for Mercury, Venus, and
the Moon)</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">Details for helflag:</p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">helflag
contains ephemeris flag, like iflag in swe_calc() etc. In addition
it can contain the following bits:</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SE_HELFLAG_LONG_SEARCH
(128): A heliacal event is searched until found. </font></font></font>
</p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">If
this bit is NOT set and no event is found within 5 synodic periods,
the function stops </font></font></font>
</p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">searching
and returns ERR.</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SE_HELFLAG_HIGH_PRECISION
(256): More rigorous but also slower algorithms are used</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SE_HELFLAG_OPTICAL_PARAMS
(512): Use this with calculations for optical instruments. </font></font></font>
</p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">Unless
this bit is set, the values of dobs[2-5] are ignored.</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SE_HELFLAG_NO_DETAILS
(1024): provide the date, but not details like visibility start,
optimum, and end.</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">This
bit makes the program a bit faster.</font></font></font></p>
<p><br/>
</p>
<p style="margin-right: -0.02in">Details for return array dret[]
(array of doubles):</p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">dret[0]:
start visibility (Julian day number)</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">dret[1]:
optimum visibility (Julian day number)</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">dret[2]:
end of visibility (Julian day number)</font></font></font></p>
<p><br/>
</p>
<ol>
<ol>
<ol start="17">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635992"></a>
6.16. Magnitude limit for visibility: swe_vis_limit_mag()</h3>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in">The function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_vis_lim_mag()</span></font></font></font><i>
</i>determines the limiting visual magnitude in dark skies:</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="fr-FR">double
</span><span lang="fr-FR"><b>swe_vis_limit_mag</b></span><span lang="fr-FR">(</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjdut, /* Julian day number */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*dgeo /* geographic position (details under
swe_heliacal_ut() */ </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*datm, /* atmospheric conditions (details under swe_heliacal_ut())
*/</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*dobs, /* observer description (details under swe_heliacal_ut()) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*objectname, /* name string of fixed star or planet */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
helflag, /* calculation flag, bitmap (details under
swe_heliacal_ut()) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*dret, /* result: magnitude required of the object to be visible */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
* serr /* error string */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">); </font></font></font></p>
<p><br/>
</p>
<p><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">Function
returns </font></font></font>
</p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">-1 on
error</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">-2
object is below horizon</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">0 OK,
photopic vision</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">&1 OK,
scotopic vision</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">&2 OK,
near limit photopic/scotopic vision</font></font></font></p>
<p lang="en-GB"><br/>
</p>
<ol>
<ol start="7">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365635993"></a><a name="_Hlk477330063"></a>
7. Date and time conversion functions
</h2>
<ol>
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635994"></a>
7.1 Calendar Date and Julian Day: swe_julday(),
swe_date_conversion(), /swe_revjul()</h3>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in">These functions are needed to
convert calendar dates to the astronomical time scale which measures
time in Julian days.
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477329697"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
<b>swe_julday</b>(int year, int month, int day, double hour, int
gregflag); </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477331070"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
<b>swe_date_conversion</b> (</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> int
y , int m , int d , /* year, month, day */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
hour, /* hours (decimal, with fraction) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> char
c, /* calendar ‘g’[regorian]|’j’[ulian]
*/</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
*tjd); /* return value for Julian day */ </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477329710"></a><a name="_Hlk477839146"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
<b>swe_revjul</b> (</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
tjd, /* Julian day number */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> int
gregflag, /* Gregorian calendar: 1, Julian calendar: 0 */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> int
*year, /* target addresses for year, etc. */ </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> int
*month, int *day, double *hour);</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477839957"></a><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_julday()</span></font></font></font><i>
</i>and <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_date_conversion()</span></font></font></font>
compute a Julian day number from year, month, day, and hour.
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_date_conversion()</span></font></font></font><i>
</i>checks in addition whether the date is legal. It returns OK or
ERR.</p>
<p style="margin-right: -0.02in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_revjul()</span></font></font></font>
is the reverse function of <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_julday()</span></font></font></font>.<i>
</i>It computes year, month, day and hour from a Julian day number.<font face="Courier New, monospace">
</font>
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477329877"></a>The
variable <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>gregflag</b></font></font>
tells the function whether the input date is Julian calendar (
<font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>gregflag</b></font></font>
= SE_JUL_CAL) or Gregorian calendar ( <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>gregflag</b></font></font>
= SE_GREG_CAL).
</p>
<p style="margin-right: -0.02in">Usually, you will set <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>gregflag</b></font></font><i>
</i>= SE_GREG_CAL.
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477330118"></a>The
Julian day number has nothing to do with Julius Cesar, who
introduced the Julian calendar, but was invented by the monk
Julianus. The Julian day number tells for a given date the number of
days that have passed since the creation of the world which was then
considered to have happened on 1 Jan –4712 at noon. E.g. the
1.1.1900 corresponds to the Julian day number 2415020.5.</p>
<p style="margin-right: -0.02in">Midnight has always a JD with
fraction 0.5, because traditionally the astronomical day started at
noon. This was practical because then there was no change of date
during a night at the telescope. From this comes also the fact that
noon ephemerides were printed before midnight ephemerides were
introduced early in the 20th century.
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol>
<ol start="2">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635995"></a>
7.2. UTC and Julian day: swe_utc_time_zone(), swe_utc_to_jd(),
swe_jdet_to_utc(), swe_jdut1_to_utc()</h3>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in">The following functions, which were
introduced with Swiss Ephemeris version 1.76, do a similar job as
the functions described under 7.1. The difference is that input and
output times are Coordinated Universal Time (UTC). For
transformations between wall clock (or arm wrist) time and Julian
Day numbers, these functions are more correct. The difference is
below 1 second, though.</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">Use these functions to convert
</p>
<ul>
<li/>
<p style="margin-right: -0.02in">local time to UTC and UTC to
local time,</p>
<li/>
<p style="margin-right: -0.02in">UTC to a Julian day number,
and</p>
<li/>
<p style="margin-right: -0.02in">a Julian day number to UTC.
</p>
</ul>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><b>Note</b>, in case of leap
seconds, the input or output time may be 60.9999 seconds. Input or
output forms have to allow for this.</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
transform local time to UTC or UTC to local time</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
input:</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
iyear ... dsec date and time</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
d_timezone timezone offset</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
output:</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
iyear_out ... dsec_out</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
For time zones east of Greenwich, d_timezone is positive.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
For time zones west of Greenwich, d_timezone is negative.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
For conversion from local time to utc, use +d_timezone.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
For conversion from utc to local time, use -d_timezone.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*/</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
FAR PASCAL_CONV <b>swe_ utc_time_zone</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
iyear, int32 imonth, int32 iday,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="fr-FR">int32
ihour, int32 imin, double dsec,</span></font></font></font></p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
d_timezone,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
*iyear_out, int32 *imonth_out, int32 *iday_out,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
*ihour_out, int32 *imin_out, double *dsec_out</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
input: date and time (wall clock time), calendar flag.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
output: an array of doubles with Julian Day number in ET (TT) and UT
(UT1)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
an error message (on error)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
<span lang="en-GB">The function returns OK or ERR.</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*/
</font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_utc_to_jd</b> (</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> int32
iyear, int32 imonth, int32 iday,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="en-GB">int32
ihour, int32 imin, double dsec, /* note : second is a decimal
*/</span></font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> gregflag,
/* Gregorian calendar: 1, Julian calendar: 0 */</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> dret /*
return array, two doubles:</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* dret[0] = Julian day in ET (TT)</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* dret[1] = Julian day in UT (UT1) */</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> serr /*
error string */</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">)</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
input: Julian day number in ET (TT), calendar flag</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
output: year, month, day, hour, min, sec in UTC */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
<b>swe_jdet_to_utc</b> (</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="en-GB">double
tjd_et, /* Julian day number in ET (TT) */</span></font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> gregflag,
/* Gregorian calendar: 1, Julian calendar: 0 */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="en-GB"> </span>int32
*iyear, int32 *imonth, int32 *iday,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="en-GB">int32
*ihour, int32 *imin, double *dsec, /* note : second is a
decimal */</span></font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">)</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
input: Julian day number in UT (UT1), calendar flag</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
output: year, month, day, hour, min, sec in UTC */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
<b>swe_jdut1_to_utc</b> (</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="en-GB">double
tjd_ut, /* Julian day number in ET (TT) */</span></font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> gregflag,
/* Gregorian calendar: 1, Julian calendar: 0 */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="en-GB"> </span>int32
*iyear, int32 *imonth, int32 *iday,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="en-GB">int32
*ihour, int32 *imin, double *dsec, /* note : second is a
decimal */</span></font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">)</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">How do I get correct planetary
positions, sidereal time, and house cusps, starting from a wall
clock date and time?</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
iday, imonth, iyear, ihour, imin, retval;</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
gregflag = SE_GREG_CAL;</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
d_timezone = 5.5 ; /* time zone = Indian Standard Time; note:
east is positive */</font></font></font></p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
dsec, tjd_et, tjd_ut;</font></font></font></p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
dret[2];</font></font></font></p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
serr[256];</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">…</font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
if date and time is in time zone different from UTC, the time zone
offset must be subtracted</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
first in order to get UTC: */</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">swe_utc_time_zone(iyear,
imonth, iday, ihour, imin, dsec, d_timezone,</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">&iyear_utc,
&imonth_utc, &iday_utc, &ihour_utc, &imin_utc,
&dsec_utc)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
calculate Julian day number in UT (UT1) and ET (TT) from UTC */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">retval
= swe_utc_to_jd (iyear_utc, imonth_utc, iday_utc, ihour_utc,
imin_utc, dsec_utc, gregflag, dret, serr);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">if
(retval == ERR) {</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="de-CH">fprintf(stderr,
serr); /* error handling */</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">}</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tjd_et
= dret[0]; /* this is ET (TT) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tjd_ut
= dret[1]; /* this is UT (UT1) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
calculate planet with tjd_et */</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">swe_calc(tjd_et,
…);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
calculate houses with tjd_ut */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">swe_houses(tjd_ut,
…)</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">And how do you get the date and
wall clock time from a Julian day number? Depending on whether you
have tjd_et (Julian day as ET (TT)) or tjd_ut (Julian day as UT
(UT1)), use one of the two functions swe_jdet_to_utc() or
swe_jdut1_to_utc().</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">…</font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
first, we calculate UTC from TT (ET) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">swe_jdet_to_utc(tjd_et,
gregflag, &iyear_utc, &imonth_utc, &iday_utc,
&ihour_utc, &imin_utc, &dsec_utc);</font></font></font></p>
<p><font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
now, UTC to local time (note the negative sign before d_timezone):
*/</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">swe_utc_time_zone(iyear_utc,
imonth_utc, iday_utc, ihour_utc, imin_utc, dsec_utc, </font></font></font>
</p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">-d_timezone,
&iyear, &imonth, &iday, &ihour, &imin, &dsec)</font></font></font></p>
<p lang="en-GB"><br/>
</p>
<ol>
<ol>
<ol start="3">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635996"></a>
7.3. Future insertion of leap seconds and the file
swe_leapsec.txt</h3>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in">The insertion of leap seconds is
not known in advance. We will update the Swiss Ephemeris whenever
the IERS announces that a leap second will be inserted. However, if
the user does not want to wait for our update or does not want to
download a new version of the Swiss Ephemeris, he can create a file
swe_leapsec.txt in the ephemeris directory. Insert a line with the
date on which a leap second has to be inserted. The file looks as
follows:</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#
This file contains the dates of leap seconds to be taken into
account</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#
by the Swiss Ephemeris.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#
For each new leap second add the date of its insertion in the format</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#
yyyymmdd, e.g. "20081231" for 21 december 2008</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">20081231</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol>
<ol start="4">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635997"></a>
7.4. Mean solar time versus True solar time: swe_time_equ()</h3>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in"><a name="_Hlk477330492"></a><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Universal
Time</span></font></font></font> (UT or UTC) is based on <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Mean
Solar Time</span></font></font></font>, AKA <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Local
Mean Time</span></font></font></font>, which is a uniform measure of
time. A day has always the same length, independent of the time of
the year.
</p>
<p style="margin-right: -0.02in">In the centuries before mechanical
clocks where used, when the reckoning of time was mostly based on
sun dials, the <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">True
Solar Time</span></font></font></font> was used, also called <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Local
Apparent Time</span></font></font></font>.</p>
<p style="margin-right: -0.02in"><a name="_Hlk477840429"></a>The
difference between <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Local
Mean Time</span></font></font></font> and <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Local
Apparent Time</span></font></font></font> is called the <b>equation
of time</b>. This difference can become as large as 20 minutes.</p>
<p style="margin-right: -0.02in">If a birth time of a historical
person was noted in <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Local
Apparent Time</span></font></font></font>, it must first be
converted to <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Local
Mean Time</span></font></font></font> by applying the equation of
time, before it can be used to compute Universal Time (for the
houses) and finally <font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477830987">Ephemeris
Time</a></u></font></font></font> (for the planets).
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">There is a function for computing
the correction value.</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
equation of time function returns the difference between local
apparent and local mean time.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="it-IT">e
= LAT – LMT. </span>tjd is ephemeris time */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477330339"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
<b>swe_time_equ</b>(double <font color="#0000ff">tjd</font>, double*
<font color="#0000ff">e</font>, char* <font color="#0000ff">serr</font>);</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">If you first compute <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>tjd</b></font></font>
on the basis of the registered <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Local
Apparent Time</span></font></font></font>, you convert it to <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Local
Mean Time</span></font></font></font> with:</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tjd_mean
= tjd_app + e;</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<ol>
<ol start="8">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365635998"></a>
8. Delta T-related functions</h2>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
delta t from Julian day number */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477840778"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="fr-FR">double
</span><span lang="fr-FR"><b>swe_deltat</b></span><span lang="fr-FR">(double
tjd);</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
get tidal acceleration used in swe_deltat() */ </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477840792"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
<b>swe_get_tid_acc</b>(void); </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
set tidal acceleration to be used in swe_deltat() */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477840801"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
<b>swe_set_tid_acc</b>(double t_acc);</font></font></font></p>
<p><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477830987"></a>The
Julian day number, you compute from a birth date, will be <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Universal
Time (UT, former GMT)</span></font></font></font> and can be used
to compute the star time and the houses. However, for the planets
and the other factors, you have to convert UT to <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Ephemeris
time (ET): </span></font></font></font>
</p>
<ol>
<ol>
<ol>
<li/>
<h3 class="western"><a name="__RefHeading___Toc365635999"></a>
8.1 swe_deltat()</h3>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tjde
= tjd + <b>swe_deltat</b>(tjd); where <b>tjd</b> = Julian day in UT,
<b>tjde</b><i> </i>= in ET</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-right: -0.02in">For precision fanatics: The value
of <b>delta t</b> depends on the tidal acceleration in the motion of
the moon. Its default value corresponds to the state-of-the-art JPL
ephemeris (e.g. <span lang="fr-FR">DE406, s. </span><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swephexp.h</span></font></font></font><span lang="fr-FR">).
</span>If you use another JPL ephemeris, e.g. DE200, you may wish
the tidal constant of DE200. This makes a difference of 0.5 time
seconds in 1900 and 4 seconds in 1800 (= 0.2” in the position
of the sun). However, this effect is limited to the period 1620 -
~1997. To change the tidal acceleration, use the function
</p>
<ol>
<ol>
<ol start="2">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636000"></a>
8.2 swe_set_tid_acc(), swe_get_tid_acc()</h3>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><b>swe_set_tid_acc</b>(acceleration);
<font color="#000000"> //</font><font color="#ffffff"><font face="Arial, sans-serif"><b><span style="background: #0000ff">
Do this before calling deltat() !</span></b></font></font></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-right: -0.02in">The values that <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>acceleration</b></font></font>
can have are listed in <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swephexp.h.</span></font></font></font>
(e.g. <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SE_TIDAL_200</font></font></font>,
etc.)</p>
<p style="margin-right: -0.02in">To find out the built-in value of
the tidal acceleration, you can call
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">acceleration
= <b>swe_get_tidacc</b>(); </font></font></font>
</p>
<p style="margin-bottom: 0.08in"><br/>
<br/>
</p>
<ol>
<ol>
<ol start="3">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636001"></a>
8.3. Future updates of Delta T and the file swe_deltat.txt</h3>
</ol>
</ol>
</ol>
<p style="margin-bottom: 0.08in">Delta T values for future years can
only be estimated. Strictly speaking, the Swiss Ephemeris has to be
updated every year after the new Delta T value for the past year has
been published by the IERS. We will do our best and hope to update
the Swiss Ephemeris every year. However, if the user does not want
to wait for our update or does not download a new version of the
Swiss Ephemeris he can add new Delta T values in the file
swe_deltat.txt, which has to be located in the Swiss Ephemeris
ephemeris path.</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#
This file allows make new Delta T known to the Swiss Ephemeris.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#
Note, these values override the values given in the internal Delta T</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#
table of the Swiss Ephemeris.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#
Format: year and seconds (decimal) </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">2003
64.47</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">2004
65.80</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">2005
66.00</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">2006
67.00</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">2007
68.00</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">2008
68.00</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">2009
69.00</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<ol>
<ol start="9">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365636002"></a>
9. The function swe_set_topo() for topocentric planet positions</h2>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477841944"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
<b>swe_set_topo</b>(double <font color="#0000ff">geolon</font>,
double <font color="#0000ff">geolat</font>, double <font color="#0000ff">altitude</font>);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> /*
eastern longitude is positive, western longitude is negative,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
northern latitude is positive, southern latitude is negative */</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477841859"></a>This
function must be called before topocentric planet positions for a
certain birth place can be computed. It tells Swiss Ephemeris, what
geographic position is to be used. Geographic longitude <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>geolon
</b></font></font>and latitude <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>geolat</b></font></font>
must be in <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">degrees</span></font></font></font>,
the <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>altitude</b></font></font>
above sea must be in <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">meters</span></font></font></font>.
Neglecting the altitude can result in an error of about <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">2
arc seconds</span></font></font></font> with the moon and at an
altitude 3000 m. After calling <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_set_topo()</span></font></font></font>,
add SEFLG_TOPOCTR to<b> </b><font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>iflag</b></font></font>
and call <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font>
as with an ordinary computation. E.g.:
</p>
<p><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><b>swe_set_topo</b>(geo_lon,
geo_lat, altitude_above_sea);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">iflag
| = SEFLG_TOPOCTR;</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">for
(i = 0; i < NPLANETS; i++) {</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">iflgret
= swe_calc( tjd, ipl, iflag, xp, serr );</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="pt-BR">printf(”%f\n”,
xp[0]);</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">}
</font></font></font>
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">The parameters set by
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_set_topo()</span></font></font></font>
survive <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_close().</span></font></font></font></p>
<p class="western"><br/>
</p>
<ol>
<ol start="10">
<li/>
<h2 lang="fr-FR" class="western"><a name="__RefHeading___Toc365636003"></a>
10. Sidereal mode functions</h2>
<ol>
<li/>
<h3 lang="fr-FR" class="western"><a name="__RefHeading___Toc365636004"></a>
10.1. swe_set_sid_mode()</h3>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477842044"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="fr-FR">void
</span><span lang="fr-FR"><b>swe_set_sid_mode</b></span><span lang="fr-FR">
(int32 </span><font color="#0000ff"><span lang="fr-FR">sid_mode</span></font><span lang="fr-FR">,
double </span><font color="#0000ff"><span lang="fr-FR">t0</span></font><span lang="fr-FR">,
double </span><font color="#0000ff"><span lang="fr-FR">ayan_t0</span></font><span lang="fr-FR">);</span></font></font></font></p>
<p lang="fr-FR" style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">This function can be used to
specify the mode for sidereal computations.
</p>
<p style="margin-right: -0.02in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font>
or <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_fixstar()</span></font></font></font>
has then to be called with the bit SEFLG_SIDEREAL.
</p>
<p style="margin-right: -0.02in">If <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_set_sid_mode()</span></font></font></font>
is not called, the default <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>ayanamsha</b></font></font><b>
</b>(Fagan/Bradley) is used.
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477842160"></a><a name="_Hlk477842217"></a><a name="_Hlk477860745"></a>
If a predefined mode is wanted, the variable <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>sid_mode</b></font></font>
has to be set, while <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>t0</b></font></font>
and <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>ayan_t0</b></font></font>
are not considered, i.e. can be 0. The predefined sidereal modes
are:
</p>
<p lang="es-ES"><br/>
</p>
<p lang="es-ES" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_FAGAN_BRADLEY 0</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_LAHIRI 1</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_DELUCE 2</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_RAMAN 3</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_USHASHASHI 4</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_KRISHNAMURTI 5</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_DJWHAL_KHUL 6</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_YUKTESHWAR 7</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_JN_BHASIN 8</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_BABYL_KUGLER1 9</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_BABYL_KUGLER2 10</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_BABYL_KUGLER3 11</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_BABYL_HUBER 12</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_BABYL_ETPSC 13</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_ALDEBARAN_15TAU 14</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_HIPPARCHOS 15</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_SASSANIAN 16</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_GALCENT_0SAG 17</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_J2000 18</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_J1900 19</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_B1950 20</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_SURYASIDDHANTA 21</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_SURYASIDDHANTA_MSUN 22</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_ARYABHATA 23</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_ARYABHATA_MSUN 24</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_USER 255</font></font></font></p>
<p><br/>
</p>
<p style="margin-right: -0.02in">For information about the sidereal
modes, read the chapter on sidereal calculations in <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swisseph.doc.</span></font></font></font></p>
<p style="margin-right: -0.02in">To define your own sidereal mode,
use SE_SIDM_USER (= 255) and set the reference date <b>(</b><font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>t0</b></font></font><b>)</b>
and the initial value of the<b> </b><font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>ayanamsha
(ayan_t0)</b></font></font>.</p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ayan_t0
= tropical_position_t0 – sidereal_position_t0.</font></font></font></p>
<p style="margin-right: -0.02in">Without additional specifications,
the traditional method is used. The <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>ayanamsha</b></font></font>
measured on the ecliptic of t0 is subtracted from tropical positions
referred to the ecliptic of date.
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">Note, this method will NOT provide
accurate results if you want coordinates referred to the ecliptic of
one of the following equinoxes:</p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_J2000 18</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_J1900 19</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_B1950 20</font></font></font></p>
<p lang="en-GB" style="margin-right: -0.02in">Instead, you have to
use a correct coordinate transformation as described in the
following:</p>
<p lang="en-GB" style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><i><u>Special uses of the sidereal
functions:</u></i></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><i>a) correct transformation of
ecliptic coordinates to the ecliptic of a particular date</i></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">If a correct transformation to the
ecliptic of <b>t0</b> is required the following bit can be added
(‘ored’) to the value of the variable <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>sid_mode:</b></font></font></p>
<p><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
for projection onto ecliptic of t0 */</font></font></font></p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDBIT_ECL_T0 256</font></font></font></p>
<p lang="fr-FR" class="western">E.g.:</p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><b>swe_set_sid_mode</b>(SE_SIDM_J2000
+ SE_SIDBIT_ECL_T0, 0, 0);</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">iflag
|= SEFLG_SIDEREAL;</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">for
(i = 0; i < NPLANETS; i++) {</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">iflgret
= swe_calc(tjd, ipl, iflag, xp, serr);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="pt-BR">printf(”%f\n”,
xp[0]);</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">}
</font></font></font>
</p>
<p><br/>
</p>
<p>This procedure is required for the following sidereal modes, i.e.
for transformation to the ecliptic of one of the standard equinoxes:</p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_J2000 18</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_J1900 19</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDM_B1950 20</font></font></font></p>
<p lang="it-IT"><br/>
</p>
<p style="margin-right: -0.02in"><i>b) calculating
precession-corrected transits</i></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">The function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_set_sidmode()</span></font></font></font>
can also be used for calculating ”precession-corrected
transits”. There are two methods, of which you have to choose
the one that is more appropriate for you:</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">1. If you already have tropical
positions of a natal chart, you can proceed as follows:</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="da-DK">iflgret
</span><span lang="da-DK"><b>= swe_calc</b></span><span lang="da-DK">(tjd_et_natal,
SE_ECL_NUT, 0, x, serr);</span></font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">nut_long_nata
= x[2];</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><b>swe_set_sid_mode</b>(
SE_SIDBIT_USER + SE_SIDBIT_ECL_T0, tjd_et, nut_long_natal );</font></font></font></p>
<p lang="da-DK" style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">where <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>tjd_et_natal</b></font></font>
is the Julian day of the natal chart (Ephemeris time).</p>
<p style="margin-right: -0.02in">After this calculate the transits,
using the function swe_calc() with the sidereal bit:</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">iflag
|= SEFLG_SIDEREAL;</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">iflgret
= swe_calc(tjd_et_transit, ipl_transit, iflag, xpt, serr);</font></font></font></p>
<p lang="da-DK"><br/>
</p>
<p lang="da-DK" class="western">2. If you do not have tropical natal
positions yet, if you do not need them and are just interested in
transit times, you can have it simpler:</p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><b>swe_set_sid_mode</b>(
SE_SIDBIT_USER + SE_SIDBIT_ECL_T0, tjd_et, 0 );</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">iflag
|= SEFLG_SIDEREAL;</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="da-DK">iflgret
= </span><span lang="da-DK"><b>swe_calc</b></span><span lang="da-DK">(tjd_et_natal,
ipl_natal, iflag, xp, serr);</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="da-DK">iflgret
= </span><span lang="da-DK"><b>swe_calc</b></span><span lang="da-DK">(tjd_et_transit,
ipl_transit, iflag, xpt, serr);</span></font></font></font></p>
<p lang="da-DK"><br/>
</p>
<p lang="da-DK" class="western">In this case, the natal positions
will be tropical but without nutation. Note that you should not use
them for other purposes.</p>
<p lang="da-DK" class="western"><br/>
</p>
<p lang="da-DK" class="western"><i>c) solar system rotation plane</i></p>
<p lang="da-DK" class="western"><br/>
</p>
<p style="margin-right: -0.02in">For sidereal positions referred to
the solar system rotation plane, use the flag
</p>
<p><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
for projection onto solar system rotation plane */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_SIDBIT_SSY_PLANE 512</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">Note: the parameters set by
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_set_sid_mode()</span></font></font></font>
survive calls of the function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_close().</span></font></font></font></p>
<ol>
<ol>
<ol start="2">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636005"></a>
10.2. swe_get_ayanamsa_ut() and swe_get_ayanamsa()</h3>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477856452"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
<b>swe_get_ayanamsa_ut</b>(double tjd_ut);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477856443"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
<b>swe_get_ayanamsa</b>(double tjd_et);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-right: -0.02in">The function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_get_ayanamsa_ut()</span></font></font></font>
was introduced with Swisseph Version 1.60 and expects Universal Time
instead of Ephemeris Time. (cf. <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc_ut()</span></font></font></font>
and <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font>)</p>
<p style="margin-right: -0.02in"><a name="_Hlk477842381"></a>The two
functions compute the <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>ayanamsha</b></font></font>,
i.e. the distance of the tropical vernal point from the sidereal
zero point of the zodiac. The<b> </b><font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>ayanamsha</b></font></font>
is used to compute sidereal planetary positions from tropical ones:</p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">pos_sid
= pos_trop – ayanamsha</font></font></font></p>
<p style="margin-right: -0.02in">Before calling <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_get_ayanamsha()</span></font></font></font>,
you have to set the sidereal mode with <font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477842044">swe_set_sid_mode</a></u></font></font></font>,
unless you want the default sidereal mode, which is the
Fagan/Bradley<b> </b><font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>ayanamsha.</b></font></font>
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol start="11">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365636006"></a>
11. The Ephemeris file related functions
</h2>
<ol>
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636007"></a>
11.1 swe_set_ephe_path()</h3>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in"><a name="_Hlk477844273"></a>If the
environment variable SE_EPHE_PATH exists in the environment where
Swiss Ephemeris is used, its content is used to find the ephemeris
files. The variable can contain a directory name, or a list of
directory names separated by <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b><font size="4" style="font-size: 14pt">;</font></b></font></font>
(semicolon) on Windows or <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b><font size="4" style="font-size: 14pt">:</font></b></font></font>
(colon) on Unix.
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477843944"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
<b>swe_set_ephe_path</b>(char *path);</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">Usually an application will want to
set its own ephemeris path by calling <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_set_ephe_path()</span></font></font></font>,
e.g.</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">swe_set_ephe_path(”C:\\SWEPH\\EPHE”);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477863958"></a>The
argument can be a single directory name or a list of directories,
which are then searched in sequence. The argument of this call is
ignored if the environment variable <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SE_EPHE_PATH</font></font></font>
exists and is not empty.<br>If you want to make sure that your
program overrides any environment variable setting, you can use
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">putenv()</span></font></font></font>
to set it to an empty string.
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477864058"></a>If the
path is longer than <font color="#800000"><b>256 bytes</b></font>,
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_set_ephe_path()</span></font></font></font>
sets the path <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">\SWEPH\EPHE</span></font></font></font>
instead.</p>
<p style="margin-right: -0.02in">If no environment variable exists
and <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_set_ephe_path()</span></font></font></font>
is never called, the built-in ephemeris path is used. On Windows it
is <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">”\sweph\ephe”</span></font></font></font>
relative to the current working drive, on Unix it is <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">"/users/ephe".</span></font></font></font></p>
<p style="margin-right: -0.02in">Asteroid ephemerides are looked for
in the subdirectories <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">ast0,
ast1, ast2 .. ast9 </span></font></font></font>of the ephemeris
directory and, if not found there, in the ephemeris directory
itself. Asteroids with numbers 0 – 999 are expected in
directory <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">ast0</span></font></font></font>,
those with numbers 1000 – 1999 in directory <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">ast1</span></font></font></font>
etc.
</p>
<p style="margin-right: -0.02in">The environment variable
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SE_EPHE_PATH</font></font></font>
is most convenient when a user has several applications installed
which all use the Swiss Ephemeris but would normally expect the
ephemeris files in different application-specific directories. The
use can override this by setting the environment variable, which
forces all the different applications to use the same ephemeris
directory. This allows him to use only one set of installed
ephemeris files for all different applications. A developer should
accept this override feature and allow the sophisticated users to
exploit it.</p>
<ol>
<ol>
<ol start="2">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636008"></a>
11.2 swe_close()</h3>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
close Swiss Ephemeris */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477844023"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
<b>swe_close</b>(void);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-right: -0.02in">At the end of your computations you
can release most resources (open files and allocated memory) used by
the Swiss Ephemeris DLL.</p>
<p style="margin-right: -0.02in">The following parameters survive a
call of <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc():</span></font></font></font></p>
<ul>
<li/>
<p style="margin-right: -0.02in">the ephemeris path set by
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_set_ephe_path()
</span></font></font></font>
</p>
<li/>
<p style="margin-right: -0.02in">the JPL file name set by<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">
swe_set_jpl_file()</span></font></font></font></p>
<li/>
<p style="margin-right: -0.02in">the geographical location
set by<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">
swe_set_topo()</span></font></font></font> for topocentric
planetary positions</p>
<li/>
<p style="margin-right: -0.02in">the sidereal mode set by
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_set_sid_mode()</span></font></font></font>
for sidereal planetary positions</p>
</ul>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">As soon as you make a call to
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font>
or <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_fixstar()</span></font></font></font>,
the Swiss Ephemeris re-opens again.</p>
<ol>
<ol>
<ol start="3">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636009"></a>
11.3 swe_set_jpl_file()</h3>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
set name of JPL ephemeris file */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477844051"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
<b>swe_set_jpl_file</b>(char *fname);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-right: -0.02in">If you work with the JPL ephemeris,
SwissEph uses the default file name which is defined in <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swephexp.h</span></font></font></font>
as SE_FNAME_DFT. Currently, it has the value <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">”de406.eph”</span></font></font></font>.</p>
<p style="margin-right: -0.02in">If different JPL ephemeris file is
required, call the function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_set_jpl_file()</span></font></font></font><i>
</i>to make the file name known to the software, e.g.
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">swe_set_jpl_file(”de405.eph”);</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">This file must reside in the
ephemeris path you are using for all your ephemeris files.</p>
<p>If the file name is longer than 256 byte, <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_set_jpl_file()</span></font></font></font>
cuts the file name to a length of 256 bytes. The error will become
visible after the first call of <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font>,
when it will return zero positions and an error message.</p>
<p><br/>
</p>
<ol>
<ol>
<ol start="4">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636010"></a>
11.4 swe_version()</h3>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
find out version number of your Swiss Ephemeris version */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*<b>swe_version</b>(char *svers); </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
svers is a string variable with sufficient space to contain the
version number (255 char) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p>The Function returns a pointer to the string svers, i.e. to the
version number of the Swiss Ephemeris that your software is using.</p>
<p><br/>
</p>
<ol>
<ol start="12">
<li/>
<h2 class="western" style="page-break-before: always"><a name="__RefHeading___Toc365636011"></a>
12. House cusp calculation</h2>
<ol>
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636012"></a>
12.1 swe_houses()</h3>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
house cusps, ascendant and MC */ </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477861239"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
<b>swe_houses</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_ut, /* Julian day number, UT */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
geolat, /* geographic latitude, in degrees */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
geolon, /* geographic longitude, in degrees</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* eastern longitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* western longitude is negative,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* northern latitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* southern latitude is negative */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
hsys, /* house method, ascii code of one of the letters
PKORCAEVXHTBG */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*cusps, /* array for 13 doubles */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*ascmc); /* array for 10 doubles */</font></font></font></p>
<ol>
<ol>
<ol start="2">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636013"></a>
12.2 swe_houses_armc()</h3>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477861854"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
<b>swe_houses_armc</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
armc, /* ARMC */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
geolat, /* geographic latitude, in degrees */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
eps, /* ecliptic obliquity, in degrees */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
hsys, /* house method, ascii code of one of the letters
PKORCAEVXHTBG */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*cusps, /* array for 13 doubles */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*ascmc); /* array for 10 doubles */</font></font></font></p>
<ol>
<ol>
<ol start="3">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636014"></a>
12.3 swe_houses_ex()</h3>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
extended function; to compute tropical or sidereal positions */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477861861"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
<b>swe_houses_ex</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
tjd_ut, /* Julian day number, UT */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> int32
iflag, /* 0 or SEFLG_SIDEREAL or SEFLG_RADIANS */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
geolat, /* geographic latitude, in degrees */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
geolon, /* geographic longitude, in degrees</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><font face="Courier New, monospace"> </font>
* eastern longitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* western longitude is negative,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* northern latitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* southern latitude is negative */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> int
hsys, /* house method, ascii code of one of the letters
PKORCAEVXHTBG */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
*cusps, /* array for 13 doubles */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*ascmc); /* afrray for 10 doubles */ </font></font></font>
</p>
<p class="western"><br/>
</p>
<ol>
<ol>
<ol start="4">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636015"></a>
12.4 swe_house_name()</h3>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
returns the name of the house method, maximum 40 chars</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*/</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
* <b>swe_house_name</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> int
hsys, /* house method, ascii code of one of the letters
PKORCAEVXHTBG */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> );
</font></font></font>
</p>
<p class="western"><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477862144"></a><a name="_Hlk477862235"></a>
The function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_houses()</span></font></font></font>
is most comfortable, if you need the houses for a given date and
geographic position. Sometimes, however, you will want to compute
houses from an ARMC, e.g. with the composite horoscope which has no
date, only the composite ARMC of two natal ARMCs. In such cases, you
can use the function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_houses_armc()</span></font></font></font>.
To compute the composite ecliptic obliquity<b> </b><font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>eps</b></font></font>,
you will have to call <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">sweph_calc()</span></font></font></font><i>
</i>with <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>ipl
= </b></font></font><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">SE_ECL_NUT</span></font></font></font>
for both birth dates and calculate the average of both<b> </b><font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>eps.</b></font></font></p>
<p style="margin-right: -0.02in">Note that<b> </b><font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>tjd_ut</b></font></font>
must be <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Universal
Time</span></font></font></font>, whereas planets are computed from
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Ephemeris
Time</span></font></font></font></p>
<p lang="fr-FR" style="margin-right: -0.02in; text-indent: 0.49in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tjd_et
= tjd_ut + delta_t(tjd_ut). </font></font></font>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477862337"></a>Also
note that the array <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>cusps</b></font></font>
must provide space for <font color="#800000"><b>13 doubles </b></font>(declare
as <font color="#800000"><b>cusp[13]</b></font>), otherwise you risk
a program crash. With house system ‘G’ (Gauquelin sector
cusps), declare it as <font color="#800000"><b>cusp[37]</b></font>.</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">Note: With house system ‘G’,
the cusp numbering is in clockwise direction.</p>
<p style="margin-right: -0.02in">
</p>
<p style="margin-right: -0.02in">The extended house function
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_houses_ex()</span></font></font></font>
does exactly the same calculations as <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_houses()</span></font></font></font>.
The difference is that <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_houses_ex()</span></font></font></font>
has a parameter <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>iflag</b></font></font>,
which can be set to <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SEFLG_SIDEREAL</font></font></font>,
if <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">sidereal</span></font></font></font><span style="text-transform: uppercase"><font color="#800000"><b>
</b></font></span>house positions are wanted. Before calling
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_houses_ex()</span></font></font></font>
for sidereal house positions, the sidereal mode can be set by
calling the function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_set_sid_mode()</span></font></font></font>.
If this is not done, the default sidereal mode, i.e. the
Fagan/Bradley <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">ayanamsha,</span></font></font></font>
will be used.
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477862421"></a>There
is no extended function for <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_houses_armc()</span></font></font></font>.
Therefore, if you want to compute such obscure things as sidereal
composite house cusps, the procedure will be more complicated:
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
sidereal composite house computation; with true epsilon, but without
nutation in longitude */</font></font></font></p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><b>swe_calc</b>(tjd_et1,
SE_ECL_NUT, 0, x1, serr);</font></font></font></p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><b>swe_calc</b>(tjd_et2,
SE_ECL_NUT, 0, x2, serr);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">armc1
= <b>swe_sidtime</b>(tjd_ut1) * 15; </font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">armc2
= <b>swe_sidtime</b>(tjd_ut2) * 15;</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">armc_comp
= <b>composite</b>(armc1, armc2); /* this is a function created by
the user */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">eps_comp
= (x1[0] + x2[0]) / 2;</font></font></font></p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">nut_comp
= (x1[2] + x2[2]) / 2;</font></font></font></p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tjd_comp
= (tjd_et1 + tjd_et2) / 2;</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">aya
= <b>swe_get_ayanamsa</b>(tjd_comp);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><b>swe_houses_armc</b>(armc_comp,
geolat, eps_comp, hsys, cusps, ascmc);</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">for
(i = 1; i <= 12; i++)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="da-DK">cusp[i]
= </span><span lang="da-DK"><b>swe_degnorm</b></span><span lang="da-DK">(cusp[i]
– aya – nut_comp);</span></font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">for
(i = 0; i < 10; i++)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="da-DK">ascmc[i]
= </span><span lang="da-DK"><b>swe_degnorm</b></span><span lang="da-DK">(asc_mc[i]
– aya – nut_comp);</span></font></font></font></p>
<p lang="da-DK" style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">Output and input parameters.</p>
<p style="margin-right: -0.02in">The first array element <b>cusps[0]</b>
is always 0, the twelve houses follow in <b>cusps[1] .. [12]</b>,
the reason being that arrays in C begin with the index 0. The
indices are therefore:
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477862529"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">cusps[0]
= 0</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">cusps[1]
= house 1</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">cusps[2]
= house 2</font></font></font></p>
<p class="western">etc.</p>
<p><br/>
</p>
<p class="western">In the array <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>ascmc</b></font></font><b>,</b>
the function returns the following values:
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477862569"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ascmc[0]
= Ascendant</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ascmc[1]
= MC</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ascmc[2]
= ARMC</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ascmc[3]
= Vertex</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ascmc[4]
= "equatorial ascendant"</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ascmc[5]
= "co-ascendant" (Walter Koch)</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ascmc[6]
= "co-ascendant" (Michael Munkasey)</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ascmc[7]
= "polar ascendant" (M. Munkasey)</font></font></font></p>
<p lang="it-IT" class="western" style="margin-left: 0.25in; text-indent: -0.25in">
<br/>
</p>
<p class="western" style="margin-left: 0.25in; text-indent: -0.25in">
The following defines can be used to find these values:</p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_ASC 0</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_MC 1</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_ARMC 2</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_VERTEX 3</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_EQUASC 4 /* "equatorial ascendant" */</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_COASC1 5 /* "co-ascendant" (W. Koch) */</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_COASC2 6 /* "co-ascendant" (M. Munkasey) */</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_POLASC 7 /* "polar ascendant" (M. Munkasey) */</font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
SE_NASCMC 8</font></font></font></p>
<p lang="it-IT" class="western" style="margin-left: 0.25in; text-indent: -0.25in">
<br/>
</p>
<p class="western"><font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>ascmc</b></font></font><b>
</b>must be an array of <font color="#800000"><b>10 doubles</b></font>.
<font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>ascmc[8...
9]</b></font></font> are 0 and may be used for additional points in
future releases.</p>
<p class="western"><br/>
</p>
<p style="margin-right: -0.02in">The following house systems are
implemented so far</p>
<p><a name="_Hlk477862719"></a><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">hsys
= ‘P’ Placidus</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> ‘K’ Koch</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> ‘O’ Porphyrius</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> ‘R’ Regiomontanus</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> ‘C’ Campanus</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> ‘A’
or ‘E’ Equal (cusp 1 is Ascendant)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> ‘V’ Vehlow
equal (Asc. in middle of house 1)</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> ‘W’ Whole
sign </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> ‘X’ axial
rotation system / meridian system / zariel</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> ‘H’ azimuthal
or horizontal system</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> ‘T’ Polich/Page
(“topocentric” system)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="it-IT">‘B’ Alcabitus</span></font></font></font></p>
<p lang="it-IT" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> ‘M’ Morinus</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="it-IT"> </span><span lang="fr-FR">‘U’ Krusinski-Pisa</span></font></font></font></p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> ‘G’ Gauquelin
sectors</font></font></font></p>
<p lang="fr-FR" style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477864194"></a>Placidus
and Koch house cusps <font color="#800000"><b>cannot be computed
beyond the polar circle</b></font>. In such cases,<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">
swe_houses() </span></font></font></font>switches to Porphyry houses
(each quadrant is divided into three equal parts) and returns the
error code ERR.
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477861184"></a>The
<b>Vertex</b> is the point on the ecliptic that is located in
precise <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">western</span></font></font></font>
direction. The opposition of the <b>Vertex </b>is the <b>Antivertex,</b>
the ecliptic east point.
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol start="13">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365636016"></a>
13. The sign of geographical longitudes in Swisseph functions</h2>
</ol>
</ol>
<p style="margin-right: -0.02in">There is a disagreement between
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">American</span></font></font></font>
and <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>European</b></font></font>
programmers whether eastern or western geographical longitudes ought
to be considered positive. Americans prefer to have West longitudes
positive, Europeans prefer the older tradition that considers East
longitudes as positive and West longitudes as negative.
</p>
<p style="margin-right: -0.02in">The <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Astronomical
Almanac</span></font></font></font> still follows the European
pattern. It gives the geographical coordinates of observatories in
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">"East
longitude"</span></font></font></font>.</p>
<p style="margin-right: -0.02in">The Swiss Ephemeris also follows
the <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">European
style</span></font></font></font>. All Swiss Ephemeris functions
that use geographical coordinates consider <b>positive geographical
longitudes as East</b><i> </i>and <b>negative ones as West</b>.
</p>
<p style="margin-right: -0.02in">E.g. <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">87w39
= -87.65°</font></font></font> (Chicago IL/USA) and <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">8e33
= +8.55°</font></font></font> (Zurich, Switzerland).</p>
<p style="margin-right: -0.02in">There is no such controversy about
northern and southern geographical latitudes. North is always
positive and south is negative.</p>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol start="14">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365636017"></a>
14. Getting the house position of a planet with swe_house_pos()</h2>
</ol>
</ol>
<p style="margin-right: -0.02in">To compute the house position of a
given body for a given ARMC, you may use the
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477862955"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
<b>swe_house_pos(</b></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
armc, /* ARMC */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
geolat, /* geographic latitude, in degrees */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
eps, /* ecliptic obliquity, in degrees */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> int
hsys, /* house method, one of the letters PKRCAV */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
*xpin, /* array of 2 doubles: ecl. longitude and latitude of the
planet */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return area for error or warning message */</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">The variables <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>armc,
geolat, eps</b></font></font><b>,</b> and <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>xpin[0]</b></font></font><b>
</b>and <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>xpin[1]</b></font></font><i>
</i>(ecliptic longitude and latitude of the planet) must be in
degrees. <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>serr</b></font></font>
must, as usually, point to a character array of 256 byte.
</p>
<p style="margin-right: -0.02in">The function returns a value
between 1.0 and 12.999999, indicating in which house a planet is and
how far from its cusp it is.
</p>
<p style="margin-right: -0.02in">With house system ‘G’
(Gauquelin sectors), a value between 1.0 and 36.9999999 is returned.
Note that, while all other house systems number house cusps in
counterclockwise direction, Gauquelin sectors are numbered in
clockwise direction.
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><a name="_Hlk477864273"></a>With
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Koch</span></font></font></font>
houses, the function sometimes <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">returns
0</span></font></font></font>, if the computation was not possible.
This happens most often in <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">polar
regions</span></font></font></font>, but it can happen at latitudes
<font color="#800000"><b>below 66°33’</b></font> as well,
e.g. if a body has a high declination and falls within the
circumpolar sky. With circumpolar fixed stars (or asteroids) a Koch
house position may be impossible at any geographic location except
on the equator.</p>
<p style="margin-right: -0.02in">The user must decide how to deal
with this situation.</p>
<p style="margin-right: -0.02in">You can use the house positions
returned by this function for house horoscopes (or ”mundane”
positions). For this, you have to transform it into a value between
0 and 360 degrees. Subtract 1 from the house number and multiply it
with 30, or <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">mund_pos
= (hpos – 1) * 30;</font></font></font></p>
<p lang="es-ES"><br/>
</p>
<p style="margin-right: -0.02in">You will realize that house
positions computed like this, e.g. for the Koch houses, will not
agree exactly with the ones that you get applying the Huber ”hand
calculation” method. If you want a better agreement, set the
ecliptic latitude <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>xpin[1]=
0</b></font></font><i>;</i>. Remaining differences result from the
fact that Huber’s hand calculation is a simplification,
whereas our computation is geometrically accurate.</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">This function requires <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">TROPICAL</span></font></font></font>
positions in<b> </b><font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>xpin</b></font></font>.
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">SIDEREAL</span></font></font></font>
house positions are identical to tropical ones in the following
cases:</p>
<ul>
<li/>
<p style="margin-right: -0.02in">If the traditional method is
used to compute sidereal planets (<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">sid_pos
= trop_pos – ayanamsha</font></font></font>). Here the
function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_house_pos()
</span></font></font></font>works for all house systems.</p>
<li/>
<p style="margin-right: -0.02in"><a name="_Hlk477864373"></a>If
a non-traditional method (projection to the ecliptic of t0 or to
the solar system rotation plane) is used and the definition of the
house system does not depend on the ecliptic. This is the case with
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Campanus,
Regiomontanus, Placidus, Azimuth</span></font></font></font>
houses<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">,
axial rotation</span></font></font></font> houses. This is NOT the
case with <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">equal
houses, Porphyry and Koch houses</span></font></font></font>. You
have to compute equal and Porphyry house positions on your own. <font color="#ffffff"><font face="Arial, sans-serif"><b><span style="background: #0000ff">We
recommend to avoid Koch</span></b></font></font> houses here.
Sidereal Koch houses make no sense with these sidereal algorithms.
</p>
<li/>
<p style="margin-right: -0.02in">Alcabitus is not yet
supported in release 1.61.01</p>
</ul>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol start="15">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365636018"></a>
14.1. Calculating the Gauquelin sector position of a planet with
swe_house_pos() or swe_gauquelin_sector()
</h2>
</ol>
</ol>
<p style="margin-right: -0.02in">For general information on
Gauquelin sectors, read chapter 6.5 in documentation file
swisseph.doc.</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">There are two functions that can be
used to calculate Gauquelin sectors:
</p>
<ul>
<li/>
<p style="margin-right: -0.02in">swe_house_pos. Full details
about this function are presented in the previous section. To
calculate Gauquelin sectors the parameter hsys must be set to 'G'
(Gauquelin sectors). This function will then return the sector
position as a value between 1.0 and 36.9999999. Note that Gauquelin
sectors are numbered in clockwise direction, unlike all other house
systems.
</p>
<li/>
<p style="margin-right: -0.02in">swe_gauquelin_sector -
detailed below.</p>
</ul>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">Function swe_gauquelin_sector() is
declared as follows:</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_gauquelin_sector(</b></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_ut, /* search after this time (UT) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ipl, /* planet number, if planet, or moon */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*starname, /* star name, if star */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
iflag, /* flag for ephemeris and SEFLG_TOPOCTR */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
imeth, /* method: 0 = with lat., 1 = without lat., </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> /*
2 = from rise/set, 3 = from rise/set with refraction */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* array of three doubles containing</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* geograph. long., lat., height of observer */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
atpress, /* atmospheric pressure, only useful with imeth=3; </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* if 0, default = 1013.25 mbar is used*/</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
attemp, /* atmospheric temperature in degrees Celsius, only useful
with imeth=3 */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*dgsect, /* return address for gauquelin sector position */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return address for error message */</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">This function returns OK or ERR
(-1). It returns an error in a number of cases, for example
circumpolar bodies with imeth=2. As with other SE functions, if
there is an error, an error message is written to serr. dgsect is
used to obtain the Gauquelin sector sector position as a value
between 1.0 and 36.9999999. Gauquelin sectors are numbered in
clockwise direction.</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">There are six methods of computing
the Gauquelin sector position of a planet:</p>
<p style="margin-right: -0.02in">1. Sector positions from ecliptical
longitude AND latitude:</p>
<p style="margin-right: -0.02in"> There are two ways of doing
this:
</p>
<ul>
<li/>
<p style="margin-right: -0.02in">Call swe_house_pos() with
hsys = 'G', xpin[0] = ecliptical longitude of planet, and xpin[1] =
ecliptical
</p>
</ul>
<p style="margin-left: 0.2in; margin-right: -0.02in; text-indent: 0.29in">
latitude. This function returns the sector position as a value
between 1.0 and 36.9999999.</p>
<ul>
<li/>
<p style="margin-right: -0.02in">Call swe_gauquelin_sector()
with imeth=0. This is less efficient than swe_house_pos because it
</p>
</ul>
<p style="margin-left: 0.2in; margin-right: -0.02in"> recalculates
the whole planet whereas swe_house_pos() has an input array for
ecliptical positions
</p>
<p style="margin-left: 0.2in; margin-right: -0.02in"> calculated
before.</p>
<p style="margin-right: -0.02in; text-indent: -0.05in"><br/>
</p>
<p style="margin-right: -0.02in">2. Sector positions computed from
ecliptical longitudes without ecliptical latitudes:</p>
<p style="margin-right: -0.02in"> There are two ways of doing
this:
</p>
<ul>
<li/>
<p style="margin-right: -0.02in">Call swe_house_pos() with
hsys = 'G', xpin[0] = ecl. longitude of planet, and xpin[1] = 0.
This function
</p>
</ul>
<p style="margin-left: 0.2in; margin-right: -0.02in; text-indent: 0.29in">
returns the sector position as a value between 1.0 and 36.9999999.
</p>
<ul>
<li/>
<p style="margin-right: -0.02in">Call swe_gauquelin_sector()
with imeth=1. Again this is less efficient than swe_house_pos.</p>
</ul>
<p style="margin-right: -0.02in; text-indent: -0.05in"><br/>
</p>
<p style="margin-right: -0.02in">3. Sector positions of a planet
from rising and setting times of planets.</p>
<p style="margin-right: -0.02in"> The rising and setting of the
disk center is used:</p>
<ul>
<li/>
<p style="margin-right: -0.02in">Call swe_gauquelin_sector()
with imeth=2.
</p>
</ul>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">4. Sector positions of a planet
from rising and setting times of planets, taking into account
atmospheric refraction.
</p>
<p style="margin-right: -0.02in"> The rising and setting of the
disk center is used:</p>
<ul>
<li/>
<p style="margin-right: -0.02in">Call swe_gauquelin_sector()
with imeth = 3.
</p>
</ul>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">5. Sector positions of a planet
from rising and setting times of planets.</p>
<p style="margin-right: -0.02in"> The rising and setting of the
disk edge is used:</p>
<ul>
<li/>
<p style="margin-right: -0.02in">Call swe_gauquelin_sector()
with imeth=4.</p>
</ul>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in">6. Sector positions of a planet
from rising and setting times of planets, taking into account
atmospheric refraction.</p>
<p style="margin-right: -0.02in"> The rising and setting of the
disk edge is used:</p>
<ul>
<li/>
<p style="margin-right: -0.02in">Call swe_gauquelin_sector()
with imeth = 5.</p>
</ul>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol start="16">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365636019"></a>
15. Sidereal time with swe_sidtime() and swe_sidtime0()</h2>
</ol>
</ol>
<p style="margin-right: -0.02in"><a name="_Hlk477864589"></a>The
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">sidereal
time</span></font></font></font> is computed inside the <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">houses()
</span></font></font></font>function and returned via the variable
<font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>armc</b></font></font>
which measures sidereal time in degrees. To get sidereal time in
hours, divide <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>armc</b></font></font><b>
</b>by 15.
</p>
<p style="margin-right: -0.02in">If the sidereal time is required
separately from house calculation, two functions are available. The
second version requires obliquity and nutation to be given in the
function call, the first function computes them internally. Both
return sidereal time at the <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Greenwich
Meridian</span></font></font></font>, measured in hours.</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477864660"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
<b>swe_sidtime</b>(double tjd_ut); /* Julian day number, UT */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk477864667"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
<b>swe_sidtime0</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
tjd_ut, /* Julian day number, UT */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
eps, /* obliquity of ecliptic, in degrees */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
nut); /* nutation in longitude, in degrees */</font></font></font></p>
<p style="page-break-before: always"><br/>
</p>
<ol>
<ol start="17">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365636020"></a>
16. Summary of SWISSEPH functions</h2>
<ol>
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636021"></a>
16.1. Calculation of planets and stars</h3>
<ol>
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636022"></a>
Planets, moon, asteroids, lunar nodes, apogees, fictitious
bodies</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">long
<b>swe_calc_ut</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
tjd_ut, /* Julian day number, Universal Time */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="da-DK">int
ipl, /* planet number */</span></font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> long
iflag, /* flag bits */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="da-DK"> </span>double
*xx, /* target address for 6 position values: longitude,
latitude, distance,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
long. speed, lat. speed, dist. speed */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="da-DK">char
*serr); /* 256 bytes for error string */</span></font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">long
<b>swe_calc</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
tjd_et, /* Julian day number, Ephemeris Time */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="da-DK">int
ipl, /* planet number */</span></font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> long
iflag, /* flag bits */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="da-DK"> </span>double
*xx, /* target address for 6 position values: longitude, latitude,
distance,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> long.
speed, lat. speed, dist. speed */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="da-DK">char
*serr); /* 256 bytes for error string */</span></font></font></font></p>
<ol>
<ol>
<ol>
<ol start="2">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636023"></a>
Fixed stars</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">long
<b>swe_fixstar_ut</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> char
*star, /* star name, returned star name 40 bytes */ </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
tjd_ut, /* Julian day number, Universal Time */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="da-DK">long
iflag, /* flag bits */</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="da-DK"> </span>double
*xx, /* target address for 6 position values: longitude,
latitude, distance,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> long.
speed, lat. speed, dist. speed */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="da-DK">char
*serr); /* 256 bytes for error string */</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">long
<b>swe_fixstar</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> char
*star, /* star name, returned star name 40 bytes */ </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
tjd_et, /* Julian day number, Ephemeris Time */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="da-DK">long
iflag, /* flag bits */</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="da-DK"> </span>double
*xx, /* target address for 6 position values: longitude,
latitude, distance,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
long. speed, lat. speed, dist. speed */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="da-DK">char
*serr); /* 256 bytes for error string */</span></font></font></font></p>
<ol>
<ol>
<ol>
<ol start="3">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636024"></a>
Set the geographic location for topocentric planet computation</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
<b>swe_set_topo</b> (</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
geolon, /* geographic longitude */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
geolat, /* geographic latitude</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
eastern longitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
western longitude is negative,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
northern latitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
southern latitude is negative */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
altitude); /* altitude above sea */</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="4">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636025"></a>
Set the sidereal mode for sidereal planet positions</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
<b>swe_set_sid_mode</b> (</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="fr-FR">int32
sid_mode,</span></font></font></font></p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
t0, /* reference epoch */</font></font></font></p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
ayan_t0); /* initial ayanamsha at t0 */</font></font></font></p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
to get the ayanamsha for a date */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="fr-FR">double
</span><span lang="fr-FR"><b>swe_get_ayanamsa</b></span><span lang="fr-FR">(double
tjd_et);</span></font></font></font></p>
<ol>
<ol>
<ol start="2">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636026"></a>
16.2 Eclipses and planetary phenomena</h3>
<ol>
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636027"></a>
Find the next eclipse for a given geographic position</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_sol_eclipse_when_loc</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_start, /* start date for search, Jul. day UT */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifl, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* 3 doubles for geo. lon, lat, height */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><font face="Courier New, monospace"> </font>
* eastern longitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* western longitude is negative,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* northern latitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* southern latitude is negative */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*tret, /* return array, 10 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*attr, /* return array, 20 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">AS_BOOL
backward, /* TRUE, if backward search */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="2">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636028"></a>
Find the next eclipse globally</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_sol_eclipse_when_glob</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_start, /* start date for search, Jul. day UT */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifl, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifltype, /* eclipse type wanted: SE_ECL_TOTAL etc. */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*tret, /* return array, 10 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">AS_BOOL
backward, /* TRUE, if backward search */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="3">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636029"></a>
Compute the attributes of a solar eclipse for a given tjd,
geographic long., latit. and height</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_sol_eclipse_how</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_ut, /* time, Jul. day UT */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifl, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* geogr. longitude, latitude, height */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><font face="Courier New, monospace"> </font>
* eastern longitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* western longitude is negative,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* northern latitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* southern latitude is negative */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*attr, /* return array, 20 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="4">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636030"></a>
Find out the geographic position where a central eclipse is
central or a non-central one maximal</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_sol_eclipse_where</b> (</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_ut, /* time, Jul. day UT */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifl, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* return array, 2 doubles, geo. long. and lat. */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* eastern longitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* western longitude is negative,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* northern latitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* southern latitude is negative */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*attr, /* return array, 20 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">or
</font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_lun_occult_where </b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_ut, /* time, Jul. day UT */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ipl, /* planet number */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char*
starname, /* star name, must be NULL or ”” if not a
star */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifl, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* return array, 2 doubles, geo. long. and lat.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* eastern longitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* western longitude is negative,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* northern latitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* southern latitude is negative */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*attr, /* return array, 20 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="5">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636031"></a>
Find the next occultation of a body by the moon for a given
geographic position</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">(can
also be used for solar eclipses )</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_lun_occult_when_loc</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_start, /* start date for search, Jul. day UT */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ipl, /* planet number */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char*
starname, /* star name, must be NULL or ”” if not a
star */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifl, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* 3 doubles for geo. lon, lat, height eastern longitude
is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
western longitude is negative, northern latitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
southern latitude is negative */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*tret, /* return array, 10 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*attr, /* return array, 20 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">AS_BOOL
backward, /* TRUE, if backward search */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="6">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636032"></a>
Find the next occultation globally</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">(can
also be used for solar eclipses )</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_lun_occult_when_glob</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_start, /* start date for search, Jul. day UT */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ipl, /* planet number */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char*
starname, /* star name, must be NULL or ”” if not a
star */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifl, /* ephemeris flag */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifltype, /* eclipse type wanted */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* 3 doubles for geo. lon, lat, height eastern longitude
is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
western longitude is negative, northern latitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
southern latitude is negative */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*tret, /* return array, 10 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*attr, /* return array, 20 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">AS_BOOL
backward, /* TRUE, if backward search */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="7">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636033"></a>
Find the next lunar eclipse</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_lun_eclipse_when</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_start, /* start date for search, Jul. day UT */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifl, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifltype, /* eclipse type wanted: SE_ECL_TOTAL etc. */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*tret, /* return array, 10 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">AS_BOOL
backward, /* TRUE, if backward search */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="8">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636034"></a>
Compute the attributes of a lunar eclipse at a given time</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_lun_eclipse_how</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_ut, /* time, Jul. day UT */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ifl, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* input array, geopos, geolon, geoheight */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
eastern longitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
western longitude is negative,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
northern latitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
southern latitude is negative */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*attr, /* return array, 20 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol>
<ol>
<ol start="9">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636035"></a>
Compute risings, settings and meridian transits of a body</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_rise_trans</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_ut, /* search after this time (UT) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ipl, /* planet number, if planet or moon */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*starname, /* star name, if star */</font></font></font></p>
<p lang="de-CH" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
epheflag, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
rsmi, /* integer specifying that rise, set, or one of the two
meridian transits is</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
wanted. see definition below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* array of three doubles containing geograph. long.,
lat., height of observer */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
atpress, /* atmospheric pressure in mbar/hPa */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
attemp, /* atmospheric temperature in deg. C */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*tret, /* return address (double) for rise time etc. */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return address for error message */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_rise_trans_true_hor</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_ut, /* search after this time (UT) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ipl, /* planet number, if planet or moon */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*starname, /* star name, if star */</font></font></font></p>
<p lang="de-CH" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
epheflag, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
rsmi, /* integer specifying that rise, set, orone of the two
meridian transits is</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
wanted. see definition below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* array of three doubles containing</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* geograph. long., lat., height of observer */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
atpress, /* atmospheric pressure in mbar/hPa */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
attemp, /* atmospheric temperature in deg. C */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
horhgt, /* height of local horizon in deg at the point where the
body rises or sets*/</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*tret, /* return address (double) for rise time etc. */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return address for error message */</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<ol>
<ol>
<ol>
<ol start="10">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636036"></a>
Compute planetary phenomena</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
<b>swe_pheno_ut</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_ut, /* time Jul. Day UT */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ipl, /* planet number */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
iflag, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*attr, /* return array, 20 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
swe_pheno(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_et, /* time Jul. Day ET */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ipl, /* planet number */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
iflag, /* ephemeris flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*attr, /* return array, 20 doubles, see below */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return error string */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
<b>swe_azalt</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="fr-FR">double
tjd_ut, /* UT */</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="pt-BR">int32
calc_flag, /* SE_ECL2HOR or SE_EQU2HOR */</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* array of 3 doubles: geogr. long., lat., height */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
atpress, /* atmospheric pressure in mbar (hPa) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
attemp, /* atmospheric temperature in degrees Celsius */</font></font></font></p>
<p style="margin-left: 1.94in; text-indent: -1.54in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*xin, /* array of 3 doubles: position of body in either ecliptical
or equatorial coordinates, depending on calc_flag */</font></font></font></p>
<p style="margin-left: 1.94in; text-indent: -1.54in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*xaz); /* return array of 3 doubles, containing azimuth, true
altitude, apparent altitude */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
<b>swe_azalt_rev</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="fr-FR">double
tjd_ut,</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
calc_flag, /* either SE_HOR2ECL or SE_HOR2EQU */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* array of 3 doubles for geograph. pos. of observer */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*xin, /* array of 2 doubles for azimuth and true altitude of
planet */</font></font></font></p>
<p style="margin-left: 1.94in; text-indent: -1.54in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*xout); /* return array of 2 doubles for either ecliptic or
equatorial coordinates, depending on calc_flag */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
swe_refrac(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
inalt, </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
atpress, /* atmospheric pressure in mbar (hPa) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
attemp, /* atmospheric temperature in degrees Celsius */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
calc_flag); /* either SE_TRUE_TO_APP or SE_APP_TO_TRUE */</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol>
<ol start="3">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636037"></a>
16.3. Date and time conversion</h3>
<ol>
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636038"></a>
Delta T from Julian day number
</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
Ephemeris time (ET) = Universal time (UT) + swe_deltat(UT)*/</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="fr-FR">double
</span><span lang="fr-FR"><b>swe_deltat</b></span><span lang="fr-FR">(double
tjd);</span></font></font></font></p>
<ol>
<ol>
<ol>
<ol start="2">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636039"></a>
Julian day number from year, month, day, hour, with check
whether date is legal</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*Return
value: OK or ERR */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
<b>swe_date_conversion</b> (</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> int
y , int m , int d , /* year, month, day */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
hour, /* hours (decimal, with fraction) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> char
c, /* calendar ‘g’[regorian]|’j’[ulian]
*/</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*tjd); /* target address for Julian day */ </font></font></font>
</p>
<ol>
<ol>
<ol>
<ol start="3">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636040"></a>
Julian day number from year, month, day, hour</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
<b>swe_julday</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
year, int month, int day, double hour, </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
gregflag); /* Gregorian calendar: 1, Julian calendar: 0 */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<ol>
<ol>
<ol>
<ol start="4">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636041"></a>
Year, month, day, hour from Julian day number</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
s<b>we_revjul</b> (</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
tjd, /* Julian day number */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> int
gregflag, /* Gregorian calendar: 1, Julian calendar: 0 */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> int
*year, /* target addresses for year, etc. */ </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> int
*month, int *day, double *hour);</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="5">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636042"></a>
Local time to UTC and UTC to local time
</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
transform local time to UTC or UTC to local time</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
input:</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
iyear ... dsec date and time</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
d_timezone timezone offset</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
output:</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
iyear_out ... dsec_out</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
For time zones east of Greenwich, d_timezone is positive.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
For time zones west of Greenwich, d_timezone is negative.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
For conversion from local time to utc, use +d_timezone.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
For conversion from utc to local time, use -d_timezone.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*/</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
FAR PASCAL_CONV swe_utc_timezone(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
iyear, int32 imonth, int32 iday,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="fr-FR">int32
ihour, int32 imin, double dsec,</span></font></font></font></p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
d_timezone,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
*iyear_out, int32 *imonth_out, int32 *iday_out,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
*ihour_out, int32 *imin_out, double *dsec_out</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">)</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="6">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636043"></a>
UTC to jd (TT and UT1)
</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
input: date and time (wall clock time), calendar flag.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
output: an array of doubles with Julian Day number in ET (TT) and UT
(UT1)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
an error message (on error)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
<span lang="en-GB">The function returns OK or ERR.</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*/
</font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
<b>swe_utc_to_jd</b> (</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> int32
iyear, int32 imonth, int32 iday,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="en-GB">int32
ihour, int32 imin, double dsec, /* note : second is a decimal
*/</span></font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> gregflag,
/* Gregorian calendar: 1, Julian calendar: 0 */</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> dret /*
return array, two doubles:</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* dret[0] = Julian day in ET (TT)</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* dret[1] = Julian day in UT (UT1) */</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> serr /*
error string */</font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">)</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="7">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636044"></a>
TT (ET1) to UTC
</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
input: Julian day number in ET (TT), calendar flag</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
output: year, month, day, hour, min, sec in UTC */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
<b>swe_jdet_to_utc</b> (</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="en-GB">double
tjd_et, /* Julian day number in ET (TT) */</span></font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> gregflag,
/* Gregorian calendar: 1, Julian calendar: 0 */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="en-GB"> </span>int32
*iyear, int32 *imonth, int32 *iday,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="en-GB">int32
*ihour, int32 *imin, double *dsec, /* note : second is a
decimal */</span></font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">)</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="8">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636045"></a>
UTC to TT (ET1)</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
input: Julian day number in UT (UT1), calendar flag</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">*
output: year, month, day, hour, min, sec in UTC */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
<b>swe_jdut1_to_utc</b> (</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="en-GB">double
tjd_ut, /* Julian day number in ET (TT) */</span></font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> gregflag,
/* Gregorian calendar: 1, Julian calendar: 0 */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="en-GB"> </span>int32
*iyear, int32 *imonth, int32 *iday,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="en-GB">int32
*ihour, int32 *imin, double *dsec, /* note : second is a
decimal */</span></font></font></font></p>
<p lang="en-GB" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">)</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="9">
<li/>
<h4 class="western" style="text-indent: 0in"></h4>
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636046"></a>
Get tidal acceleration used in swe_deltat()</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
<b>swe_get_tid_acc</b>(void); </font></font></font>
</p>
<ol>
<ol>
<ol>
<ol start="11">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636047"></a>
Set tidal acceleration to be used in swe_deltat()</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
<b>swe_set_tid_acc</b>(double t_acc);</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="12">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636048"></a>
Equation of time</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/
* function returns the difference between local apparent and local
mean time.</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="it-IT">e
= LAT – LMT. </span>tjd_et is ephemeris time */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="fr-FR">int
</span><span lang="fr-FR"><b>swe_time_equ</b></span><span lang="fr-FR">(double
tjd_et, double *e, char *serr);</span></font></font></font></p>
<ol>
<ol>
<ol start="4">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636049"></a>
16.4. Initialization, setup, and closing functions</h3>
<ol>
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636050"></a>
Set directory path of ephemeris files</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
<b>swe_set_ephe_path</b>(char *path);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
set name of JPL ephemeris file */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
<b>swe_set_jpl_file</b>(char *fname);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
close Swiss Ephemeris */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
<b>swe_close</b>(void);</font></font></font></p>
<ol>
<ol>
<ol start="5">
<li/>
<h3 class="western" style="page-break-before: always"><a name="__RefHeading___Toc365636051"></a>
16.5. House calculation</h3>
<ol>
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636052"></a>
Sidereal time</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
<b>swe_sidtime</b>(double tjd_ut); /* Julian day number, UT */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
<b>swe_sidtime0</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
tjd_ut, /* Julian day number, UT */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
eps, /* obliquity of ecliptic, in degrees */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
nut); /* nutation, in degrees */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<ol>
<ol>
<ol>
<ol start="2">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636053"></a>
Name of a house method</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
* <b>swe_house_name</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> int
hsys, /* house method, ascii code of one of the letters
PKORCAEVXHTBG */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> );
</font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<ol>
<ol>
<ol>
<ol start="3">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636054"></a>
House cusps, ascendant and MC</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
<b>swe_houses</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
tjd_ut, /* Julian day number, UT */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
geolat, /* geographic latitude, in degrees */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
geolon, /* geographic longitude, in degrees</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
eastern longitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
western longitude is negative,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
northern latitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
southern latitude is negative */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> int
hsys, /* house method, one of the letters PKRCAV */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double*
cusps, /* array for 13 doubles */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double*
ascmc); /* array for 10 doubles */</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="4">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636055"></a>
Extended house function; to compute tropical or sidereal
positions</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
<b>swe_houses_ex</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
tjd_ut, /* Julian day number, UT */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> int32
iflag, /* 0 or SEFLG_SIDEREAL or SEFLG_RADIANS */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
geolat, /* geographic latitude, in degrees */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
geolon, /* geographic longitude, in degrees</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
eastern longitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
western longitude is negative,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
northern latitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
southern latitude is negative */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> int
hsys, /* house method, one of the letters PKRCAV */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double*
cusps, /* array for 13 doubles */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double*
ascmc); /* array for 10 doubles */</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
<b>swe_houses_armc</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
armc, /* ARMC */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
geolat, /* geographic latitude, in degrees */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
eps, /* ecliptic obliquity, in degrees */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> int
hsys, /* house method, one of the letters PKRCAV */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
*cusps, /* array for 13 doubles */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
*ascmc); /* array for 10 doubles */</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol>
<ol>
<ol start="5">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636056"></a>
Get the house position of a celestial point</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
<b>swe_house_pos</b> (</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
armc, /* ARMC */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
geolat, /* geographic latitude, in degrees</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><font face="Courier New, monospace"> </font>
eastern longitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
western longitude is negative,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
northern latitude is positive,</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
southern latitude is negative */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
eps, /* ecliptic obliquity, in degrees */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> int
hsys, /* house method, one of the letters PKRCAV */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
*xpin, /* array of 2 doubles: ecl. longitude and latitude of the
planet */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return area for error or warning message */</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol>
<ol>
<ol start="6">
<li/>
<h4 class="western" style="text-indent: 0in"></h4>
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636057"></a>
Get the Gauquelin sector position for a body
</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
<b>swe_gauquelin_sector(</b></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd_ut, /* search after this time (UT) */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
ipl, /* planet number, if planet, or moon */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*starname, /* star name, if star */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
iflag, /* flag for ephemeris and SEFLG_TOPOCTR */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int32
imeth, /* method: 0 = with lat., 1 = without lat., </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> /*
2 = from rise/set, 3 = from rise/set with refraction */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*geopos, /* array of three doubles containing</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* geograph. long., lat., height of observer */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
atpress, /* atmospheric pressure, only useful with imeth=3; </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
* if 0, default = 1013.25 mbar is used*/</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
attemp, /* atmospheric temperature in degrees Celsius, only useful
with imeth=3 */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*dgsect, /* return address for gauquelin sector position */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
*serr); /* return address for error message */</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in"><br/>
</p>
<p style="margin-right: -0.02in; page-break-before: always"><br/>
</p>
<ol>
<ol>
<ol start="6">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636058"></a>
16.6. Auxiliary functions</h3>
<ol>
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636059"></a>
Coordinate transformation, from ecliptic to equator or
vice-versa</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">equator
-> ecliptic : eps must be positive </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ecliptic
-> equator : eps must be negative eps, longitude and latitude
are in degrees! */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk478111295"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
<b>swe_cotrans</b>(</font></font></font></p>
<p style="margin-left: 1.94in; text-indent: -1.54in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*xpo, /* 3 doubles: long., lat., dist. to be converted; distance
remains unchanged, can be set to 1.00 */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> <span lang="fr-FR">double
*xpn, /* 3 doubles: long., lat., dist. </span>Result of the
conversion */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
eps); /* obliquity of ecliptic, in degrees. */</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="2">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636060"></a>
Coordinate transformation of position and speed, from ecliptic
to equator or vice-versa</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/
* equator -> ecliptic : eps must be positive</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ecliptic
-> equator : eps must be negative </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">eps,
long., lat., and speeds in long. and lat. are in degrees! */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk478111388"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
<b>swe_cotrans_sp</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
*xpo, /* 6 doubles, input: long., lat., dist. and speeds in long.,
lat and dist. */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
*xpn, /* 6 doubles, position and speed in new coordinate system */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
eps); /* obliquity of ecliptic, in degrees. */</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="3">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636061"></a>
Get the name of a planet</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char*
swe_get_planet_name(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
ipl, /* planet number */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char*
plan_name); /* address for planet name, at least 20 char */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
normalization of any degree number to the range 0 ... 360 */ </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk478111399"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
<b>swe_degnorm</b>(double x);</font></font></font></p>
<p style="margin-right: -0.02in"><br/>
</p>
<ol>
<ol>
<ol start="7">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636062"></a>
16.7. Other functions that may be useful</h3>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in; text-indent: 0.49in"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">PLACALC</span></font></font></font>,
the predecessor of <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">SWISSEPH</span></font></font></font>,
had included several functions that we do not need for SWISSEPH
anymore. Nevertheless we include them again in our DLL, because some
users of our software may have taken them over and use them in their
applications. However, we gave them new names that were more
consistent with SWISSEPH.</p>
<p style="margin-right: -0.02in; text-indent: 0.49in"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">PLACALC
</span></font></font></font>used angular measurements in
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">centiseconds</span></font></font></font>
a lot; a centisecond is <b>1/100</b> of an <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">arc
second</span></font></font></font>. The C type <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">CSEC</span></font></font></font>
or <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">centisec</span></font></font></font>
is a 32-bit integer. <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">CSEC</span></font></font></font>
was used because calculation with integer variables was considerably
faster than floating point calculation on most CPUs in 1988, when
PLACALC was written.</p>
<p style="margin-right: -0.02in">In the Swiss Ephemeris we have
dropped the use of centiseconds and use double (64-bit floating
point) for all angular measurements.</p>
<ol>
<ol>
<ol>
<ol>
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636063"></a>
Normalize argument into interval [0..DEG360]
</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/
* former function name: csnorm() */ </font></font></font>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk478111710"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">extern
EXP32 centisec FAR PASCAL_CONV EXP16 <b>swe_csnorm</b>(centisec p);</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="2">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636064"></a>
Distance in centisecs p1 - p2 normalized to [0..360]
</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/
* former function name: difcsn() */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk478111870"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">extern
EXP32 centisec FAR PASCAL_CONV EXP16 <b>swe_difcsn</b>(centisec p1,
centisec p2);</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="3">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636065"></a>
Distance in degrees</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
former function name: difdegn() */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk478111884"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">extern
EXP32 double FAR PASCAL_CONV EXP16 <b>swe_difdegn</b> (double p1,
double p2);</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="4">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636066"></a>
Distance in centisecs p1 - p2 normalized to [-180..180]
</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
former function name: difcs2n() */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk478111918"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">extern
EXP32 centisec FAR PASCAL_CONV EXP16 <b>swe_difcs2n</b>(centisec p1,
centisec p2);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in; page-break-before: always">
<br/>
</p>
<ol>
<ol>
<ol>
<ol start="5">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636067"></a>
Distance in degrees</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
former function name: difdeg2n() */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk478111928"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">extern
EXP32 double FAR PASCAL_CONV EXP16 <b>swe_difdeg2n</b>(double p1,
double p2);</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="6">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636068"></a>
Round second, but at 29.5959 always down
</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
former function name: roundsec() */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk478111937"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">extern
EXP32 centisec FAR PASCAL_CONV EXP16 <b>swe_csroundsec</b>(centisec
x);</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="7">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636069"></a>
Double to long with rounding, no overflow check
</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
former function name: d2l() */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk478111943"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">extern
EXP32 long FAR PASCAL_CONV EXP16 <b>swe_d2l</b>(double x);</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="8">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636070"></a>
Day of week
</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*Monday
= 0, ... Sunday = 6 former function name: day_of_week() */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk478111951"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">extern
EXP32 int FAR PASCAL_CONV EXP16 <b>swe_day_of_week</b>(double jd);</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="9">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636071"></a>
Centiseconds -> time string</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
former function name: TimeString() */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk478112061"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">extern
EXP32 char *FAR PASCAL_CONV EXP16 <b>swe_cs2timestr</b>(CSEC t, int
sep, AS_BOOL suppressZero, char *a);</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="10">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636072"></a>
Centiseconds -> longitude or latitude string</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
former function name: LonLatString() */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk478112074"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">extern
EXP32 char *FAR PASCAL_CONV EXP16 <b>swe_cs2lonlatstr</b>(CSEC t,
char pchar, char mchar, char *s);</font></font></font></p>
<ol>
<ol>
<ol>
<ol start="11">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636073"></a>
Centiseconds -> degrees string</h4>
</ol>
</ol>
</ol>
</ol>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
former function name: DegreeString() */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><a name="_Hlk478112081"></a>
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">extern
EXP32 char *FAR PASCAL_CONV EXP16 <b>swe_cs2degstr</b>(CSEC t, char
*a);</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<ol>
<ol start="18">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365636074"></a>
17. The SWISSEPH DLLs</h2>
</ol>
</ol>
<p style="margin-right: -0.02in">There is a 32 bit
DLL: <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"> swedll32.dll</span></font></font></font></p>
<p class="western"><br/>
</p>
<p style="margin-right: -0.02in">You can use our programs <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swetest.c</span></font></font></font><i>
</i>and <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swewin.c</span></font></font></font><i>
</i>as examples.To compile <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swetest</span></font></font></font><i>
</i>or <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swewin</span></font></font></font>
with a DLL:</p>
<p><br/>
</p>
<p>1. The compiler needs the following files:</p>
<p><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swetest.c</span></font></font></font><i>
</i>or<i> </i><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swewin.c</span></font></font></font></p>
<p><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swedll32.dll</span></font></font></font></p>
<p><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swedll32.lib</span></font></font></font> (if
you choose implicit linking)</p>
<p><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swephexp.h</span></font></font></font></p>
<p><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swedll.h</span></font></font></font></p>
<p><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">sweodef.h</span></font></font></font></p>
<p><br/>
</p>
<p>2. Define the following macros (-d):</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">USE_DLL</font></font></font></p>
<p>3. Build <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swetest.exe</span></font></font></font>
from <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swetest.c</span></font></font></font><i>
</i>and <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swedll32.lib</span></font></font></font>.
</p>
<p style="margin-bottom: 0.08in"> Build <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swewin.exe</span></font></font></font>
from <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swewin.c</span></font></font></font>,<i>
</i><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swewin.rc</span></font></font></font>,
and <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swedll32.lib</span></font></font></font></p>
<p style="margin-bottom: 0.08in">We provide some project files which
we have used to build our test samples. You will need to adjust the
project files to your environment.</p>
<p style="margin-bottom: 0.08in">We have worked with <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Microsoft
Visual C++ 5.0</span></font></font></font> (32-bit). The DLLs where
built with the Microsoft compilers.
</p>
<ol>
<ol>
<ol>
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636075"></a>
17.1 DLL Interface for brain damaged compilers</h3>
</ol>
</ol>
</ol>
<p class="western">If you work with <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">GFA-Basic</span></font></font></font>
or some other brain damaged language, the problem will occur that
the DLL interface does not support 8-bit, 32-bit, double by value
and VOID data or function types. Therefore, we have written a set of
modified functions that use <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
pointers</font></font></font> instead of <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">doubles,
character pointers</font></font></font><i> </i>instead of
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">characters,</font></font></font>
and <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">integers</font></font></font><i>
</i>instead of <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void</font></font></font><i>.
</i>The names of these modified functions are the same as the names
of their prototypes, except that they end with <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">”_d”</font></font></font>,
e.g. <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc_d()</span></font></font></font>
instead of <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font>.The
export definitions of these functions can be found in file<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">
swedll.h.</span></font></font></font> We do not repeat them here to
avoid confusion with the ordinary functions described in the
preceding chapters. The additional functions are only wrapper
functions, i.e. they call internally the real DLL functions and
return the same results.</p>
<p class="western"><br/>
</p>
<p><b>Swiss Ephemeris release 1.61 is the last release for which
16-bit compilers have been supported and for which a 16-bit DLL has
been created.</b></p>
<p class="western"><br/>
</p>
<ol>
<ol start="19">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365636076"></a>
18. Using the DLL with Visual Basic 5.0</h2>
</ol>
</ol>
<p class="western"><br/>
</p>
<p class="western">The 32-bit DLL contains the exported function
under 'decorated names'. Each function has an underscore before its
name, and a suffix of the form <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">@xx</font></font></font>
where <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">xx</font></font></font>
is the number of stack bytes used by the call.</p>
<p class="western"><br/>
</p>
<p class="western">The Visual Basic declarations for the DLL
functions and for some important flag parameters are in the file</p>
<p><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">\sweph\vb\swedecl.txt
</span></font></font></font>and can be inserted directly into a VB
program.</p>
<p class="western"><br/>
</p>
<p class="western">A sample VB program <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">vbsweph</span></font></font></font>
is included on the distribution, in directory <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">\sweph\vb</span></font></font></font>.
To run this sample, the DLL file <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swedll32.dll</span></font></font></font>
must be copied into the vb directory or installed in the Windows
system directory.
</p>
<p class="western"><br/>
</p>
<p class="western">DLL functions returning a string:</p>
<p class="western">Some DLL functions return a string, e.g.</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char*
<b>swe_get_planet_name</b>(int ipl, char *plname)</font></font></font></p>
<p><br/>
</p>
<p class="western">This function copies its result into the string
pointer <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">plname;</font></font></font>
the calling program must provide sufficient space so that the result
string fits into it. As usual in C programming, the function copies
the return string into the provided area and returns the pointer to
this area as the function value. This allows to use this function
directly in a C print statement.</p>
<p class="western"><br/>
</p>
<p class="western">In VB there are three problems with this type of
function:</p>
<p class="western" style="margin-left: 0.25in; text-indent: -0.25in">
<br/>
</p>
<p class="western" style="margin-left: 0.25in; text-indent: -0.25in">
1. The string parameter <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">plname</font></font></font>
must be initialized to a string of sufficient length before the
call; the content does not matter because it is overwritten by the
called function. The parameter type must be <br><font color="#000080"><font face="Verdana, sans-serif">ByVal
plname as String.</font></font><font face="Courier New, monospace"><br></font><br/>
</p>
<p class="western">2. The returned string is terminated by a NULL
character. This must be searched in VB and the VB string length must
be set accordingly. Our sample program demonstrates how this can be
done:</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><br>Private
Function <b>set_strlen</b>(c$) As String<br> i = InStr(c$,
Chr$(0))<br> c$ = Left(c$, i - 1)<br> set_strlen = c$<br>End
Function<br>plname = String(20,0) ‘ initialize string to
length 20<br>swe_get_planet_name(SE_SUN, plname)<br>plname =
set_strlen(plname)<br></font></font></font><br/>
</p>
<p class="western" style="margin-left: 0.25in; text-indent: -0.25in">
3. The function value itself is a pointer to character. This
function value cannot be used in VB because VB does not have a
pointer data type. In VB, such a Function can be either declared as
type <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">”As
long”</span></font></font></font> and the return value
ignored, or it can be declared as a Sub. We have chosen to declare
all such functions as <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">‚Sub‘</span></font></font></font>,
which automatically ignores the return value.<br><font color="#000080"><font face="Verdana, sans-serif">Declare
Sub </font></font><font color="#000080"><font face="Verdana, sans-serif"><b>swe_get_planet_name
</b></font></font><font color="#000080"><font face="Verdana, sans-serif">(ByVal
ipl as Long, ByVal plname as String)</font></font></p>
<p class="western"><br/>
</p>
<ol>
<ol start="20">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365636077"></a>
19. Using the DLL with Borland Delphi and C++ Builder</h2>
<ol>
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636078"></a>
19.1 Delphi 2.0 and higher (32-bit)</h3>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p class="western">The information in this section was contributed
by <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Markus
Fabian, Bern, Switzerland</span></font></font></font>.</p>
<p class="western"><br/>
</p>
<p class="western">In Delphi 2.0 the declaration of the function
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">swe_calc()</font></font></font>
looks like this:</p>
<p class="western"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">xx
: Array[0..5] of double;</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">function
<b>swe_calc</b> (tjd : double; // Julian day number</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="da-DK">ipl
: Integer; // planet number</span></font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">iflag
: Longint; // flag bits</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">var
xx[0] : double;</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><span lang="da-DK">sErr
: PChar // Error-String;</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080">
<font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">)
: Longint; stdcall; far; external 'swedll32.dll' Name
'_swe_calc@24';</font></font></font></p>
<p class="western"><br/>
</p>
<p class="western">A nearly complete set of declarations is in file
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">\sweph\delphi2\swe_d32.pas</span></font></font></font>.</p>
<p class="western">A small sample project for Delphi 2.0 is also
included in the same directory (starting with release <b>1.25</b>
from June 1998). This sample requires the DLL to exist in the same
directory as the sample.</p>
<ol>
<ol>
<ol start="2">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636079"></a>
19.2 Borland C++ Builder</h3>
</ol>
</ol>
</ol>
<p class="western"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Borland
C++ Builder</span></font></font></font> (BCB) does not understand
the Microsoft format in the library file<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">
SWEDLL32.LIB</span></font></font></font>; it reports an OMF error
when this file is used in a BCB project. The user must create
his/her own LIB file for BCB with the utility IMPLIB which is part
of BCB.</p>
<p class="western"><br/>
</p>
<p class="western">With the following command command you create a
special lib file in the current directory:</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">IMPLIB
–f –c swe32bor.lib \sweph\bin\swedll32.dll</font></font></font></p>
<p class="western"><br/>
</p>
<p class="western"><b>In the C++ Builder project the following
settings must be made:</b></p>
<p class="western"><br/>
</p>
<ul>
<li/>
<p class="western">Menu
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Options->Projects->Directories/Conditionals</span></font></font></font>:
add the conditional define<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">
USE_DLL</font></font></font></p>
<li/>
<p class="western">Menu <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Project->Add_to_project</span></font></font></font>:
add the library file<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">
swe32bor.lib</span></font></font></font> to your project.</p>
<li/>
<p class="western">In the project source, add the include
file<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">
"swephexp.h"</span></font></font></font></p>
</ul>
<p><br/>
</p>
<p class="western">In the header file <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swedll.h</span></font></font></font>
the declaration for <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Dllimport</span></font></font></font>
must be</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#define
DllImport extern "C" __declspec( dllimport )</font></font></font></p>
<p class="western">This is provided automatically by the <font color="#000080">__cplusplus</font>
switch for release <b>1.24</b> and higher. For earlier releases the
change must be made manually.</p>
<p class="western"><br/>
</p>
<p class="western"><b>Changes for c++builder 2010</b></p>
<p class="western">Swiss Ephemeris developer Jean Cremers,
Netherlands, reported in August 2010 that a different procedure is
needed for new versions of c++builder. This is his report:</p>
<p class="western"><br/>
</p>
<p class="western" style="margin-left: 0.2in">The method described
in the file swephprg.htm 'Using the DLL with Borland Delphi and C++
Builder' does not work for the current c++builder (I use c++ builder
6).</p>
<p class="western" style="margin-left: 0.2in">The command 'IMPLIB –f
–c swe32bor.lib \sweph\bin\swedll32.dll' will give 2 errors
'unable to open file' and will create the file '-f.lib'.</p>
<p class="western" style="margin-left: 0.2in">It seems implib cannot
handle the switches anymore, indeed when left out the file
swe32bor.lib is generated but the file is in the coff format.</p>
<p class="western" style="margin-left: 0.2in">A solution is to use
the coff2omf.exe utility that comes with c++builder like this
'coff2omf.exe swedll32.dll swe32bor.lib', it will generate a usable
lib for c++builder.</p>
<p class="western" style="margin-left: 0.2in"><br/>
</p>
<p class="western" style="margin-left: 0.2in">The steps to use sweph
with c++builder then become:</p>
<p class="western" style="margin-left: 0.2in"><br/>
</p>
<p class="western" style="margin-left: 0.2in">----</p>
<p class="western" style="margin-left: 0.2in">With the following
command command you create a special lib file in the current
directory:</p>
<p class="western" style="margin-left: 0.2in">coff2omf.exe
swedll32.dll \sweph\bin\swe32bor.lib</p>
<p class="western" style="margin-left: 0.2in"><br/>
</p>
<p class="western" style="margin-left: 0.2in">In the C++ Builder
project the following settings must be made:</p>
<p class="western" style="margin-left: 0.2in"><br/>
</p>
<p class="western" style="margin-left: 0.2in">Menu
Options->Projects->Directories/Conditionals: add the
conditional define USE_DLL</p>
<p class="western" style="margin-left: 0.2in">Menu
Project->Add_to_project: add the library file swe32bor.lib to
your project.</p>
<p class="western" style="margin-left: 0.2in">In the project source,
add the include file "swephexp.h"</p>
<p class="western" style="margin-left: 0.2in">----</p>
<p class="western"><br/>
</p>
<ol>
<ol start="21">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365636080"></a>
20. Using the Swiss Ephemeris with Perl</h2>
</ol>
</ol>
<p class="western">The Swiss Ephemeris can be run from Perl using
the Perl module SwissEph.pm. The module SwissEph.pm uses XSUB
(“eXternal SUBroutine”), which calls the Swiss Ephemeris
functions either from a C library or a DLL.</p>
<p class="western"><br/>
</p>
<p class="western">In order to run the Swiss Ephemeris from Perl,
you have to</p>
<p class="western"><br/>
</p>
<ol>
<li/>
<p class="western">Install the Swiss Ephemeris. Either you
download the Swiss Ephemeris DLL from <font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="http://www.astro.com/swisseph"><font face="Arial, sans-serif">http://www.astro.com/swisseph</font></a></u></font></font></font>
or you download the Swiss Ephemeris C source code and compile a
static or dynamic shared library. We built the package on a Linux
system and use a shared library of the Swiss Ephemeris functions.</p>
</ol>
<p class="western" style="margin-left: 0.25in"><br/>
</p>
<ol start="2">
<li/>
<p class="western">Install the XS library:</p>
</ol>
<p class="western" style="text-indent: 0.49in">- Unpack the file
PerlSwissEph-1.76.00.tar.gz (or whatever newest version there is)</p>
<p class="western"> - Open the file Makefile.PL, and edit it
according to your requirements. Then run it.</p>
<p class="western"> - make install</p>
<p class="western"><br/>
</p>
<p class="western">If you work on a Windows machine and prefer to
use the Swiss Ephemeris DLL, you may want to study Rüdiger
Plantiko's Perl module for the Swiss Ephemeris at
<font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="http://www.astrotexte.ch/sources/SwissEph.zip"><font face="Arial, sans-serif">http://www.astrotexte.ch/sources/SwissEph.zip</font></a></u></font></font></font>.
There is also a documentation in German language by Rüdiger
Plantiko at <font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="http://www.astrotexte.ch/sources/swe_perl.html"><font face="Arial, sans-serif">http://www.astrotexte.ch/sources/swe_perl.html</font></a></u></font></font></font>).</p>
<p class="western"><br/>
</p>
<ol>
<ol start="22">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365636081"></a>
21. The C sample program</h2>
</ol>
</ol>
<p><br/>
</p>
<p class="western">The distribution contains executables and C
source code of sample programs which demonstrate the use of the
Swiss Ephemeris DLL and its functions.</p>
<p class="western"><br/>
</p>
<p class="western">All samples programs are compiled with the
Microsoft Visual C++ 5.0 compiler (32-bit). Project and Workspace
files for these environments are included with the source files.</p>
<p class="western"><br/>
</p>
<p class="western"><b>Directory structure:</b></p>
<p class="western"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><font color="#000000">Sweph\bin </font></span></font></font></font>DLL,
LIB and EXE file</p>
<p class="western"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><font color="#000000">Sweph\src</font></span></font></font></font> source
files, resource files</p>
<p class="western"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><font color="#000000">Sweph\src\swewin32</font></span></font></font></font> 32-bit
windows sample program</p>
<p class="western">Sweph\src\swete32 32-bit character mode sample
program</p>
<p class="western"><br/>
</p>
<p class="western"><br/>
</p>
<p class="western"><b>You can run the samples in the following
environments:</b></p>
<p>Swetest.exe in Windows command line </p>
<p class="western">Swete32.exe in Windows command line</p>
<p class="western">Swewin32.exe in Windows
</p>
<p class="western"><br/>
</p>
<p class="western"><br/>
</p>
<p class="western"><b>Character mode executable that needs a DLL</b></p>
<p><b>Swete32.exe </b>
</p>
<p class="western">The project files are in <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">\sweph\src\swete32</span></font></font></font></p>
<p class="western"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swetest.c</span></font></font></font></p>
<p class="western"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swedll32.lib</span></font></font></font></p>
<p class="western"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swephexp.h</span></font></font></font></p>
<p class="western"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swedll.h</span></font></font></font></p>
<p class="western"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">sweodef.h</span></font></font></font></p>
<p class="western"><span lang="pt-BR">define macros:</span><span lang="pt-BR"><i>
</i></span><font color="#000080"><span lang="pt-BR">USE_DLL DOS32
DOS_DEGREE</span></font></p>
<p lang="pt-BR" class="western"><br/>
</p>
<p><br/>
</p>
<p class="western"><b>swewin32.exe</b></p>
<p class="western">The project files are in <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">\sweph\src\swewin32</span></font></font></font></p>
<p class="western"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swewin.c</span></font></font></font></p>
<p class="western"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swedll32.lib</span></font></font></font></p>
<p class="western"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swewin.rc</span></font></font></font></p>
<p class="western"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swewin.h</span></font></font></font></p>
<p class="western"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swephexp.h</span></font></font></font></p>
<p class="western"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swedll.h</span></font></font></font></p>
<p class="western"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">sweodef.h</span></font></font></font></p>
<p class="western"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">resource.h</span></font></font></font></p>
<p class="western">define macro <font color="#000080"> USE_DLL</font></p>
<p class="western"><br/>
</p>
<p class="western">How the sample programs search for the ephemeris
files:</p>
<p class="western" style="margin-left: 0.25in; text-indent: -0.25in">
<br/>
</p>
<p class="western" style="margin-left: 0.25in; text-indent: -0.25in">
1. check environment variable <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">SE_EPHE_PATH</font></font></font>;
if it exists it is used, and if it has invalid content, the program
fails.</p>
<p class="western" style="margin-left: 0.25in; text-indent: -0.25in">
2. Try to find the ephemeris files in the current working directory</p>
<p class="western" style="margin-left: 0.25in; text-indent: -0.25in">
3. Try to find the ephemeris files in the directory where the
executable resides</p>
<p class="western" style="margin-left: 0.25in; text-indent: -0.25in">
4. Try to find a directory named <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">\SWEPH\EPHE
</span></font></font></font>in one of the following three drives:
</p>
<ul>
<li/>
<p class="western">where the executable resides</p>
<li/>
<p class="western">current drive</p>
<li/>
<p class="western">drive C:</p>
</ul>
<p class="western"><br/>
</p>
<p class="western">As soon as it succeeds in finding the first
ephemeris file it looks for, it expects all required ephemeris files
to reside there. This is a feature of the sample programs only, as
you can see in our C code.
</p>
<p class="western"><br/>
</p>
<p class="western">The DLL itself has a different and simpler
mechanism to search for ephemeris files, which is described with the
function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_set_ephe_path()</span></font></font></font>
above.</p>
<ol>
<ol start="23">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365636082"></a><a name="_Hlk477415522"></a>
21. The source code distribution</h2>
</ol>
</ol>
<p class="western">Starting with release <b>1.26</b>, the full
source code for the Swiss Ephemeris DLL is made available. Users can
choose to link the Swiss Ephemeris code directly into their
applications. The source code is written in <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Ansi
C</span></font></font></font> and consists of these files:</p>
<table width="534" cellpadding="5" cellspacing="0">
<col width="118">
<col width="113">
<col width="113">
<col width="151">
<tr>
<td width="118" height="14" style="border: none; padding: 0in">
<p class="western" align="center"><b>Bytes</b></p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western" align="center"><b>Date</b></p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western" align="center"><b>File name</b></p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western" align="center"><b>Comment</b></p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western">1639</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Nov 28 17:09</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Makefile</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western">unix makefile for library</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western"><b>API interface files</b></p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western" align="right">15050</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Nov 27 10:56</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">swephexp.h</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western">SwissEph API include file</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western" align="right">14803</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Nov 27 10:59</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">swepcalc.h</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western">Placalc API include file</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western"><b>Internal files</b></p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p align="right">8518</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Nov 27 10:06</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">swedate.c</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western" align="right">2673</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Nov 27 10:03</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">swedate.h</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western" align="right">8808</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Nov 28 19:24</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">swedll.h</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western" align="right">24634</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Nov 27 10:07</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">swehouse.c</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western" align="right">2659</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Nov 27 10:05</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">swehouse.h</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western" align="right">31279</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Nov 27 10:07</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">swejpl.c</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western" align="right">3444</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Nov 27 10:05</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">swejpl.h</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western" align="right">38238</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Nov 27 10:07</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">swemmoon.c</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western" align="right">2772</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Nov 27 10:05</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">swemosh.h</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western" align="right">18687</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Nov 27 10:07</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">swemplan.c</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western" align="right">311564</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Nov 27 10:07</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">swemptab.c</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western" align="right">7291</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Nov 27 10:06</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">sweodef.h</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western" align="right">28680</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Nov 27 10:07</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">swepcalc.c</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western" align="right">173758</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Nov 27 10:07</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">sweph.c</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western" align="right">12136</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Nov 27 10:06</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">sweph.h</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western" align="right">55063</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Nov 27 10:07</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">swephlib.c</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western" align="right">4886</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Nov 27 10:06</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">swephlib.h</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="118" height="9" style="border: none; padding: 0in">
<p class="western" align="right">43421</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">Nov 28 19:33</p>
</td>
<td width="113" style="border: none; padding: 0in">
<p class="western">swetest.c</p>
</td>
<td width="151" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
</table>
<p class="western"><br/>
</p>
<p style="margin-right: -0.02in">In most cases the user will compile
a linkable or shared library from the source code, using his
favorite C compiler, and then link this library with his
application.</p>
<p style="margin-right: -0.02in">If the user programs in C, he will
only need to include the header file swephexp.h with his
application; this in turn will include sweodef.h. All other source
files can ignored from the perspective of application development.</p>
<ol>
<ol start="24">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365636083"></a>
22. The PLACALC compatibility API</h2>
</ol>
</ol>
<p style="margin-right: -0.02in">To simplify porting of older
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Placalc</span></font></font></font>
applications to the <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Swiss
Ephemeris</span></font></font></font> API, we have created the
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Placalc</span></font></font></font>
compatibility API which consists of the header file <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swepcalc.h</span></font></font></font>.
This header file replaces the headers <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">ourdef.h</span></font></font></font>,
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">placalc.h,
housasp.h</span></font></font></font> and <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">astrolib.h</span></font></font></font>
in <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Placalc</span></font></font></font>
applications.You should be able to link your Placalc aplication now
with the Swiss Ephemeris library. The <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Placalc</span></font></font></font>
API is not contained in the <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">SwissEph</span></font></font></font>
DLL.</p>
<p style="margin-right: -0.02in">All new software should use the
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">SwissEph</span></font></font></font>
API directly.</p>
<ol>
<ol start="25">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365636084"></a>
23. Documentation files</h2>
</ol>
</ol>
<p class="western"><br/>
</p>
<p class="western">The following files are in the directory
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">\sweph\doc</span></font></font></font></p>
<p class="western"><br/>
</p>
<p><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">sweph.cdr</span></font></font></font></p>
<p><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">sweph.gif</span></font></font></font></p>
<p><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swephin.cdr</span></font></font></font></p>
<p><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swephin.gif</span></font></font></font></p>
<p><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swephprg.doc </span></font></font></font><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><font color="#000000"><span lang="en-US">Documentation
for programming, a MS Word-97 file</span></font></span></font></font></font></p>
<p><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swephprg.rtf </span></font></font></font></p>
<p><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swisseph.doc </span></font></font></font><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><font color="#000000"><span lang="en-US">General
information on Swiss Ephemeris</span></font></span></font></font></font></p>
<p><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swisseph.rtf</span></font></font></font></p>
<p class="western"><br/>
</p>
<p class="western">The files with suffix .CDR are Corel Draw 7.0
documents with the Swiss Ephemeris icons.</p>
<p class="western"><br/>
</p>
<ol>
<ol start="26">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365636085"></a>
24. Swisseph with different hardware and compilers</h2>
</ol>
</ol>
<p class="western">Depending on what hardware and compiler you use,
there will be slight differences in your planetary calculations. For
positions in longitude, they will be never larger than <b>0.0001"</b>
in longitude. Speeds show no difference larger than <b>0.0002
arcsec/day.</b></p>
<p><br/>
</p>
<p class="western">The following factors show larger differences
between HPUX and Linux on a Pentium II processor:</p>
<p class="western"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Mean
Node, Mean Apogee:</span></font></font></font></p>
<p class="western">HPUX PA-Risc non-optimized versus optimized code:</p>
<p class="western"> differences are smaller than 0.001 arcsec/day</p>
<p class="western"><br/>
</p>
<p lang="fr-FR" class="western">HPUX PA-Risc versus Intel Pentium
gcc non-optimzed</p>
<p class="western"> differences are smaller than 0.001 arcsec/day</p>
<p class="western"><br/>
</p>
<p class="western">Intel Pentium gss non-optimzed versus -O9
optimized:</p>
<p class="western"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Mean
Node, True node, Mean Apogee</span></font></font></font>: difference
smaller than 0.001 arcsec/day</p>
<p class="western"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Osculating
Apogee:</span></font></font></font> differences smaller than 0.03
arcsec</p>
<p class="western"><br/>
</p>
<p class="western">The differences originate from the fact that the
floating point arithmetic in the Pentium is executed with 80 bit
precision, whereas stored program variables have only 64 bit
precision. When code is optimized, more intermediate results are
kept inside the processor registers, i.e. they are not shortened
from 80bit to 64 bit. When these results are used for the next
calculation, the outcome is then slightly different.
</p>
<p class="western">In the computation of speed for the nodes and
apogee, differences between positions at close intervals are
involved; the subtraction of nearly equal values results shows
differences in internal precision more easily than</p>
<p class="western">other types of calculations. As these differences
have no effect on any imaginable application software and are mostly
within the design limit of Swiss Ephemeris, they can be savely
ignored.</p>
<p class="western"><br/>
</p>
<ol>
<ol start="27">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365636086"></a>
25. Debugging and Tracing Swisseph</h2>
<ol>
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636087"></a>
25.1. If you are using the DLL</h3>
</ol>
</ol>
</ol>
<p class="western">Besides the ordinary Swisseph function, there are
two additional DLLs that allow you tracing your Swisseph function
calls:</p>
<p class="western" style="margin-left: 0.25in; text-indent: -0.25in">
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Swetrs32.dll</span></font></font></font>
is for single task debugging, i.e. if only one application at a time
calls Swisseph functions.
</p>
<p class="western" style="text-indent: 0.25in">Two output files are
written:</p>
<p class="western" style="text-indent: 0.25in">a) <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swetrace.txt</span></font></font></font>:
reports all Swisseph functions that are being called.</p>
<p class="western" style="text-indent: 0.25in">b) <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swetrace.c:</span></font></font></font>
contains C code equivalent to the Swisseph calls that your
application did.</p>
<p class="western" style="text-indent: 0.25in">The last bracket of
the function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">main()</font></font></font>
at the end of the file is missing.
</p>
<p class="western" style="text-indent: 0.25in">If you want to
compile the code, you have to add it manually. Note that these files
may grow very fast,
</p>
<p class="western" style="text-indent: 0.25in">depending on what you
are doing in your application. The output is limited to 10000
function calls per run.</p>
<p class="western" style="margin-left: 0.25in; text-indent: -0.25in">
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Swetrm32.dll</span></font></font></font>
is for multitasking, i.e. if more than one application at a time are
calling Swisseph functions. If you used the single task DLL here,
all applications would try to write their trace output into the same
file. <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Swetrm32.dll</span></font></font></font>
generates output file names that contain the process identification
number of the application by which the DLL is called, e.g.
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swetrace_192.c
</span></font></font></font>and <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swetrace_192.txt.</span></font></font></font></p>
<p class="western" style="margin-left: 0.25in">Keep in mind that
every process creates its own output files and with time might fill
your disk.</p>
<p class="western">In order to use a trace DLL, you have to replace
your Swisseph DLL by it:</p>
<p class="western">a) save your Swisseph DLL</p>
<p class="western">b) rename the trace DLL as your Swisseph DLL
(e.g. as<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">
swedll32.dll</span></font></font></font>)</p>
<p class="western"><br/>
</p>
<p class="western"><font color="#ffffff"><font face="Arial, sans-serif"><b><span style="background: #0000ff">IMPORTANT:</span></b></font></font>
The Swisseph DLL will not work properly if you call it from <b>more
than one thread.</b></p>
<p><br/>
</p>
<p class="western">Output samples <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swetrace.txt:</span></font></font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in 0.06in"><br/>
</p>
<p style="border: 1px solid #000000; padding: 0.01in 0.06in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt">swe_deltat:
2451337.870000 0.000757 </font></font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in 0.06in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt">swe_set_ephe_path:
path_in = path_set = \sweph\ephe\</font></font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in 0.06in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt">swe_calc:
2451337.870757 -1 258 23.437404 23.439365 -0.003530 -0.001961 0.000000 0.000000</font></font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in 0.06in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt">swe_deltat:
2451337.870000 0.000757 </font></font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in 0.06in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt">swe_sidtime0:
2451337.870000 sidt = 1.966683 eps = 23.437404 nut = -0.003530 </font></font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in 0.06in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt">swe_sidtime:
2451337.870000 1.966683 </font></font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in 0.06in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt">swe_calc:
2451337.870757 0 258 77.142261 -0.000071 1.014989 0.956743 -0.000022 0.000132</font></font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in 0.06in"><font color="#000080"><font face="Verdana, sans-serif"><font size="1" style="font-size: 8pt">swe_get_planet_name:
0 Sun </font></font></font></p>
<p style="border: 1px solid #000000; padding: 0.01in 0.06in"><br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><br/>
</p>
<p><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swetrace.c:</span></font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in; border: 1px solid #000000; padding: 0.01in 0.06in">
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#include
"sweodef.h"</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in; border: 1px solid #000000; padding: 0.01in 0.06in">
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">#include
"swephexp.h"</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in; border: 1px solid #000000; padding: 0.01in 0.06in">
<br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in; border: 1px solid #000000; padding: 0.01in 0.06in">
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">void
main()</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in; border: 1px solid #000000; padding: 0.01in 0.06in">
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">{</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in; border: 1px solid #000000; padding: 0.01in 0.06in">
<font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
tjd, t, nut, eps; int i, ipl, retc; long iflag;</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in; border: 1px solid #000000; padding: 0.01in 0.06in">
<font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
armc, geolat, cusp[12], ascmc[10]; int hsys;</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in; border: 1px solid #000000; padding: 0.01in 0.06in">
<font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
xx[6]; long iflgret;</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in; border: 1px solid #000000; padding: 0.01in 0.06in">
<font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">char
s[AS_MAXCH], star[AS_MAXCH], serr[AS_MAXCH];</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in; border: 1px solid #000000; padding: 0.01in 0.06in">
<br/>
</p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in; border: 1px solid #000000; padding: 0.01in 0.06in">
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*SWE_DELTAT*/</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in; border: 1px solid #000000; padding: 0.01in 0.06in">
<font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tjd
= 2451337.870000000; t = swe_deltat(tjd);</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in; border: 1px solid #000000; padding: 0.01in 0.06in">
<font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">printf("swe_deltat:
%f\t%f\t\n", tjd, t);</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in; border: 1px solid #000000; padding: 0.01in 0.06in">
<br/>
</p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in; border: 1px solid #000000; padding: 0.01in 0.06in">
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*SWE_CALC*/</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in; border: 1px solid #000000; padding: 0.01in 0.06in">
<font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">tjd
= 2451337.870757482; ipl = 0; iflag = 258;</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in; border: 1px solid #000000; padding: 0.01in 0.06in">
<font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">iflgret
= swe_calc(tjd, ipl, iflag, xx, serr); /* xx = 1239992 */</font></font></font></p>
<p lang="da-DK" style="margin-left: 0.8in; text-indent: -0.4in; border: 1px solid #000000; padding: 0.01in 0.06in">
<br/>
</p>
<p style="margin-left: 0.8in; text-indent: -0.4in; border: 1px solid #000000; padding: 0.01in 0.06in">
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*SWE_CLOSE*/</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in; border: 1px solid #000000; padding: 0.01in 0.06in">
<font color="#000080"> <font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">swe_close();</font></font></font></p>
<p class="western"><br/>
</p>
<ol>
<ol>
<ol start="2">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636088"></a>
25.2 If you are using the source code</h3>
</ol>
</ol>
</ol>
<p class="western">Similar tracing is also possible if you compile
the Swisseph source code into your application. Use the preprocessor
definitions <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">TRACE=1</font></font></font>
for single task debugging, and TRACE=2 for multitasking. In most
compilers this flag can be set with <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">–DTRACE=1</font></font></font>
or <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/DTRACE=1.</font></font></font></p>
<p class="western">For further explanations, see 21.1.</p>
<p class="western" style="border-top: none; border-bottom: 1px solid #000000; border-left: none; border-right: none; padding-top: 0in; padding-bottom: 0.01in; padding-left: 0in; padding-right: 0in">
<br/>
</p>
<p class="western"><br/>
</p>
<ol>
<ol start="28">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365636089"></a>
Appendix</h2>
<ol>
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636090"></a>
Update and release history</h3>
</ol>
</ol>
</ol>
<table width="657" cellpadding="7" cellspacing="0">
<col width="94">
<col width="4356">
<col width="80">
<col width="4357">
<col width="422">
<col width="2">
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western"><b>Updated</b></p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western"><b>By</b></p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p align="right">30-sep-97</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Alois</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western">added chapter 10 (sample programs)</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">7-oct-97</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western">inserted chapter 7 (house calculation)</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">8-oct-97</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western">Appendix ”Changes from version 1.00 to
1.01”</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">12-oct-1997</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Alois</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western">Added new chapter 10 Using the DLL with Visual
Basic</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">26-oct-1997</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Alois</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western"> improved implementation and documentation of
swe_fixstar()
</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">28-oct-1997</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western"> Changes from Version 1.02 to 1.03</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">29-oct-1997</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Alois</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western"> added VB sample extension, fixed VB
declaration errors</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">9-Nov-1997</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Alois</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western"> added Delphi declaration sample</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">8-Dec-97</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western"> remarks concerning computation of asteroids,
changes to version 1.04</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">8-Jan-98</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western"> changes from version 1.04 to 1.10.</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">12-Jan-98</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western"> changes from version 1.10 to 1.11.</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">21-Jan-98</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western"> calculation of topocentric planets and house
positions (1.20)</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">28-Jan-98</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western"> Delphi 1.0 sample and declarations for 16-
and 32-bit Delphi (1.21)</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p lang="de-CH" class="western" align="right">11-Feb-98</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p lang="de-CH" class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p lang="de-CH" class="western"> version 1.23</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">7-Mar-1998</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Alois</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western"> version 1.24 support for Borland C++ Builder
added
</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">4-June-1998</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Alois</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western"> version 1.25 sample for Borland Delphi-2
added</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">29-Nov-1998</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Alois</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western"> version 1.26 source code information added
§16, Placalc API added</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">1-Dec-1998</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western"> chapter 19 and some additions in beginning of
Appendix.</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">2-Dec-1998</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Alois</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western"> Equation of Time explained (in §4),
changes version 1.27 explained</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">3-Dec-1998</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western"> Note on ephemerides of 1992 QB1 and 1996 TL66</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">17-Dec-1998</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Alois</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western"> Note on extended time range of 10'800 years</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p lang="fr-FR" class="western" align="right">22 Dec 1998</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p lang="fr-FR" class="western">Alois</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p lang="fr-FR" class="western"> Appendix A</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">12-Jan-1999</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western"> Eclipse functions added, version 1.31</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p lang="de-CH" class="western" align="right">19-Apr-99</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p lang="de-CH" class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p lang="de-CH" class="western"> version 1.4</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">8-Jun-99</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western"> Chapter 21 on tracing an debugging Swisseph</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">27-Jul-99</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western"> Info about sidereal calculations</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" height="12" style="border: none; padding: 0in">
<p lang="de-CH" class="western" align="right">16-Aug-99</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p lang="de-CH" class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p lang="de-CH" class="western"> version 1.51, minor bug fixes</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p class="western" align="right">15-Feb-00</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western"> many things for version 1.60</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p lang="it-IT" class="western" align="right">19-Mar-00</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p lang="it-IT" class="western">Vic Ogi</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p class="western">SWEPHPRG.DOC re-edited</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p lang="de-CH" class="western" align="right">17-apr-02</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p lang="de-CH" class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p lang="de-CH" class="western">Documentation for version 1.64</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p lang="de-CH" class="western" align="right">26-Jun-02</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p lang="de-CH" class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p lang="fr-FR" class="western">Version 1.64.01</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p lang="fr-FR" class="western" align="right">31-dec-2002</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p lang="fr-FR" class="western">Alois</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p lang="en-GB" class="western">edited doc to remove references
to 16-bit version</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p lang="en-GB" class="western" align="right">12-jun-2003</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p lang="en-GB" class="western">Alois/Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p lang="en-GB" class="western">Documentation for version 1.65</p>
</td>
</tr>
<tr>
<td width="94" style="border: none; padding: 0in">
<p lang="en-GB" class="western" align="right">10-Jul-2003</p>
</td>
<td colspan="2" width="81" style="border: none; padding: 0in">
<p lang="en-GB" class="western">Dieter</p>
</td>
<td colspan="2" width="424" style="border: none; padding: 0in">
<p lang="en-GB" class="western">Documentation for version 1.66</p>
</td>
<td width="2" valign="top" style="border: none; padding: 0in">
<p lang="en-GB" class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="94" style="border: none; padding: 0in">
<p lang="en-GB" class="western" align="right">25-May-2004</p>
</td>
<td colspan="2" width="81" style="border: none; padding: 0in">
<p lang="en-GB" class="western">Dieter</p>
</td>
<td colspan="2" width="424" style="border: none; padding: 0in">
<p lang="en-GB" class="western">Documentation of eclipse
functions updated</p>
</td>
<td width="2" valign="top" style="border: none; padding: 0in">
<p lang="en-GB" class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="94" style="border: none; padding: 0in">
<p lang="en-GB" class="western" align="right">31-Mar-2005</p>
</td>
<td colspan="2" width="81" style="border: none; padding: 0in">
<p lang="en-GB" class="western">Dieter</p>
</td>
<td colspan="2" width="424" style="border: none; padding: 0in">
<p lang="en-GB" class="western">Documentation for version 1.67</p>
</td>
<td width="2" valign="top" style="border: none; padding: 0in">
<p lang="en-GB" class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="94" style="border: none; padding: 0in">
<p lang="en-GB" class="western" align="right">3-May-2005</p>
</td>
<td colspan="2" width="81" style="border: none; padding: 0in">
<p lang="en-GB" class="western">Dieter</p>
</td>
<td colspan="2" width="424" style="border: none; padding: 0in">
<p lang="en-GB" class="western">Documentation for version 1.67.01</p>
</td>
<td width="2" valign="top" style="border: none; padding: 0in">
<p lang="en-GB" class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="94" style="border: none; padding: 0in">
<p lang="en-GB" class="western" align="right">22-Feb-2006</p>
</td>
<td colspan="2" width="81" style="border: none; padding: 0in">
<p lang="en-GB" class="western">Dieter</p>
</td>
<td colspan="2" width="424" style="border: none; padding: 0in">
<p lang="en-GB" class="western">Documentation for version 1.70.00</p>
</td>
<td width="2" valign="top" style="border: none; padding: 0in">
<p lang="en-GB" class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="94" style="border: none; padding: 0in">
<p lang="en-GB" class="western" align="right">2-May-2006</p>
</td>
<td colspan="2" width="81" style="border: none; padding: 0in">
<p lang="en-GB" class="western">Dieter</p>
</td>
<td colspan="2" width="424" style="border: none; padding: 0in">
<p lang="en-GB" class="western">Documentation for version 1.70.01</p>
</td>
<td width="2" valign="top" style="border: none; padding: 0in">
<p lang="en-GB" class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="94" style="border: none; padding: 0in">
<p lang="en-GB" class="western" align="right">5-Feb-2006</p>
</td>
<td colspan="2" width="81" style="border: none; padding: 0in">
<p lang="de-CH" class="western">Dieter</p>
</td>
<td colspan="2" width="424" style="border: none; padding: 0in">
<p lang="de-CH" class="western">Documentation for version 1.70.02</p>
</td>
<td width="2" valign="top" style="border: none; padding: 0in">
<p lang="de-CH" class="western"><br/>
</p>
</td>
</tr>
<tr>
<td width="94" style="border: none; padding: 0in">
<p lang="de-CH" class="western" align="right">30-Jun-2006</p>
</td>
<td colspan="2" width="81" style="border: none; padding: 0in">
<p lang="de-CH" class="western">Dieter</p>
</td>
<td colspan="2" width="424" style="border: none; padding: 0in">
<p lang="de-CH" class="western">Documentation for version 1.70.03</p>
</td>
<td width="2" valign="top" style="border: none; padding: 0in">
<p lang="de-CH" class="western"><br/>
</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p lang="de-CH" class="western" align="right">28-Sep-2006</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p lang="de-CH" class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p lang="en-GB" class="western">Documentation for version 1.71</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p lang="en-GB" class="western" align="right">29-May-2008</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p lang="de-CH" class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p lang="de-CH" class="western">Documentation for version 1.73</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p lang="de-CH" class="western" align="right">18-Jun-2008</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p lang="de-CH" class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p lang="de-CH" class="western">Documentation for version 1.74</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p lang="de-CH" class="western" align="right">27-Aug-2008</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p lang="de-CH" class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p lang="de-CH" class="western">Documentation for version 1.75</p>
</td>
</tr>
<tr>
<td colspan="2" width="95" style="border: none; padding: 0in">
<p lang="de-CH" class="western" align="right">7-April-2009</p>
</td>
<td colspan="2" width="82" style="border: none; padding: 0in">
<p lang="de-CH" class="western">Dieter</p>
</td>
<td colspan="2" width="438" style="border: none; padding: 0in">
<p lang="en-GB" class="western">Documentation of version 1.76</p>
</td>
</tr>
</table>
<p><br/>
</p>
<table width="676" cellpadding="7" cellspacing="0">
<col width="52">
<col width="4356">
<col width="4356">
<col width="88">
<col width="492">
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western"><b>Release</b></p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western"><b>Date</b></p>
</td>
<td width="492" valign="top" style="border: none; padding: 0in">
<p class="western">
</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.00</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">30-sep-1997</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">
</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.01</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">9-oct-1997</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">houses(),
sidtime()</span></font></font></font> made more convenient for
developer, Vertex added.</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.02</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">16-oct-1997</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">houses()</span></font></font></font>
changed again, Visual Basic support, new numbers for fictitious
planets This release was pushed to all existing licensees at this
date.</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.03</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">28-Oct-1997</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">minor bug fixes, improved <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">swe_fixstar()</font></font></font>
functionality. This release was not pushed, as the changes and
bug fixes are minor; no changes of function definitions occurred.</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.04</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">8-Dec-1997</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">minor bug fixes; more asteroids.</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.10</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">9-Jan-1998</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">bug fix, s. Appendix. This release was pushed
to all existing licensees at this date.</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.11</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">12-Jan-98</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">small improvements</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.20</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">20-Jan-98</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western"><span style="background: #ffff00">New</span>:
topocentric planets and house positions; a minor bug fix</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.21</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">28-Jan-98</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p>Delphi declarations and sample for Delphi 1.0</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.22</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">2-Feb-98</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p>Asteroids moved to subdirectory. <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">Swe_calc()</font></font></font>
finds them there.</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.23</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">11-Feb-98</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">two minor bug fixes.</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.24</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">7-Mar-1998</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">Documentation for Borland C++ Builder added,
see section 14.3</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.25</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">4-June-1998</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">Sample for Borland Delphi-2 added</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.26</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">29-Nov-1998</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">full source code made available, Placalc API
documented</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.27</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">2-dec-1998</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">Changes to <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">SE_EPHE_PATH</span></font></font></font>
and <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_set_ephe_path()</span></font></font></font></p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.30</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">17-Dec-1998</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">Time range extended to 10'800 years</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.31</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">12-Jan-1999</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western"><span style="background: #ffff00">New</span>:
Eclipse functions added</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.40</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">19-Apr-99</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western"><span style="background: #ffff00">New</span>:
planetary phenomena added; bug fix in <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_sol_ecl_when_glob();</span></font></font></font></p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.50</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">27-Jul-99</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western"><span style="background: #ffff00">New</span>:
SIDEREAL planetary positions and houses; new<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">
fixstars.cat</span></font></font></font></p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.51</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">16-Aug-99</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">Minor bug fixes</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.60</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">15-Feb-2000</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">Major release with <span style="background: #ffff00">many
new features</span> and some minor bug fixes</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.61</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">11-Sep-2000</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">Minor release, additions to se_rise_trans(),
swe_houses(), ficitious planets</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.61.01</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">18-Sep-2000</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">Minor release, added Alcabitus house system</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.61.02</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">10-Jul-2001</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">Minor release, fixed bug which prevented
asteroid files > 22767 to be accepted</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.61.03</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western" align="right">20-Jul-2001</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">Minor release, fixed bug which was introduced
in 1.61.02: Ecliptic was computed in Radians instead of degrees</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.62.00</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western"> 23-Jul-2001</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">Minor release, several bug fixes, code for
fictitious satellites of the earth, asteroid files > 55535 are
accepted</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.62.01</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western">16-Oct-2001</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">Bug fix, string overflow in
sweph.c::read_const(),
</p>
</td>
</tr>
<tr>
<td colspan="3" width="53" style="border: none; padding: 0in">
<p class="western">1.63.00</p>
</td>
<td width="88" style="border: none; padding: 0in">
<p class="western">5-Jan-2002</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">Added house calculation to sweetest.c and
swetest.exe
</p>
</td>
</tr>
<tr>
<td colspan="2" width="53" style="border: none; padding: 0in">
<p class="western">1.64.00</p>
</td>
<td colspan="2" width="89" style="border: none; padding: 0in">
<p class="western">6-Mar-2002</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">House system ‘G’ for house
functions and function swe_gauquelin_sector() for Gauquelin
sector calculations</p>
<p class="western">Occultations of planets and fixed stars by the
moon</p>
<p class="western">New Delta T algorithms</p>
</td>
</tr>
<tr>
<td colspan="2" width="53" style="border: none; padding: 0in">
<p class="western">1.64.01</p>
</td>
<td colspan="2" width="89" style="border: none; padding: 0in">
<p class="western">26-Jun-2002</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">Bug fix in swe_fixstar(). Stars with decl.
between –1° and 0° were wrong</p>
</td>
</tr>
<tr>
<td colspan="2" width="53" style="border: none; padding: 0in">
<p class="western">1.65.00</p>
</td>
<td colspan="2" width="89" style="border: none; padding: 0in">
<p class="western">12-Jun-2003</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">Long variables replaced by INT32 for 64-bit
compilers</p>
</td>
</tr>
<tr>
<td colspan="2" width="53" style="border: none; padding: 0in">
<p class="western">1.66.00</p>
</td>
<td colspan="2" width="89" style="border: none; padding: 0in">
<p class="western">10-Jul-2003</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">House system ‘M’ for Morinus
houses</p>
</td>
</tr>
<tr>
<td colspan="2" width="53" style="border: none; padding: 0in">
<p lang="de-CH" class="western">1.67.00</p>
</td>
<td colspan="2" width="89" style="border: none; padding: 0in">
<p lang="de-CH" class="western">31-Mar-2005</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p lang="de-CH" class="western">Update Delta T</p>
</td>
</tr>
<tr>
<td colspan="2" width="53" style="border: none; padding: 0in">
<p lang="de-CH" class="western">1.67.01</p>
</td>
<td colspan="2" width="89" style="border: none; padding: 0in">
<p lang="de-CH" class="western">3-May-2005</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">Docu for sidereal calculations (Chap. 10)
updated (precession-corrected transits)</p>
</td>
</tr>
<tr>
<td colspan="2" width="53" style="border: none; padding: 0in">
<p lang="en-GB" class="western">1.70.00</p>
</td>
<td colspan="2" width="89" style="border: none; padding: 0in">
<p lang="en-GB" class="western">22-Feb-2006</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">all relevant IAU resolutions up to 2005 have
been implemented</p>
</td>
</tr>
<tr>
<td colspan="2" width="53" style="border: none; padding: 0in">
<p lang="en-GB" class="western">1.70.01</p>
</td>
<td colspan="2" width="89" style="border: none; padding: 0in">
<p lang="en-GB" class="western">2-May-2006</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">minor bug fix</p>
</td>
</tr>
<tr>
<td colspan="2" width="53" style="border: none; padding: 0in">
<p lang="en-GB" class="western">1.70.02</p>
</td>
<td colspan="2" width="89" style="border: none; padding: 0in">
<p lang="en-GB" class="western">5-May-2006</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">minor bug fix</p>
</td>
</tr>
<tr>
<td width="52" style="border: none; padding: 0in">
<p lang="en-GB" class="western">1.70.03</p>
</td>
<td colspan="3" width="89" style="border: none; padding: 0in">
<p lang="en-GB" class="western">30-June-2006</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">bug fix</p>
</td>
</tr>
<tr>
<td colspan="2" width="53" style="border: none; padding: 0in">
<p lang="en-GB" class="western">1.71</p>
</td>
<td colspan="2" width="89" style="border: none; padding: 0in">
<p lang="en-GB" class="western">28-Sep-2006</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">Swiss Ephemeris functions able to calculate
minor planet no 134340 Pluto</p>
</td>
</tr>
<tr>
<td colspan="2" width="53" style="border: none; padding: 0in">
<p lang="en-GB" class="western">1.72</p>
</td>
<td colspan="2" width="89" style="border: none; padding: 0in">
<p lang="en-GB" class="western">28-Sep-2007</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">New function swe_refract_extended(), Delta T
update, minor bug fixes</p>
</td>
</tr>
<tr>
<td colspan="2" width="53" style="border: none; padding: 0in">
<p lang="en-GB" class="western">1.73</p>
</td>
<td colspan="2" width="89" style="border: none; padding: 0in">
<p lang="en-GB" class="western">29-May-2008</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">New function swe_fixstars_mag(), Whole Sign
houses
</p>
</td>
</tr>
<tr>
<td colspan="2" width="53" style="border: none; padding: 0in">
<p lang="en-GB" class="western">1.74</p>
</td>
<td colspan="2" width="89" style="border: none; padding: 0in">
<p lang="en-GB" class="western">18-Jun-2008</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">Bug fixes
</p>
</td>
</tr>
<tr>
<td colspan="2" width="53" style="border: none; padding: 0in">
<p lang="en-GB" class="western">1.75</p>
</td>
<td colspan="2" width="89" style="border: none; padding: 0in">
<p lang="en-GB" class="western">27-Aug-2008</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">Swiss Ephemeris can read newer JPL ephemeris
files; bug fixes
</p>
</td>
</tr>
<tr>
<td colspan="2" width="53" style="border: none; padding: 0in">
<p lang="en-GB" class="western">1.76</p>
</td>
<td colspan="2" width="89" style="border: none; padding: 0in">
<p lang="en-GB" class="western">7-April-2009</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">Heliacal risings, UTC and minor
improvements/bug fixes
</p>
</td>
</tr>
<tr>
<td colspan="2" width="53" style="border: none; padding: 0in">
<p lang="en-GB" class="western">1.77</p>
</td>
<td colspan="2" width="89" style="border: none; padding: 0in">
<p lang="en-GB" class="western">26-Jan-2010</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">swe_deltat(), swe_fixstar() improved,
swe_utc_time_zone_added</p>
</td>
</tr>
<tr>
<td colspan="2" width="53" style="border: none; padding: 0in">
<p lang="en-GB" class="western">1.78</p>
</td>
<td colspan="2" width="89" style="border: none; padding: 0in">
<p lang="en-GB" class="western">3-Aug-2012</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">New precession, improvement of some eclipse
functions, some minor bug fixes</p>
</td>
</tr>
<tr>
<td colspan="2" width="53" style="border: none; padding: 0in">
<p lang="en-GB" class="western">1.79</p>
</td>
<td colspan="2" width="89" style="border: none; padding: 0in">
<p lang="en-GB" class="western">18-Apr-2013</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">New precession, improvement of some eclipse
functions, some minor bug fixes</p>
</td>
</tr>
<tr>
<td colspan="2" width="53" style="border: none; padding: 0in">
<p lang="en-GB" class="western">1.80</p>
</td>
<td colspan="2" width="89" style="border: none; padding: 0in">
<p lang="en-GB" class="western">3-Sep-2013</p>
</td>
<td width="492" style="border: none; padding: 0in">
<p class="western">Security update, APC houses, bug fixes</p>
</td>
</tr>
</table>
<p class="western"><br/>
</p>
<p class="western"><br/>
</p>
<ol>
<ol>
<ol start="2">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636091"></a>
Changes from version 1.79 to 1.80</h3>
</ol>
</ol>
</ol>
<p class="western">- Security update: improved some places in code
where buffer overflow could occur (thanks to Paul Elliott)</p>
<p class="western">- APC house system
</p>
<p class="western">- New function swe_house_name(), returns name of
house method</p>
<p class="western">- Two new ayanamshas: Suryasiddhantic Revati
(359’50 polar longitude) and Citra (180° polar longitude)</p>
<p class="western">- Bug fix in swehel.c, handling of age of
observer (thanks to Victor Reijs).</p>
<p class="western"><br/>
</p>
<ol>
<ol>
<ol start="3">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636092"></a>
Changes from version 1.78 to 1.79</h3>
</ol>
</ol>
</ol>
<p class="western">- Improved precision in eclipse calculations: 2<sup>nd</sup>
and 3<sup>rd</sup> contact with solar eclipses, penumbral and
partial phases with lunar eclipses.
</p>
<p class="western">- Bug fix in function
swe_sol_eclipse_when_loc().If the local maximum eclipse occurs at
sunset or sunrise, tret[0] now gives the moment when the lower limb
of the Sun touches the horizon. This was not correctly implemented
in former versions</p>
<p class="western">- Several changes to C code that had caused
compiler warnings (as proposed by Torsten Förtsch).</p>
<p class="western">- Bug fix in Perl functions swe_house() etc.
These functions had crashed with a segmention violation if called
with the house parameter ‘G’.</p>
<p class="western">- Bug fix in Perl function swe_utc_to_jd(), where
gregflag had been read from the 4<sup>th</sup> instead of the 6<sup>th</sup>
parameter.</p>
<p class="western">- Bug fix in Perl functions to do with date
conversion. The default mechanism for gregflag was buggy.
</p>
<p lang="en-GB" class="western">- For Hindu astrologers, some more
ayanamshas were added that are related to Suryasiddhanta and
Aryabhata and are of historical interest.
</p>
<p class="western"><br/>
</p>
<ol>
<ol>
<ol start="4">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636093"></a>
Changes from version 1.77 to 1.78</h3>
</ol>
</ol>
</ol>
<p class="western">- <span style="background: #ffff00">precession is
now calculated according to Vondrák, Capitaine, and Wallace
2011.</span></p>
<p class="western">- Delta t for current years updated.</p>
<p class="western">- new function: swe_rise_trans_true_hor() for
risings and settings at a local horizon with known height.</p>
<p class="western">- functions swe_sol_eclipse_when_loc(),
swe_lun_occult_when_loc(): return values tret[5] and tret[6]
(sunrise and sunset times) added, which had been 0 so far.</p>
<p class="western">- function swe_lun_eclipse_how(): return values
attr[4-6] added (azimuth and apparent and true altitude of moon).</p>
<p class="western">- <span style="background: #ffff00">Attention</span>
with swe_sol_eclipse_how(): return value attr[4] is azimuth, now
measured from south, in agreement with the function swe_azalt() and
swe_azalt_rev().</p>
<p class="western">- minor bug fix in swe_rise_trans(): twilight
calculation returned invalid times at high geographic latitudes.</p>
<p class="western">- minor bug fix: when calling swe_calc() 1. with
SEFLG_MOSEPH, 2. with SEFLG_SWIEPH, 3. again with SEFLG_MOSEPH, the
result of 1. and 3. were slightly different. Now they agree.</p>
<p class="western">- minor bug fix in swe_houses(): With house
methods H (Horizon), X (Meridian), M (Morinus), and geographic
latitudes beyond the polar circle, the ascendant was wrong at times.
The ascendant always has to be on the eastern part of the horizon.</p>
<p class="western"><br/>
</p>
<ol>
<ol>
<ol start="5">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636094"></a>
Changes from version 1.76 to 1.77</h3>
</ol>
</ol>
</ol>
<p class="western">- Delta T:</p>
<p class="western"> - Current values were updated.</p>
<p class="western"> - File sedeltat.txt understands doubles.</p>
<p class="western"> - For the period before 1633, the new formulae
by Espenak and Meeus (2006) are used. These formulae were derived
from Morrison & Stephenson (2004), as used by the Swiss
Ephemeris until version 1.76.02.</p>
<p class="western"> - The tidal acceleration of the moon contained
in LE405/6 was corrected according to
Chapront/Chapront-Touzé/Francou A&A 387 (2002), p. 705.</p>
<p class="western"><br/>
</p>
<p class="western">- Fixed stars:</p>
<p class="western"> - There was an error in the handling of the
proper motion in RA. The values given in fixstars.cat, which are
taken from the Simbad database (Hipparcos), are referred to a great
circle and include a factor of cos(d0).</p>
<p class="western"> - There is a new fixed stars file sefstars.txt.
The parameters are now identical to those in the Simbad database,
which makes it much easier to add new star data to the file. If the
program function swe_fixstars() does not find sefstars.txt, it will
try the the old fixed stars file fixstars.cat and will handle it
correctly.
</p>
<p class="western"> - Fixed stars data were updated, some errors
corrected.</p>
<p class="western"> - Search string for a star ignores white
spaces.</p>
<p class="western"><br/>
</p>
<p class="western">- Other changes:</p>
<p class="western"> - New function swe_utc_time_zone(), converts
local time to UTC and UTC to local time. Note, the function has no
knowledge about time zones. The Swiss Ephemeris still does not
provide the time zone for a given place and time.</p>
<p class="western"> - swecl.c:swe_rise_trans() has two new minor
features: SE_BIT_FIXED_DISC_SIZE and SE_BIT_DISC_BOTTOM (thanks to
Olivier Beltrami)</p>
<p class="western"> - minor bug fix in swemmoon.c, Moshier's lunar
ephemeris (thanks to Bhanu Pinnamaneni)</p>
<p class="western"> - solar and lunar eclipse functions provide
additional data:</p>
<p class="western"> attr[8] magnitude, attr[9] saros series
number, attr[10] saros series member number</p>
<p class="western"><br/>
</p>
<ol>
<ol>
<ol start="6">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636095"></a>
Changes from version 1.75 to 1.76</h3>
</ol>
</ol>
</ol>
<p class="western"><span style="background: #ffff00">New features:</span></p>
<p class="western">- Functions for the calculation of heliacal
risings and related phenomena, s. chap. 6.15-6.17.</p>
<p class="western">- Functions for conversion between UTC and JD
(TT/UT1), s. chap. 7.2 and 7.3.</p>
<p class="western">- File sedeltat.txt allows the user to update
Delta T himself regularly, s. chap. 8.3</p>
<p class="western">- Function swe_rise_trans(): twilight
calculations (civil, nautical, and astronomical) added</p>
<p class="western">- Function swe_version() returns version number
of Swiss Ephemeris.</p>
<p class="western">- Swiss Ephemeris for Perl programmers using XSUB
</p>
<p class="western"><br/>
</p>
<p class="western">Other updates:</p>
<p class="western">- Delta T updated (-2009).</p>
<p class="western"><br/>
</p>
<p class="western">Minor bug fixes:</p>
<p class="western">- swe_house_pos(): minor bug with Alcabitius
houses fixed</p>
<p class="western">- swe_sol_eclipse_when_glob(): totality times for
eclipses jd2456776 and jd2879654 fixed (tret[4], tret[5])</p>
<ol>
<ol>
<ol start="7">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636096"></a>
Changes from version 1.74 to version 1.75</h3>
</ol>
</ol>
</ol>
<p class="western">- The Swiss Ephemeris is now able to read
ephemeris files of JPL ephemerides DE200 - DE421. If JPL will not
change the file structure in future releases, the Swiss Ephemeris
will be able to read them, as well.</p>
<p class="western"><br/>
</p>
<p class="western">- Function swe_fixstar() (and swe_fixstar_ut())
was made slightly more efficient.
</p>
<p class="western"><br/>
</p>
<p class="western">- Function swe_gauquelin_sector() was extended.</p>
<p class="western"><br/>
</p>
<p class="western">- Minor bug fixes.</p>
<ol>
<ol>
<ol start="8">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636097"></a>
Changes from version 1.73 to version 1.74</h3>
</ol>
</ol>
</ol>
<p class="western">The Swiss Ephemeris is made available under a
dual licensing system:</p>
<p class="western"> a) GNU public license version 2 or later</p>
<p class="western"> b) Swiss Ephemeris Professional License</p>
<p class="western">For more details, see at the beginning of this
file and at the beginning of every source code file.</p>
<p class="western"><br/>
</p>
<p class="western">Minor bug fixes:</p>
<p class="western">- Bug in swe_fixstars_mag() fixed.</p>
<p class="western">- Bug in swe_nod_aps() fixed. With retrograde
asteroids (20461 Dioretsa, 65407 2002RP120), the calculation of
perihelion and aphelion was not correct.
</p>
<p class="western">- The ephemeris of asteroid 65407 2002RP120 was
updated. It had been wrong before 17 June 2008.</p>
<ol>
<ol>
<ol start="9">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636098"></a>
Changes from version 1.72 to version 1.73</h3>
</ol>
</ol>
</ol>
<p class="western"><span style="background: #ffff00">New features:</span></p>
<p class="western">- Whole Sign houses implemented (W)</p>
<p class="western">- swe_house_pos() now also handles Alcabitius
house method</p>
<p class="western">- function swe_fixstars_mag() provides fixed
stars magnitudes</p>
<p class="western"><br/>
</p>
<ol>
<ol>
<ol start="10">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636099"></a>
Changes from version 1.71 to version 1.72</h3>
</ol>
</ol>
</ol>
<p class="western">- Delta T values for recent years were updated</p>
<p lang="en-GB" class="western">- Delta T calculation before 1600
was updated to Morrison/Stephenson 2004..</p>
<p class="western">- New function swe_refract_extended(), in
cooperation with archaeoastronomer Victor Reijs.</p>
<p class="western"> This function allows correct calculation of
refraction for altitudes above sea > 0, where the ideal horizon
and</p>
<p class="western"> Planets that are visible may have a negative
height.</p>
<p class="western">- Minor bugs in swe_lun_occult_when_glob() and
swe_lun_eclipse_how() were fixed.</p>
<p class="western"><br/>
</p>
<ol>
<ol>
<ol start="11">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636100"></a>
Changes from version 1.70.03 to version 1.71</h3>
</ol>
</ol>
</ol>
<p class="western">In September 2006, Pluto was introduced to the
minor planet catalogue and given the catalogue number 134340.</p>
<p class="western">The numerical integrator we use to generate minor
planet ephemerides would crash with 134340 Pluto, because Pluto is
one of those planets whose gravitational perturbations are used for
the numerical integration. Instead of fixing the numerical
integrator for this special case, we chang the Swiss Ephemeris
functions in such a way that they treat minor planet 134340 Pluto
(ipl=SE_AST_OFFSET+134340) as our main body Pluto (ipl=SE_PLUTO=9).
This also results in a slightly better precision for 134340 Pluto.</p>
<p class="western"><br/>
</p>
<p class="western">Swiss Ephemeris versions prior to 1.71 are not
able to do any calculations for minor planet number 134340.</p>
<ol>
<ol>
<ol start="12">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636101"></a>
Changes from version 1.70.02 to version 1.70.03</h3>
</ol>
</ol>
</ol>
<p class="western">Bug fixed (in swecl.c: swi_bias()): This bug
sometimes resulted in a crash, if the DLL was used and the
SEFLG_SPEED was not set. It seems that the error happened only with
the DLL and did not appear, when the Swiss Ephemeris C code was
directly linked to the application.</p>
<p class="western"><br/>
</p>
<p class="western">Code to do with (#define NO_MOSHIER ) war
removed.</p>
<ol>
<ol>
<ol start="13">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636102"></a>
Changes from version 1.70.01 to version 1.70.02</h3>
</ol>
</ol>
</ol>
<p class="western">Bug fixed in speed calculation for interpolated
lunar apsides. With ephemeris positions close to 0 Aries, speed
calculations were completely wrong. E.g. swetest -pc
-bj3670817.276275689 (speed = 1448042° !)</p>
<p class="western">Thanks, once more, to Thomas Mack, for testing
the software so well.</p>
<p class="western"><br/>
</p>
<ol>
<ol>
<ol start="14">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636103"></a>
Changes from version 1.70.00 to version 1.70.01</h3>
</ol>
</ol>
</ol>
<p class="western">Bug fixed in speed calculation for interpolated
lunar apsides. Bug could result in program crashes if the speed flag
was set.</p>
<p class="western"><br/>
</p>
<ol>
<ol>
<ol start="15">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636104"></a>
Changes from version 1.67 to version 1.70</h3>
</ol>
</ol>
</ol>
<p class="western"><span style="background: #ffff00">Update of
algorithms to IAU standard recommendations:</span></p>
<p class="western">All relevant IAU resolutions up to 2005 have been
implemented. These include:</p>
<p class="western">- the "frame bias" rotation from the
JPL reference system ICRS to J2000. The correction of position ~=
0.0068 arc sec in right ascension.</p>
<p class="western">- the precession model P03
(Capitaine/Wallace/Chapront 2003). The correction in longitude is
smaller than 1 arc second from 1000 B.C. on.</p>
<p class="western">- the nutation model IAU2000B (can be switched to
IAU2000A)</p>
<p class="western">- corrections to epsilon</p>
<p class="western">- corrections to sidereal time</p>
<p class="western">- fixed stars input data can be "J2000"
or "ICRS"</p>
<p class="western">- fixed stars conversion FK5 -> J2000, where
required</p>
<p class="western">- fixed stars data file was updated with newer
data
</p>
<p class="western">- constants in sweph.h updated</p>
<p class="western">For more info, see the documentation
swisseph.doc, chapters 2.1.2.1-3.</p>
<p class="western"><br/>
</p>
<p class="western"><span style="background: #ffff00">New features:</span></p>
<p class="western">- Ephemerides of "interpolated lunar apogee
and perigee", as published by Dieter Koch in 2000 (swetest
-pcg).</p>
<p class="western"> For more info, see the documentation
swisseph.doc, chapter 2.2.4.</p>
<p class="western">- House system according to Bogdan Krusinski
(character ‘U’).</p>
<p class="western"> For more info, see the documentation
swisseph.doc, chapter 6.1.13.</p>
<p class="western"><br/>
</p>
<p class="western">Bug fixes:</p>
<p class="western">- Calculation of magnitude was wrong with
asteroid numbers < 10000 (10-nov-05)</p>
<p class="western"><br/>
</p>
<ol>
<ol>
<ol start="16">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636105"></a>
Changes from version 1.66 to version 1.67</h3>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p class="western">Delta-T updated with new measured values for the
years 2003 and 2004, and better estimates for 2005 and 2006.</p>
<p class="western">Bug fixed #define SE_NFICT_ELEM 15
</p>
<ol>
<ol>
<ol start="17">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636106"></a>
Changes from version 1.65 to version 1.66</h3>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p class="western"><span style="background: #ffff00">New features:</span></p>
<p class="western">House system according to Morinus (system ‘M’).</p>
<ol>
<ol>
<ol start="18">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636107"></a>
Changes from version 1.64.01 to version 1.65.00</h3>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p class="western">‘long’ variables were changed to
‘INT32’ for 64-bit compilers.</p>
<p class="western"><br/>
</p>
<ol>
<ol>
<ol start="19">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636108"></a>
Changes from version 1.64 to version 1.64.01</h3>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p class="western">- Bug fixed in swe_fixstar(). Declinations
between –1° and 0° were wrongly taken as positive.</p>
<p class="western">Thanks to John Smith, Serbia, who found this bug.</p>
<p class="western">- Several minor bug fixes and cosmetic code
improvements suggested by Thomas Mack, Germany.
</p>
<p class="western"> swetest.c: options –po and –pn work
now.
</p>
<p class="western"> Sweph.c: speed of mean node and mean lunar
apogee were wrong in rare cases, near 0 Aries.</p>
<ol>
<ol>
<ol start="20">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636109"></a>
Changes from version 1.63 to version 1.64</h3>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p class="western"><span style="background: #ffff00">New features:</span></p>
<p class="western">1) Gauquelin sectors:</p>
<p class="western">- swe_houses() etc. can be called with house
system character ‘G’ to calculate Gauquelin sector
boundaries.
</p>
<p class="western">- swe_house_pos() can be called with house system
‘G’ to calculate sector positions of planets.</p>
<p class="western">- swe_gauquelin_sector() is new and calculates
Gauquelin sector positions with three methods: without ecl.
latitude, with ecl. latitude, from rising and setting.</p>
<p class="western"><br/>
</p>
<p class="western">2) Waldemath Black Moon elements have been added
in seorbel.txt (with thanks to Graham Dawson).
</p>
<p class="western"><br/>
</p>
<p class="western">3) Occultations of the planets and fixed stars by
the moon</p>
<p class="western">- swe_lun_occult_when_loc() calculates
occultations for a given geographic location</p>
<p class="western">- swe_lun_occult_when_glob() calculates
occultations globally</p>
<p class="western"><br/>
</p>
<p class="western">4) Minor bug fixes in swe_fixstar() (Cartesian
coordinates), solar eclipse functions, swe_rise_trans()</p>
<p class="western"><br/>
</p>
<p class="western">5) sweclips.c integrated into swetest.c. Swetest
now also calculates eclipses, occultations, risings and settings.</p>
<p class="western"><br/>
</p>
<p class="western">6) new Delta T algorithms</p>
<ol>
<ol>
<ol start="21">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636110"></a>
Changes from version 1.62 to version 1.63</h3>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p class="western"><span style="background: #ffff00">New features:</span></p>
<p class="western">The option –house was added to swetest.c so
that swetest.exe can now be used to compute complete horoscopes in
textual mode.</p>
<p class="western">Bux fix: a minor bug in function swe_co_trans was
fixed. It never had an effect.</p>
<ol>
<ol>
<ol start="22">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636111"></a>
Changes from version 1.61.03 to version 1.62</h3>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p class="western"><span style="background: #ffff00">New features:</span></p>
<p class="western">1) Elements for hypothetical bodies that move
around the earth (e.g. Selena/White Moon) can be added to the file
seorbel.txt.</p>
<p class="western">2) The software will be able to read asteroid
files > 55535.
</p>
<p class="western"><br/>
</p>
<p class="western">Bug fixes:
</p>
<p class="western">1) error in geocentric planetary descending nodes
fixed</p>
<p class="western">2) swe_calc() now allows hypothetical planets
beyond SE_FICT_OFFSET + 15</p>
<p class="western">3) position of hypothetical planets slightly
corrected (< 0.01 arc second)</p>
<ol>
<ol>
<ol start="23">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636112"></a>
Changes from version 1.61 to 1.61.01</h3>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p class="western"><span style="background: #ffff00">New features:</span></p>
<p class="western">1. swe_houses and swe_houses_armc now supports
the Alcabitus house system. The function swe_house_pos() does not
yet, because we wanted to release quickly on user request.
</p>
<ol>
<ol>
<ol start="24">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636113"></a>
Changes from version 1.60 to 1.61</h3>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p class="western"><span style="background: #ffff00">New features:</span></p>
<p class="western">1. Function swe_rise_trans(): Risings and
settings also for disc center and without refraction
</p>
<p class="western">2. “topocentric” house system added
to swe_houses() and other house-related functions</p>
<p class="western">3. Hypothetical planets (seorbel.txt), orbital
elements with t terms are possible now (e.g. for Vulcan according to
L.H. Weston)</p>
<ol>
<ol>
<ol start="25">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636114"></a>
Changes from version 1.51 to 1.60</h3>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p class="western"><span style="background: #ffff00">New features:</span></p>
<p class="western">1. Universal time functions <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">swe_calc_ut()</font></font></font>,
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_fixstar_ut()</span></font></font></font>,
etc.</p>
<p class="western">2. Planetary nodes, <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">perihelia,
aphelia, focal points</span></font></font></font></p>
<p class="western">3. <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Risings,
settings, and meridian transits</span></font></font></font> of the
Moon, planets, asteroids, and stars.</p>
<p class="western">4. Horizontal coordinates (<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">azimuth
and altitude</span></font></font></font>)</p>
<p class="western">5. Refraction</p>
<p class="western">6. User-definable orbital elements</p>
<p class="western">7. Asteroid names can be updated by user</p>
<p class="western">8. Hitherto missing "Personal Sensitive
Points" according to M. Munkasey.</p>
<p class="western"><br/>
</p>
<p class="western">Minor bug fixes:</p>
<ul>
<li/>
<p class="western"><b>Astrometric lunar positions </b>(not
relevant for astrology; <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc(tjd,
SE_MOON, SEFLG_NOABERR))</span></font></font></font> had a maximum
error of about 20 arc sec).</p>
<li/>
<p class="western"><b>Topocentric lunar positions</b> (not
relevant for common astrology): the ellipsoid shape of the earth
was not correctly implemented. This resulted in an error of 2 - 3
arc seconds. The new precision is 0.2 - 0.3 arc seconds,
corresponding to about 500 m in geographic location. This is also
the precision that Nasa's Horizon system provides for the
topocentric moon. The planets are much better, of course.</p>
<li/>
<p class="western"><b>Solar eclipse functions</b><i>:</i> The
correction of the topocentric moon and another small bug fix lead
to slightly different results of the solar eclipse functions. The
improvement is within a few time seconds.</p>
</ul>
<p class="western"><br/>
</p>
<ol>
<ol>
<ol start="26">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636115"></a>
Changes from version 1.50 to 1.51</h3>
</ol>
</ol>
</ol>
<p class="western">Minor bug fixes:</p>
<ul>
<li/>
<p class="western">J2000 coordinates for the lunar node and
osculating apogee corrected. This bug did not affect ordinary
computations like ecliptical or equatorial positions.</p>
<li/>
<p class="western">minor bugs in swetest.c corrected</p>
<li/>
<p class="western">sweclips.exe recompiled</p>
<li/>
<p class="western">trace DLLs recompiled</p>
<li/>
<p class="western">some VB5 declarations corrected</p>
</ul>
<ol>
<ol>
<ol start="27">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636116"></a>
Changes from version 1.40 to 1.50</h3>
</ol>
</ol>
</ol>
<p class="western"><span style="background: #ffff00">New:</span><font color="#ff0000">
</font><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">SIDEREAL</span></font></font></font>
planetary and house position.</p>
<ul>
<li/>
<p class="western">The fixed star file <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">fixstars.cat</span></font></font></font>
has been improved and enlarged by Valentin Abramov, Tartu, Estonia.</p>
<li/>
<p class="western">Stars have been ordered by constellation.
Many names and alternative spellings have been added.</p>
<li/>
<p class="western">Minor bug fix in solar eclipse functions,
sometimes relevant in border-line cases annular/total,
partial/total.</p>
<li/>
<p class="western">J2000 coordinates for the lunar nodes were
redefined: In versions before 1.50, the J2000 lunar nodes were the
intersection points of the lunar orbit with the ecliptic of 2000.
From 1.50 on, they are defined as the intersection points with the
ecliptic of date, referred to the coordinate system of the ecliptic
of J2000.</p>
</ul>
<p class="western"><br/>
</p>
<ol>
<ol>
<ol start="28">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636117"></a>
Changes from version 1.31 to 1.40</h3>
</ol>
</ol>
</ol>
<p class="western"><span style="background: #ffff00">New:</span><font color="#ff0000">
</font>Function for several planetary phenomena added</p>
<p class="western">Bug fix in <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_sol_ecl_when_glob()</span></font></font></font>.
The time for maximum eclipse at local apparent noon (tret[1]) was
sometimes wrong. When called from VB5, the program crashed.</p>
<p class="western"><br/>
</p>
<ol>
<ol>
<ol start="29">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636118"></a>
Changes from version 1.30 to 1.31</h3>
</ol>
</ol>
</ol>
<p class="western"><span style="background: #ffff00">New:</span>
Eclipse functions added.</p>
<p class="western">Minor bug fix: with previous versions, the
function<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">
swe_get_planet_name()</span></font></font></font> got the name
wrong, if it was an asteroid name and consisted of two or more words
(e.g. Van Gogh)</p>
<ol>
<ol>
<ol start="30">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636119"></a>
Changes from version 1.27 to 1.30</h3>
</ol>
</ol>
</ol>
<p class="western">The time range of the Swiss Ephemeris has been
extended by numerical integration. The Swiss Ephemeris now covers
the period <b>2 Jan 5401 BC</b> to <b>31 Dec 5399 AD</b>. To use the
extended time range, the appropriate ephemeris files must be
downloaded.</p>
<p class="western">In the JPL mode and the Moshier mode the time
range remains unchanged at 3000 BC to 3000 AD.</p>
<p class="western"><font color="#ffffff"><span style="background: #0000ff">
</span></font><font color="#ffffff"><font face="Arial, sans-serif"><b><span style="background: #0000ff">IMPORTANT
</span></b></font></font>
</p>
<p class="western">Chiron’s ephemeris is now restricted to the
time range <b>650 AD – 4650 AD</b>; for explanations, see
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swisseph.doc.</span></font></font></font></p>
<p class="western">Outside this time range, Swiss Ephemeris returns
an error code and a position value 0. You must handle this situation
in your application. There is a similar restriction with Pholus (as
with some other asteroids).</p>
<ol>
<ol>
<ol start="31">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636120"></a>
Changes from version 1.26 to 1.27</h3>
</ol>
</ol>
</ol>
<p class="western">The environment variable <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">SE_EPHE_PATH</span></font></font></font>
is now always overriding the call to <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_set_ephe_path()</span></font></font></font>
if it is set and contains a value.
</p>
<p class="western">Both the environment variable and the function
argument can now contain a list of directory names where the
ephemeris files are looked for. Before this release, they could
contain only a single directory name.</p>
<ol>
<ol>
<ol>
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636121"></a>
Changes from version 1.25 to 1.26</h3>
</ol>
</ol>
</ol>
<ul>
<li/>
<p class="western">The asteroid subdirectory ephe/asteroid
has been split into directories <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">ast0,
ast1</span></font></font></font>,... with 1000 asteroid files per
directory.
</p>
<li/>
<p class="western">source code is included with the
distribution under the new licensing model</p>
<li/>
<p class="western">the Placalc compatibility API (<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swepcalc.h</span></font></font></font>)
is now documented</p>
<li/>
<p class="western">There is a new function to compute the
equation of time <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_time_equ().</span></font></font></font></p>
<li/>
<p class="western">Improvements of ephemerides:</p>
<li/>
<p class="western"><font color="#ffffff"><font face="Arial, sans-serif"><b><span style="background: #0000ff">ATTENTION:</span></b></font></font>
Ephemeris of <b>16 Psyche</b> has been wrong so far ! By a
mysterious mistake it has been identical to 3 Juno.</p>
<li/>
<p class="western">Ephemerides of Ceres, Pallas, Vesta, Juno,
Chiron and Pholus have been reintegrated, with more recent orbital
elements and parameters (e.g. asteroid masses) that are more
appropriate to Bowells database of minor planets elements. The
differences are small, though.</p>
<li/>
<p class="western">Note that the <font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk478116834">CHIRON</a></u></font></font></font>
ephemeris is should not be used before <b>700 A.D.</b></p>
<li/>
<p class="western">Minor bug fix in computation of
topocentric planet positions. Nutation has not been correcly
considered in observer’s position. This has lead to an error
of 1 milliarcsec with the planets and 0.1” with the moon.</p>
<li/>
<p class="western">We have inactivated the coordinate
transformation from <b>IERS</b> to <b>FK5</b>, because there is
still no generally accepted algorithm. This results in a difference
of a few milliarcsec from former releases.
</p>
</ul>
<ol>
<ol>
<ol>
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636122"></a>
Changes from version 1.22 to 1.23</h3>
</ol>
</ol>
</ol>
<ul>
<li/>
<p class="western">The topocentric flag now also works with
the fixed stars. (The effect of diurnal aberration is a few 0.1 arc
second.)</p>
<li/>
<p class="western">Bug fix: The return position of
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_cotrans_sp()</span></font></font></font>
has been 0, when the input distance was 0.</p>
<li/>
<p class="western">About 140 asteroids are on the CD.</p>
</ul>
<ol>
<ol>
<ol>
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636123"></a>
Changes from version 1.21 to 1.22</h3>
</ol>
</ol>
</ol>
<ul>
<li/>
<p class="western">Asteroid ephemerides have been moved to
the <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">ephe\asteroid</span></font></font></font>.</p>
<li/>
<p class="western">The DLL has been modified in such a way
that it can find them there.</p>
<li/>
<p class="western">All asteroids with catalogue number below
90 are on the CD and a few additional ones.</p>
</ul>
<ol>
<ol>
<ol start="35">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636124"></a>
Changes from version 1.20 to 1.21</h3>
</ol>
</ol>
</ol>
<p class="western">Sample program and function declarations for
<font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk478117215">Delphi
1.0 </a></u></font></font></font> added.</p>
<ol>
<ol>
<ol start="36">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636125"></a>
Changes from version 1.11 to 1.20</h3>
</ol>
</ol>
</ol>
<p style="margin-right: -0.02in"><span style="background: #ffff00">New:</span></p>
<ul>
<li/>
<p style="margin-right: -0.02in">A flag bit <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">SEFLG_TOPOCTR</span></font></font></font>
allows to compute topocentric planet positions. Before calling
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font>,
call <font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477841944">swe_set_topo</a></u></font></font></font>.</p>
<li/>
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477862955">swe_house_pos</a></u></font></font></font>
for computation of the house position of a given planet. See
description in <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">SWISSEPH.DOC</span></font></font></font>,
Chapter 3.1 <font color="#000080">”Geocentric and topocentric
positions”</font>. A bug has been fixed that has sometimes
turned up, when the JPL ephemeris was closed. (An error in memory
allocation and freeing.)</p>
<li/>
<p style="margin-right: -0.02in">Bug fix: <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_cotrans()
</span></font></font></font>did not work in former versions.
</p>
</ul>
<ol>
<ol>
<ol start="37">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636126"></a>
Changes from version 1.10 to 1.11</h3>
</ol>
</ol>
</ol>
<p class="western">No bug fix, but two minor improvements:</p>
<p class="western"><br/>
</p>
<ul>
<li/>
<p class="western">A change of the ephemeris bits in
parameter <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>iflag</b></font></font>
of function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font>
usually forces an implicit <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_close()</span></font></font></font>
operation. Inside a loop, e.g. for drawing a graphical epehemeris,
this can slow down a program. Before this release, two calls with
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">iflag
= 0</font></font></font> and <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">iflag
= SEFLG_SWIEPH</font></font></font> where considered different,
though in fact the same ephemeris is used. Now these two calls are
considered identical, and <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_close()</span></font></font></font>
is not performed implicitly.<br>For calls with the
pseudo-planet-number <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">ipl
= SE_ECL_NUT</font></font></font>, whose result does not depend on
the chosen ephemeris, the ephemeris bits are ignored completely and
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_close()</span></font></font></font>
is never performed implicitly.</p>
<li/>
<p class="western">In former versions, calls of the Moshier
ephemeris with speed and without speed flag have returned a very
small difference in position (0.01 arc second). The reason was
that, for precise speed, <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font>
had to do an additional iteration in the light-time calculation.
The two calls now return identical position data.</p>
</ul>
<ol>
<ol>
<ol>
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636127"></a>
Changes from version 1.04 to 1.10</h3>
</ol>
</ol>
</ol>
<ul>
<li/>
<p class="western">A bug has been fixed that sometimes
occurred in <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc()</span></font></font></font>
when the user changed <font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>iflag</b></font></font><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">
between calls</span></font></font></font>, e.g. the speed flag. The
first call for a planet which had been previously computed for the
same time, but a different iflag, could return incorrect results,
if Sun, Moon or Earth had been computed for a different time in
between these two calls.</p>
<li/>
<p class="western">More asteroids have been added in this
release.</p>
</ul>
<ol>
<ol>
<ol>
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636128"></a>
Changes from Version 1.03 to 1.04</h3>
</ol>
</ol>
</ol>
<ul>
<li/>
<p class="western">A bug has been fixed that has sometimes
lead to a floating point exception when the speed flag was not
specified and an unusual sequence of planets was called.</p>
<li/>
<p class="western">Additional asteroid files have been
included.
</p>
</ul>
<p><br/>
</p>
<p class="western"><font color="#ffffff"><span style="background: #0000ff">
</span></font><font color="#ffffff"><b><span style="background: #0000ff">Attention:
</span></b></font><font color="#ffffff"><b> </b></font> Use these
files only with the new DLL. Previous versions cannot deal with more
than one additional asteroid besides the main asteroids. This error
did not appear so far, because only 433 Eros was on our CD-ROM.</p>
<ol>
<ol>
<ol>
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636129"></a>
Changes from Version 1.02 to 1.03</h3>
</ol>
</ol>
</ol>
<ul>
<li/>
<p class="western"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_fixstar()</span></font></font></font>
has a better implementation for the search of a specific star. If a
number is given, the non-comment lines in the file <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">fixstars.cat</span></font></font></font>
are now counted from 1; they where counted from zero in earlier
releases.</p>
<li/>
<p class="western"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_fixstar()</span></font></font></font>
now also computes heliocentric and barycentric fixed stars
positions. Former versions Swiss Ephemeris always returned
geocentric positions, even if the heliocentric or the barycentric
flag bit was set.</p>
<li/>
<p class="western">The <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Galactic
Cente</span></font></font></font>r has been included in
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">fixstars.cat.</span></font></font></font></p>
<li/>
<p class="western">Two small bugs were fixed in the
implementation of the barycentric Sun and planets. Under unusual
conditions, e.g. if the caller switched from JPL to Swiss Ephemeris
or vice-versa, an error of an arc second appeared with the
barycentric sun and 0.001 arc sec with the barycentric planets.
However, this did not touch normal geocentric computations.</p>
<li/>
<p class="western">Some VB declarations in swedecl.txt
contained errors and have been fixed. The VB sample has been
extended to show fixed star and house calculation. This fix is only
in 1.03 releases from 29-oct-97 or later, not in the two 1.03
CDROMs we burned on 28-oct-97.</p>
</ul>
<ol>
<ol>
<ol start="41">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636130"></a>
Changes from Version 1.01 to 1.02</h3>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<ul>
<li/>
<p class="western">The function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_houses()</span></font></font></font>
has been changed.</p>
<li/>
<p class="western">A new function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_houses_armc()</span></font></font></font>
has been added which can be used when a sidereal time (<font face="Times New Roman, serif"><font size="3" style="font-size: 12pt"><b>armc</b></font></font>)
is given but no actual date is known, e.g. for Composite charts.</p>
<li/>
<p class="western">The body numbers of the hypothetical
bodies have been changed.</p>
<li/>
<p class="western">The development environment for the DLL
and the sample programs have been changed from Watcom 10.5 to
Microsoft Visual C++ (5.0 and 1.5). This was necessary because the
Watcom compiler created LIB files which were not compatible with
Microsoft C. The LIB files created by Visual C however are
compatible with Watcom.</p>
</ul>
<ol>
<ol>
<ol start="42">
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636131"></a>
Changes from Version 1.00 to 1.01</h3>
<ol>
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636132"></a>
1. Sidereal time</h4>
</ol>
</ol>
</ol>
</ol>
<p class="western">The computation of the sidereal time is now much
easier. The obliquity and nutation are now computed inside the
function. The structure of the function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_sidtime()</span></font></font></font>
has been changed as follows:</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">/*
sidereal time */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
swe_sidtime(double tjd_ut); /* Julian day number, UT */</font></font></font></p>
<p class="western">The old functions <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_sidtime0()</span></font></font></font>
has been kept for backward compatibility.</p>
<ol>
<ol>
<ol>
<ol start="2">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636133"></a>
2. Houses</h4>
</ol>
</ol>
</ol>
</ol>
<p class="western">The calculation of houses has been simplified as
well. Moreover, the Vertex has been added.
</p>
<p class="western">The version <b>1.01</b> structure of<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">
swe_houses()</span></font></font></font> is:</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">int
<b>swe_houses</b>(</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
tjd_ut, /* julian day number, UT */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
geolat, /* geographic latitude, in degrees */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
geolon, /* geographic longitude, in degrees */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> char
hsys, /* house method, one of the letters PKRCAV */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
*asc, /* address for ascendant */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
*mc, /* address for mc */ </font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
*armc, /* address for armc */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"> double
*vertex, /* address for vertex */</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">double
*cusps); /* address for 13 doubles: 1 empty + 12 houses */</font></font></font></p>
<p><br/>
</p>
<p>Note also, that the indices of the cusps have changed:</p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">cusp[0]
= 0 (before: cusp[0] = house 1)</font></font></font></p>
<p style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">cusp[1]
= house 1 (before: cusp[1] = house 2)</font></font></font></p>
<p lang="fr-FR" style="margin-left: 0.8in; text-indent: -0.4in"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt">cusp[2]
= house 2 (etc.)</font></font></font></p>
<p lang="fr-FR" class="western">etc.</p>
<ol>
<ol>
<ol>
<ol start="3">
<li/>
<h4 class="western" style="text-indent: 0in"><a name="__RefHeading___Toc365636134"></a>
3. Ecliptic obliquity and nutation</h4>
</ol>
</ol>
</ol>
</ol>
<p class="western">The new pseudo-body<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">
SE_ECL_NUT </span></font></font></font>replaces the two separate
pseudo-bodies <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">SE_ECLIPTIC</span></font></font></font>
and SE_NUTATION in the function <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc().</span></font></font></font></p>
<ol>
<ol start="29">
<li/>
<h2 class="western"><a name="__RefHeading___Toc365636135"></a>
Appendix A</h2>
<ol>
<li/>
<h3 class="western"><a name="__RefHeading___Toc365636136"></a>
What is missing ?</h3>
</ol>
</ol>
</ol>
<p class="western"><br/>
</p>
<p class="western">There are some important limits in regard to what
you can expect from an ephemeris module. We do not tell you:</p>
<p class="western"><a name="_Hlk477486313"></a>how to draw a chart</p>
<p class="western"><a name="_Hlk477487992"></a><br/>
</p>
<ul>
<li/>
<p class="western">which <font color="#000000"><span style="letter-spacing: 1.0pt"><span lang="en-US">glyphs
to use</span></span></font></p>
<li/>
<p class="western"><font color="#000000"><span style="letter-spacing: 1.0pt"><span lang="en-US">when
a planet is stationary</span></span></font> (it depends on you how
slow you want it to be)</p>
<li/>
<p class="western">how to compute universal time from local
time, i.e. what timezone a place is located in</p>
<li/>
<p class="western">how to compute progressions, solar
returns, composit charts, transit times and a lot else</p>
<li/>
<p class="western"><font color="#000000"><span style="letter-spacing: 1.0pt"><span lang="en-US">what
the different calendars</span></span></font> (Julian, Gregorian,
..) mean and when they applied.</p>
</ul>
<ol>
<ol start="30">
<li/>
<h2 class="western" style="page-break-before: always"><a name="__RefHeading___Toc365636137"></a>
Index</h2>
</ol>
</ol>
<table width="643" cellpadding="7" cellspacing="0">
<col width="191">
<col width="424">
<tr>
<td width="191" height="12" style="border: none; padding: 0in">
<p align="center" style="margin-right: -0.02in"><font size="4" style="font-size: 14pt"><b>Flag</b></font></p>
</td>
<td width="424" style="border: none; padding: 0in">
<p class="western" align="center"><font size="4" style="font-size: 14pt"><b>Body,
Point</b></font></p>
</td>
</tr>
<tr valign="top">
<td width="191" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477833574"><span lang="de-CH">Default
ephemeris flag</span></a></u></font></font></font></p>
</td>
<td width="424" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477320798">Additional
asteroids</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="191" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477321234">Ephemeris
flags</a></u></font></font></font></p>
</td>
<td width="424" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477320919">Fictitious
planets</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="191" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477321208">Flag
bits</a></u></font></font></font></p>
</td>
<td width="424" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477834622">Find
a name</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="191" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477321274">Speed
flag</a></u></font></font></font></p>
</td>
<td width="424" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477829414">How
to compute</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="191" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><br/>
</p>
</td>
<td width="424" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477832844">Special
body SE_ECL_NUT</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="191" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><br/>
</p>
</td>
<td width="424" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477832209"><span lang="fr-FR">Uranian
planets</span></a></u></font></font></font></p>
</td>
</tr>
</table>
<p class="western"><br/>
</p>
<table width="643" cellpadding="7" cellspacing="0">
<col width="191">
<col width="136">
<col width="274">
<tr>
<td width="191" height="14" style="border: none; padding: 0in">
<p lang="fr-FR" class="western" align="center"><font size="4" style="font-size: 14pt"><b>Position</b></font></p>
</td>
<td width="136" style="border: none; padding: 0in">
<p class="western" align="center"><font size="4" style="font-size: 14pt"><b>What
is..</b></font></p>
</td>
<td width="274" style="border: none; padding: 0in">
<p class="western" align="center"><font size="4" style="font-size: 14pt"><b>How
to…</b></font></p>
</td>
</tr>
<tr valign="top">
<td width="191" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477321696">Astrometric</a></u></font></font></font></p>
</td>
<td width="136" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477842381">Ayanamsha</a></u></font></font></font></p>
</td>
<td width="274" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlt477860200">Change
the tidal acceleration</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="191" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477321673">Barycentric</a></u></font></font></font></p>
</td>
<td width="136" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477831317">Dynamical
Time</a></u></font></font></font></p>
</td>
<td width="274" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477862421">compute
sidereal composite house cusps</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="191" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477833734">Equatorial</a></u></font></font></font></p>
</td>
<td width="136" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477830987">Ephemeris
Time</a></u></font></font></font></p>
</td>
<td width="274" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477862144">compute
the composite ecliptic obliquity</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="191" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477321658">Heliocentric</a></u></font></font></font></p>
</td>
<td width="136" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477840429">Equation
of time</a></u></font></font></font></p>
</td>
<td width="274" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477837327">Draw
the eclipse path</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="191" height="8" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477321486">J2000</a></u></font></font></font></p>
</td>
<td width="136" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477330118">Julian
day</a></u></font></font></font></p>
</td>
<td width="274" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477320958">Get
obliquity and nutation</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="191" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477325102">Position
and Speed</a></u></font></font></font></p>
</td>
<td width="136" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477330492">Universal
Time</a></u></font></font></font></p>
</td>
<td width="274" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477837444">Get
the umbra/penumbra limits</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="191" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477833841">Radians/degrees</a></u></font></font></font></p>
</td>
<td width="136" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477861184">Vertex/Anivertex</a></u></font></font></font></p>
</td>
<td width="274" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477835264">Search
for a star</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="191" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477321473">Sidereal</a></u></font></font></font></p>
</td>
<td width="136" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
<td width="274" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477321265">Switch
the coordinate systems</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="191" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477321643">Topocentric</a></u></font></font></font><b>
</b>
</p>
</td>
<td width="136" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><br/>
</p>
</td>
<td width="274" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477321511">Switch
true/mean equinox of date</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="191" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477834072">True
geometrical position</a></u></font></font></font></p>
</td>
<td width="136" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
<td width="274" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><br/>
</p>
</td>
</tr>
<tr valign="top">
<td width="191" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477321411">True/apparent</a></u></font></font></font></p>
</td>
<td width="136" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
<td width="274" style="border: none; padding: 0in">
<p class="western"><br/>
</p>
</td>
</tr>
<tr valign="top">
<td width="191" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477833826">x,
y, z </a></u></font></font></font>
</p>
</td>
<td width="136" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><br/>
</p>
</td>
<td width="274" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><br/>
</p>
</td>
</tr>
</table>
<p class="western"><br/>
</p>
<p class="western"><br/>
</p>
<p class="western"><br/>
</p>
<table width="643" cellpadding="7" cellspacing="0">
<col width="293">
<col width="322">
<tr valign="top">
<td width="293" style="border: none; padding: 0in">
<p align="center" style="margin-right: -0.02in"><font size="4" style="font-size: 14pt"><b>Errors</b></font></p>
</td>
<td width="322" style="border: none; padding: 0in">
<p align="center" style="margin-right: -0.02in"><font size="4" style="font-size: 14pt"><b>Variable</b></font></p>
</td>
</tr>
<tr valign="top">
<td width="293" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477863570">Asteroids</a></u></font></font></font></p>
</td>
<td width="322" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477864589">Armc</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="293" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477864373">Avoiding
Koch houses</a></u></font></font></font></p>
</td>
<td width="322" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477862569">Ascmc[..]</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="293" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477864058">Ephemeris
path length</a></u></font></font></font></p>
</td>
<td width="322" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477328180">Atpress</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="293" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477831517">Errors
and return values</a></u></font></font></font></p>
</td>
<td width="322" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477328191">Attemp</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="293" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477831866">Fatal
error</a></u></font></font></font></p>
</td>
<td width="322" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477842217">Ayan_t0</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="293" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477864194">House
cusps beyond the polar circle</a></u></font></font></font></p>
</td>
<td width="322" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477862529">Cusps[..]</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="293" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477864273">Koch
houses limitations</a></u></font></font></font></p>
</td>
<td width="322" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477862235">Eps</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="293" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477863958">Overriding
environment variables</a></u></font></font></font></p>
</td>
<td width="322" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477329877">Gregflag</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="293" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477863706">Speeds
of the fixed stars</a></u></font></font></font></p>
</td>
<td width="322" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477862719"><span lang="de-CH">Hsys</span></a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="293" style="border: none; padding: 0in">
<p lang="de-CH" style="margin-right: -0.02in"><br/>
</p>
</td>
<td width="322" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477831658"><span lang="de-CH">Iflag</span></a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="293" style="border: none; padding: 0in">
<p lang="de-CH" style="margin-right: -0.02in"><br/>
</p>
</td>
<td width="322" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477320729"><span lang="de-CH">Ipl</span></a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="293" style="border: none; padding: 0in">
<p lang="de-CH" style="margin-right: -0.02in"><br/>
</p>
</td>
<td width="322" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477836150">Method</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="293" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><br/>
</p>
</td>
<td width="322" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477328165">Rsmi</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="293" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><br/>
</p>
</td>
<td width="322" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477842160">Sid_mode
</a></u></font></font></font>
</p>
</td>
</tr>
<tr valign="top">
<td width="293" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><br/>
</p>
</td>
<td width="322" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477835149">Star</a></u></font></font></font></p>
</td>
</tr>
</table>
<p class="western"><br/>
</p>
<table width="643" cellpadding="7" cellspacing="0">
<col width="197">
<col width="418">
<tr>
<td width="197" height="14" style="border: none; padding: 0in">
<p class="western" align="center"><font size="4" style="font-size: 14pt"><b>Function</b></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western" align="center"><font size="4" style="font-size: 14pt">Description</font></p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477329169">Swe_azalt</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Computes the horizontal coordinates (<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">azimuth
and altitude</span></font></font></font>)</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477329516">Swe_azalt_rev</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">computes either ecliptical or equatorial
coordinates from azimuth and true altitude</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477320293">swe_calc</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">computes the positions of planets, asteroids,
lunar nodes and apogees</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477319384">swe_calc_ut</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western" align="right">Modified version of <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_calc</span></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477844023">swe_close</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">releases most resources used by the Swiss
Ephemeris</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk478111295">swe_cotrans</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Coordinate transformation, from <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">ecliptic
to equator</span></font></font></font> or vice-versa</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk478111388">swe_cotrans_sp</a></u></font></font></font><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span style="text-decoration: none">
</span></font></font></font>
</p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Coordinate transformation of <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">position
and speed</span></font></font></font>, from <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">ecliptic
to equator</span></font></font></font> or vice-versa</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477331070">swe_date_conversion</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">computes a <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Julian
day from year, month, day, time</span></font></font></font> and
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">checks</span></font></font></font>
whether a date is legal</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk478111399">swe_degnorm</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western"><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">normalization</span></font></font></font>
of any degree number to the range 0 ... 360</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477840778">swe_deltat</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Computes the difference between <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Universal
Time (UT, GMT)</span></font></font></font> and <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Ephemeris
time</span></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477325176">swe_fixstar</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">computes <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">fixed
stars</span></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477325162">swe_fixstar_ut</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western" align="right">Modified version of <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_fixstar</span></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477856443">swe_get_ayanamsa</a></u></font></font></font>
</p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Computes the <font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477842381">ayanamsha</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477856452">swe_get_ayanamsa_ut</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western" align="right">Modified version of
<font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_get_ayanamsa</span></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477324852">swe_get_planet_name</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Finds a planetary or asteroid <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">name
by given number</span></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477840792">swe_get_tid_acc</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Gets the tidal acceleration</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477862955">swe_house_pos</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">compute the <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">house
position</span></font></font></font> of a given body for a given
ARMC</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477861239">swe_houses</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Calculates houses for a given date and
geographic position</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477861854">swe_houses_armc</a></u></font></font></font><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span style="text-decoration: none">
</span></font></font></font>
</p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">computes houses from <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">ARMC</span></font></font></font>
(e.g. with the composite horoscope which has no date)</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477861861">swe_houses_ex</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">the same as <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_houses()</span></font></font></font>.
Has a parameter, which can be used, if <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">
sidereal</span></font></font></font><span style="text-transform: uppercase"><font color="#800000"><b>
</b></font></span>house positions are wanted</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477329697">swe_julday</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Conversion from day, month, year, time to
Julian date</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477326863">swe_lun_eclipse_how</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Computes the attributes of a lunar eclipse at
a given time</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477326807">swe_lun_eclipse_when</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Finds the <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">next
lunar eclipse</span></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477325759">swe_nod_aps</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Computes planetary nodes and apsides:
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">perihelia,
aphelia, second focal points of the orbital ellipses</span></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477325741">swe_nod_aps_ut</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western" align="right">Modified version of <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_nod_aps</span></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477329016">swe_pheno</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Function computes <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">phase,
phase angle, elongation, apparent diameter, apparent magnitude</span></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477328995">swe_pheno_ut</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western" align="right">Modified version of<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">
</span></font></font></font><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_pheno</span></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477329626">swe_refrac</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">The <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">true/apparent
altitude </span></font></font></font><font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK"><font color="#000000"><span lang="en-US">c</span></font></span></font></font></font>onvertion</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477329710">swe_revjul
</a></u></font></font></font>
</p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Conversion from <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">Julian
date</span></font></font></font> to <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">day,
month, year, time</span></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477327296">swe_rise_trans</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Computes the times of <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">rising,
setting and meridian transits</span></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477843944">swe_set_ephe_path</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Set application’s own <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">ephemeris
path</span></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477844051">swe_set_jpl_file</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Sets <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">JPL
ephemeris</span></font></font></font> directory path</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477842044">swe_set_sid_mode</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Specifies the <font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477860745">sidereal
modes</a></u></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477840801">swe_set_tid_acc</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Sets <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">tidal
acceleration</span></font></font></font> used in <font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">swe_deltat()</span></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477841944">swe_set_topo</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Sets what geographic position is to be used
before <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">topocentric</span></font></font></font>
planet positions for a certain birth place can be computed</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p style="margin-right: -0.02in"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477864660">swe_sidtime</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">returns <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">sidereal
time</span></font></font></font> on Julian day</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477864667">swe_sidtime0</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">returns <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">sidereal
time</span></font></font></font> on Julian day, obliquity and
nutation</p>
<p class="western"><br/>
</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477326421">swe_sol_eclipse_how</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Calculates the <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">solar
eclipse</span></font></font></font> attributes for a given
<font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">geographic
position and time</span></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477326215">swe_sol_eclipse_when_glob</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">finds the <font color="#008080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><span lang="da-DK">next
solar eclipse globally</span></font></font></font></p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477326105">swe_sol_eclipse_when_loc</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">finds the next solar eclipse for a given
geographic position</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477326645">swe_sol_eclipse_where</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">finds out the geographic position where an
eclipse is</p>
<p class="western">central or maximal</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk477330339">swe_time_equ</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">returns the difference between local apparent
and local mean time</p>
</td>
</tr>
</table>
<p class="western"><br/>
</p>
<table width="643" cellpadding="7" cellspacing="0">
<col width="197">
<col width="418">
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western" align="center"><font size="4" style="font-size: 14pt"><b>PlaCalc
function</b></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western" align="center"><font size="4" style="font-size: 14pt">Description</font></p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western" align="justify"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk478111710">swe_csnorm</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Normalize argument into interval [0..DEG360]</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p class="western"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk478112081">swe_cs2degstr</a></u></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Centiseconds -> degrees string</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk478112074">swe_cs2lonlatstr</a></u></font></font></font></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Centiseconds -> longitude or latitude
string</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk478112061">swe_cs2timestr</a></u></font></font></font></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Centiseconds -> time string</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk478111937">swe_csroundsec</a></u></font></font></font></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Round second, but at 29.5959 always down</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk478111943">swe_d2l</a></u></font></font></font></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Double to long with rounding, no overflow
check</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk478111951">swe_day_of_week</a></u></font></font></font></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Day of week Monday = 0, ... Sunday = 6</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p align="justify"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk478111918">swe_difcs2n</a></u></font></font></font></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Distance in centisecs p1 – p2 normalized
to [-180..180]</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk478111870">swe_difcsn</a></u></font></font></font></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Distance in centisecs p1 – p2 normalized
to [0..360]</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p align="justify"><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk478111928">swe_difdeg2n</a></u></font></font></font></font></font></font></p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Distance in degrees</p>
</td>
</tr>
<tr valign="top">
<td width="197" style="border: none; padding: 0in">
<p><font color="#000080"><font face="Verdana, sans-serif"><font size="2" style="font-size: 9pt"><font color="#0000ff"><font face="Verdana, sans-serif"><font size="2" style="font-size: 10pt"><u><a class="western" href="#_Hlk478111884">swe_difdegn
</a></u></font></font></font></font></font></font>
</p>
</td>
<td width="418" style="border: none; padding: 0in">
<p class="western">Distance in degrees</p>
</td>
</tr>
</table>
<p class="western" align="center"><br/>
</p>
<p class="western" align="center"><font color="#ffffff"><font face="Arial, sans-serif"><b><span style="background: #0000ff">End
of SWEPHPRG.DOC</span></b></font></font></p>
</div>
</body>
</html>
|