JEphem site
tig API
Build classes

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,


Field Summary
 
Fields inherited from interface jephem.astro.solarsystem.PlanetaryTheory
ELP82, PLUTO99, THEORY_NAMES, VSOP87A_FULL
 
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
 
Fields inherited from interface tig.GeneralConstants
BLANK, FS, LS, NO_SPECIF, SPACE
 
Fields inherited from interface jephem.astro.spacetime.TimeConstants
DAYS_PER_CENTURY, DAYS_PER_MILLENIUM, DAYS_PER_YEAR, JD1900, JD2000, JD2100, SECONDS_PER_DAY, TT_TDB, UTC
 
Constructor Summary
VSOP87()
           
 
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
 

Constructor Detail

VSOP87

public VSOP87()
Method Detail

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.


JEphem site
tig API
Build classes