Section2 {swephR} | R Documentation |
Section 2: Computing positions
Description
Computing positions of planets, asteroids, lunar nodes and apogees using Swiss Ephemeris.
Usage
swe_calc_ut(jd_ut, ipl, iflag)
swe_calc(jd_et, ipl, iflag)
Arguments
jd_ut |
UT Julian day number as double (day) |
ipl |
Body/planet as integer (SE$SUN=0, SE$Moon=1, ... SE$PLUTO=9) |
iflag |
Computation flag as integer, many options possible (section 2.3.1) |
jd_et |
ET Julian day number as double (day) |
Details
- swe_calc_ut()
It compute positions using UT.
- swe_calc()
It compute positions using ET.
Value
swe_calc_ut
returns a list with named entries: return
status flag as integer,
xx
information on planet position, and serr
error message as string.
swe_calc
returns a list with named entries: return
status flag as integer,
xx
updated star name as string and serr
error message as string.
See Also
Section 2 in http://www.astro.com/swisseph/swephprg.htm. Remember that array indices start in R at 1, while in C they start at 0!
Examples
data(SE)
swe_calc_ut(2458346.82639, SE$MOON, SE$FLG_MOSEPH)
swe_calc(2458346.82639, SE$MOON, SE$FLG_MOSEPH)