Programming interface to the Swiss
Ephemeris
Copyright Astrodienst AG 1997-2003.
This document describes the proprietary programmer's interface to the Swiss Ephemeris DLL.
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
a) GNU public license version 2 or later
b) Swiss Ephemeris Professional License
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.
If the developer choses 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
If the developer choses 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.
1. The programming
steps to get a planet’s position
2. The functions
swe_calc_ut() and swe_calc()
2.2. Error handling and return values
2.4. Options chosen by flag bits (long iflag)
2.4.4. Coordinate systems, degrees and radians
2.4.5. Specialties (going beyond common interest)
f. True or mean equinox of date
g. J2000 positions and positions referred to other
equinoxes
2.5. Position and Speed (double xx[6])
3. The function
swe_get_planet_name()
6. Eclipse and
planetary phenomena functions
6.0.
Example of a typical eclipse calculation
6.1. swe_sol_eclipse_when_loc() and
swe_lun_occult_when_loc()
6.2. swe_sol_eclipse_when_glob()
6.5. swe_lun_occult_when_loc()
6.6. swe_lun_occult_when_glob()
6.10. swe_rise_trans(), risings, settings, meridian transits