| Section5 {swephR} | R Documentation |
Section 5: Kepler elements, nodes, apsides and orbital periods
Description
Functions for: determining Kepler elements, nodes, apsides and orbital periods
Usage
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)
Arguments
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) |
Details
- swe_nod_aps_ut()
Compute planetary nodes and apsides (perihelia, aphelia, second focal points of the orbital ellipses).
- swe_nod_aps()
Compute planetary nodes and apsides (perihelia, aphelia, second focal points of the orbital ellipses).
- swe_get_orbital_elements()
This function calculates osculating elements (Kepler elements) and orbital periods.
- swe_orbit_max_min_true_distance()
This function calculates the maximum possible distance, the minimum possible distance and the current true distance of planet.
Value
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
See Also
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!
Examples
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)