JEphem site
JEphem API

Class AnalyseVSOP87

java.lang.Object
  |
  +--AnalyseVSOP87

public class AnalyseVSOP87
extends java.lang.Object

Contains methods used to analyze VSOP87 data classes.
This class is not used by JEphem, it was developped to include the generated table in a page of JEphem's site.
In this class, when arrays characterizing planetary data were needed (ex : "planetNames"), the indexes of jephem.astro.SolarSystem.java were used.


Constructor Summary
AnalyseVSOP87()
           
 
Method Summary
static void buildNbTermsTable(java.lang.String strVersions, java.lang.String strTitles)
          Once nbTerm classes have been generated with getNbTerms, the purpose is to generate an HTML table comparing these classes.
static void calcAlphaMax(java.lang.String strAlpha0, java.lang.String strAlpha1)
          Intermediate calculation to know maximal geocentric angular error admissible for a planet to finally get 1 arcsecond of precision.
static void calcErrMax()
          Calculation of maximal error in cartesian heliocentric position.
static void getBDLCommentLines()
          Produces an output with only comment lines of BDL files.
static void getNbTerms(java.lang.String strPrefix)
          This method takes in current directory data classes (.java) and builds two files : 'prefix'__nbTerms.txt, containing nbTerms arrays, 'prefix'__retained.txt, containing comment lines of data[][].
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnalyseVSOP87

public AnalyseVSOP87()
Method Detail

buildNbTermsTable

public static void buildNbTermsTable(java.lang.String strVersions,
                                     java.lang.String strTitles)
Once nbTerm classes have been generated with getNbTerms, the purpose is to generate an HTML table comparing these classes.
For each planet, a sum is done for each number of terms.

To work, compiled nbTerm classes (ex : DataVSOP87A__nbTerms.class) MUST be in the classpath.

Parameters:
strTitles - : contains the titles which will appear in the tables
(ex : "(BDL),(JEphem),(XEphem)").
There MUST be the same number of elements in strVersions and strTitles.

calcAlphaMax

public static void calcAlphaMax(java.lang.String strAlpha0,
                                java.lang.String strAlpha1)
Intermediate calculation to know maximal geocentric angular error admissible for a planet to finally get 1 arcsecond of precision.

Parameters:
strAlpha0 - and strAlpha1 represent the values in arc seconds

calcErrMax

public static void calcErrMax()
Calculation of maximal error in cartesian heliocentric position.
Results of calcAlphaMax are used (array alphaMax).
Results written into a file in order to incorporate to VSOP87Transform4.


getBDLCommentLines

public static void getBDLCommentLines()
Produces an output with only comment lines of BDL files.
Method used to check validity of nbTerms arrays in classes "DataVSOP87C_Full_xxx".
Input files must be in the current directory


getNbTerms

public static void getNbTerms(java.lang.String strPrefix)
This method takes in current directory data classes (.java) and builds two files :
  • 'prefix'__nbTerms.txt, containing nbTerms arrays
  • ,
  • 'prefix'__retained.txt, containing comment lines of data[][]
  • . The purpose is to compare generated data classes with XEphem classes and original BDL files.
    Names of data classes must be : strPrefix_yyy, where yyy is planet name.

    Parameters:
    strPrefix - beginning of names of files to analyze (ex DataVSOP87A_Full).

    main

    public static void main(java.lang.String[] args)

    JEphem site
    JEphem API