org.stellarium.astro.planet
Class Elp82b
java.lang.Object
org.stellarium.astro.planet.Elp82b
- All Implemented Interfaces:
- PosFunc
public class Elp82b
- extends java.lang.Object
- implements PosFunc
LUNAR SOLUTION ELP2000-82B
by Chapront-Touze M., Chapront J.
ftp://ftp.imcce.fr/pub/ephem/moon/elp82b
I (Johannes Gajdosik) have just taken the Fortran code and data
obtained from above and used it to create this piece of software.
I can neigther allow nor forbid the usage of ELP2000-82B.
The copyright notice below covers not the works of
Chapront-Touze M. and Chapront J., but just my work,
that is the compilation and rearrangement of
the Fortran code and data obtained from above
into the software supplied in this file.
Copyright (c) 2005 Johannes Gajdosik
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
My implementation of ELP2000-82B has the following modifications compared to
the original Fortran code:
1) fundamentally rearrange the series into optimized instructions
for fast calculation of the results
2) units are: julian day, AU
Field Summary |
(package private) static double |
a0_div_ath_times_au
|
(package private) static double[] |
del
|
(package private) static java.util.List<java.lang.Double> |
elp82b_coefficients
|
(package private) static double[] |
elp82b_constants
|
(package private) static java.util.List<java.lang.Short> |
elp82b_instructions
|
(package private) static int[] |
elp82b_max_lambda_factor
|
(package private) static double[] |
p
|
(package private) static double |
p1
|
(package private) static double |
p2
|
(package private) static double |
p3
|
(package private) static double |
p4
|
(package private) static double |
p5
|
(package private) static double |
q1
|
(package private) static double |
q2
|
(package private) static double |
q3
|
(package private) static double |
q4
|
(package private) static double |
q5
|
(package private) static double[] |
w
|
(package private) static double[] |
zeta
|
Method Summary |
void |
compute(double jd,
javax.vecmath.Tuple3d pos)
|
void |
getElp82bCoor(double jd,
javax.vecmath.Tuple3d xyz)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
elp82b_max_lambda_factor
static final int[] elp82b_max_lambda_factor
elp82b_constants
static final double[] elp82b_constants
elp82b_coefficients
static final java.util.List<java.lang.Double> elp82b_coefficients
elp82b_instructions
static final java.util.List<java.lang.Short> elp82b_instructions
del
static final double[] del
zeta
static final double[] zeta
p
static final double[] p
w
static final double[] w
a0_div_ath_times_au
static final double a0_div_ath_times_au
- See Also:
- Constant Field Values
p1
static final double p1
- See Also:
- Constant Field Values
p2
static final double p2
- See Also:
- Constant Field Values
p3
static final double p3
- See Also:
- Constant Field Values
p4
static final double p4
- See Also:
- Constant Field Values
p5
static final double p5
- See Also:
- Constant Field Values
q1
static final double q1
- See Also:
- Constant Field Values
q2
static final double q2
- See Also:
- Constant Field Values
q3
static final double q3
- See Also:
- Constant Field Values
q4
static final double q4
- See Also:
- Constant Field Values
q5
static final double q5
- See Also:
- Constant Field Values
Elp82b
public Elp82b()
compute
public void compute(double jd,
javax.vecmath.Tuple3d pos)
- Specified by:
compute
in interface PosFunc
pos
- TODO: Fred this should be a point
getElp82bCoor
public void getElp82bCoor(double jd,
javax.vecmath.Tuple3d xyz)