|
JEphem site JEphem API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--BuildVSOP87_2
Contains methods used to build VSOP87 data classes.
SECOND VERSION - GENERATES BINARY
This class is independant from jephem
and tig
packages, can be compiled separately.
JEphem program doesn't use it, it was used to build JEphem
It can be useful to developpers who want to transform BDL VSOP87 files.
In this class, when arrays characterizing planetary data were needed (ex : for "a0s",
"eccs"), the indexes of jephem.astro.SolarSystemConstants.java were used
.
Field Summary | |
static java.lang.String |
ARG_CALC_ALPHA_MAX
Argument to pass to main() to call calcAlphaMax() |
static java.lang.String |
ARG_CALC_ERR_MAX
Argument to pass to main() to call getBdlCommentLines() |
static java.lang.String |
ARG_CALC_P0_A0
Argument to pass to main() to call calcP0A0() |
static java.lang.String |
ARG_GET_COMMENT_LINES
Argument to pass to main() to call calcErrMax() |
static java.lang.String |
ARG_TRANSFORM
Argument to pass to main() to call transformVSOP87() |
static double |
RAD_TO_ARCSEC
Constant to convert radians to arc seconds, whose value is 180 * 3600 / p. |
Constructor Summary | |
BuildVSOP87_2()
|
Method Summary | |
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 |
calcP0A0()
Used to generate a table for the page BuildVSOP .
|
static void |
calcTotalNbTerms(int precision)
Method used at the end of build process, to include 'totalTerms' in classes 'DataVSOP87A_XXX__nbTerms.java'. |
static void |
getBdlCommentLines()
Produces an output with only comment lines of BDL files. |
static void |
main(java.lang.String[] args)
Dispatches the call to different methods, depending on first argument. |
static void |
transformVSOP87(java.lang.String inputFile,
java.lang.String strPlanetIndex,
java.lang.String strVersion,
java.lang.String strFilter,
java.lang.String strOutputType)
Method to transform a VSOP87 data file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ARG_CALC_ALPHA_MAX
main()
to call calcAlphaMax()
public static final java.lang.String ARG_CALC_ERR_MAX
main()
to call getBdlCommentLines()
public static final java.lang.String ARG_CALC_P0_A0
main()
to call calcP0A0()
public static final java.lang.String ARG_GET_COMMENT_LINES
main()
to call calcErrMax()
public static final java.lang.String ARG_TRANSFORM
main()
to call transformVSOP87()
public static final double RAD_TO_ARCSEC
Constructor Detail |
public BuildVSOP87_2()
Method Detail |
public static void calcAlphaMax(java.lang.String strAlpha0, java.lang.String strAlpha1)
transformVSOP87()
, when JEphem truncation method is employed.
strAlpha0
- and strAlpha1 represent the values in arc secondspublic static void calcErrMax()
public static void calcP0A0()
BuildVSOP
.
Calculates, with data from VSOP87.doc, quantities p0 * a0, converts them into
radians or meters, and outputs lines for an HTML table.
public static void calcTotalNbTerms(int precision)
public static void getBdlCommentLines()
public static void main(java.lang.String[] args)
public static void transformVSOP87(java.lang.String inputFile, java.lang.String strPlanetIndex, java.lang.String strVersion, java.lang.String strFilter, java.lang.String strOutputType)
jephem.astro.planets.vsop87.DataVSOP87A_JEphem_Earth.java
:
VSOP87Transform("VSOP87A.ear.txt", "4", "A", "JEPHEM", "JAVA")
:
'VSOP87A.ear.txt' designates the name of the original BDL file ; '4' designates the index
of the planet (the Earth) ; 'JEPHEM' is the "filter" ; 'JAVA' tells that a java class must be generated.
jephem.astro.planets.vsop87.DataVSOP87A_Full_Earth.txt
:
VSOP87Transform("VSOP87A.ear.txt", "4", "A", "FULL", "TEXT")
inputFile
- name of BDL file containing data for the planet (must be in the current
directory).strPlanetIndex
- Index of the planet, in coherence with
jephem.astro.ISolarSystem.java
constants.strVersion
- VSOP87 Version used ("A", "B", "C", "D" or "E"). If you use raw VSOP87 version,
strVersion
must be "VSOP87".strFilter
- Indicates if some terms must be removed :
"FULL"
: no filter, all terms are retained.
"JEPHEM"
: filter used for JEphem classes (see JEphem website
for explanation).
"BDL"
: filter explained in astron. astroph. 202 p, 314.strOutputType
- Indicates what output file produce :
"JAVA"
: produces a java class.
"TEXT"
: produces a text file containing terms.
|
JEphem site JEphem API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |