jephem.astro.solarsystem.vsop87
Class VSOP87
java.lang.Object
|
+--jephem.astro.solarsystem.vsop87.VSOP87
- All Implemented Interfaces:
- GeneralConstants, PlanetaryTheory, SolarSystemConstants, TimeConstants
- public abstract class VSOP87
- extends java.lang.Object
- implements PlanetaryTheory, SolarSystemConstants, GeneralConstants, TimeConstants
Low-level class performing calculations of planet coordinates from VSOP87 theory,
Fields inherited from interface jephem.astro.solarsystem.SolarSystemConstants |
E0_1900, E0_1950, E0_2000, EARTH, JUPITER, KM_PER_AU, MARS, MERCURY, MOON, NB_BODIES, NEPTUNE, PLUTO, SATURN, SIDERAL_RATE, SUN, URANUS, VENUS |
Method Summary |
static void |
calcCoord(double jd,
Body body,
double precision,
boolean velocities)
Calculation of planetary positions, from Mercury to Neptune, using VSOP87 theory.
|
static double |
getPrecision(int bodyIndex,
double jd)
Returns the precision of VSOP87 for a given body and a given julian day. |
static void |
setDataPath(java.lang.String dataPath)
Sets the path where the VSOP87 files are located ; MUST be called before using VSOP87. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VSOP87
public VSOP87()
calcCoord
public static void calcCoord(double jd,
Body body,
double precision,
boolean velocities)
throws AstroException
- Calculation of planetary positions, from Mercury to Neptune, using VSOP87 theory.
If the date asked for the computation is not handled by VSOP87 theory or if parameter 'precision' can't be
handled by the theory, a Body.setComputationException(ComputationException)
is called.
- Parameters:
jd
- julian date ; time scale : dynamical time TDB.body
- Index of the planet to calculate (using constants of
SolarSystemConstants
).velocities
- Flag indicating if velocities must be also calculated.
- Throws:
AstroException
- if an IO or reflection error occurs.
getPrecision
public static double getPrecision(int bodyIndex,
double jd)
- Returns the precision of VSOP87 for a given body and a given julian day.
setDataPath
public static void setDataPath(java.lang.String dataPath)
- Sets the path where the VSOP87 files are located ; MUST be called before using VSOP87.