JEphem site
JEphem API

Class BuildTestPluto99

java.lang.Object
  |
  +--BuildTestPluto99

public class BuildTestPluto99
extends java.lang.Object

Contains methods used to build jephem.astro.planets.Pluto99.java.
This class is NOT part of 'jephem' package, and can be useful to developpers who want to transform BDL Pluto99 file.
See a description of its use in the page about Pluto99 of JEphem site.
BuildTestPluto99 needs to have in the current directory the file plutoxyz.dat which can be found at ftp://ftp.bdl.fr/pub/polac/solarsys/pluto.


Field Summary
static java.lang.String PARAM_BUILD
          Parameter to pass to main() to call buildPluto99() - value = "build".
static java.lang.String PARAM_CALC_GEO_PREC
          Parameter to pass to main() to call calcGeoPrec() - value = "calcGeoPrec".
static java.lang.String PARAM_DEGREES
          Parameter to pass to buildPluto99() to generate term Phi in degrees. - value = "degrees".
static java.lang.String PARAM_RADIANS
          Parameter to pass to buildPluto99() to generate term Phi in radians. - value = "radians".
static java.lang.String PARAM_TEST_POSITIONS
          Parameter to pass to main() to call testPositions() - value = "testPositions".
static java.lang.String PARAM_TEST_VELOCITIES
          Parameter to pass to main() to call testVelocities() - value = "testVelocities".
 
Constructor Summary
BuildTestPluto99()
           
 
Method Summary
static void buildPluto99(java.lang.String strUnit)
          Method used to transform 'plutoxyz.dat' to a java array.
static void calcGeoPrec()
          Small method which calculates the geocentric precision an error of 0.00005 u.a. represents.
static void main(java.lang.String[] args)
          Dispatches the call to different methods, depending on first argument.
static void testPositions()
          Method used to test first version of class Pluto99 (with phi in degrees); values taken from NOTICE.
static void testVelocities()
          Method used to test the second version of class Pluto99 (with phi in radians);
The refence values are obtained from Pluto99_deg.java., in the current directory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_BUILD

public static final java.lang.String PARAM_BUILD
Parameter to pass to main() to call buildPluto99() - value = "build".

See Also:
Constant Field Values

PARAM_CALC_GEO_PREC

public static final java.lang.String PARAM_CALC_GEO_PREC
Parameter to pass to main() to call calcGeoPrec() - value = "calcGeoPrec".

See Also:
Constant Field Values

PARAM_DEGREES

public static final java.lang.String PARAM_DEGREES
Parameter to pass to buildPluto99() to generate term Phi in degrees. - value = "degrees".

See Also:
Constant Field Values

PARAM_RADIANS

public static final java.lang.String PARAM_RADIANS
Parameter to pass to buildPluto99() to generate term Phi in radians. - value = "radians".

See Also:
Constant Field Values

PARAM_TEST_POSITIONS

public static final java.lang.String PARAM_TEST_POSITIONS
Parameter to pass to main() to call testPositions() - value = "testPositions".

See Also:
Constant Field Values

PARAM_TEST_VELOCITIES

public static final java.lang.String PARAM_TEST_VELOCITIES
Parameter to pass to main() to call testVelocities() - value = "testVelocities".

See Also:
Constant Field Values
Constructor Detail

BuildTestPluto99

public BuildTestPluto99()
Method Detail

buildPluto99

public static void buildPluto99(java.lang.String strUnit)
Method used to transform 'plutoxyz.dat' to a java array.
Only terms 'Ampli', 'Nu' and 'Phi' are used.
It generates a file 'result.txt' which contains a java formatted array containing the terms of Pluto99.

Parameters:
strUnit - : can be "radians" or "degrees", depending on the unit you want phi to be expressed.

calcGeoPrec

public static void calcGeoPrec()
Small method which calculates the geocentric precision an error of 0.00005 u.a. represents.


main

public static void main(java.lang.String[] args)
Dispatches the call to different methods, depending on first argument.

Parameters:
args - The first argument must be one of ARG_XXX constants ; indicates which method will be called. The following arguments are passed to the called method.

testPositions

public static void testPositions()
Method used to test first version of class Pluto99 (with phi in degrees); values taken from NOTICE.


testVelocities

public static void testVelocities()
Method used to test the second version of class Pluto99 (with phi in radians);
The refence values are obtained from Pluto99_deg.java., in the current directory


JEphem site
JEphem API