| Section5 | R Documentation |
Functions for: determining Kepler elements, nodes, apsides and orbital periods
swe_nod_aps_ut(jd_ut, ipl, iflag, method)
swe_nod_aps(jd_et, ipl, iflag, method)
swe_get_orbital_elements(jd_et, ipl, iflag)
swe_orbit_max_min_true_distance(jd_et, ipl, iflag)
jd_ut |
UT Julian day number as double (day) |
ipl |
Body/planet as integer ( |
iflag |
Computation flag as integer, many options possible (section 2.3) |
method |
Method as integer ( |
jd_et |
ET Julian day number as double (day) |
Compute planetary nodes and apsides (perihelia, aphelia, second focal points of the orbital ellipses).
Compute planetary nodes and apsides (perihelia, aphelia, second focal points of the orbital ellipses).
This function calculates osculating elements (Kepler elements) and orbital periods.
This function calculates the maximum possible distance, the minimum possible distance and the current true distance of planet.
swe_nod_aps_ut returns a list with named entries:
return status flag as integer, xnasc ascending nodes as numeric vector,
xndsc descending nodes as numeric vector, xperi perihelion as numeric vector, xaphe aphelion as numeric vector and serr error message as string
swe_nod_aps returns a list with named entries:
return status flag as integer, xnasc ascending nodes as numeric vector,
xndsc descending nodes as numeric vector, xperi perihelion as numeric vector, xaphe aphelion as numeric vector and serr error message as string
swe_get_orbital_elements returns a list with named entries:
return status flag as integer, dret function results as numeric vector and serr error message as string
swe_orbit_max_min_true_distance returns a list with named entries:
return status flag as integer, dmax maximum distance as double,
dmin minimum distance as double, dtrue true distance as double and serr error message as string
Section 5 in http://www.astro.com/swisseph/swephprg.htm. Remember that array indices start in R at 1, while in C they start at 0!
data(SE)
swe_nod_aps_ut(2451545,SE$MOON, SE$FLG_MOSEPH,SE$NODBIT_MEAN)
swe_nod_aps(2451545,SE$MOON, SE$FLG_MOSEPH,SE$NODBIT_MEAN)
swe_get_orbital_elements(2451545,SE$MOON, SE$FLG_MOSEPH)
swe_orbit_max_min_true_distance(2451545,SE$MOON, SE$FLG_MOSEPH)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.