Package gaiasky.util.coord.vsop87
Class VSOP87Binary
java.lang.Object
gaiasky.util.coord.vsop87.VSOP87Binary
- All Implemented Interfaces:
IObserver
-
Field Summary
-
Constructor Summary
ConstructorDescriptionVSOP87Binary
(String binaryFilePath) Creates a new instance of the VSOP87 binary with the given binary file.VSOP87Binary
(String binaryFilePath, double percentSkipped) Creates a new instance of the VSOP87 binary with the given binary file, and the given truncation. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
getEarth
(double t) double[]
getEmb
(double t) double[]
getJupiter
(double t) double[]
getMars
(double t) double[]
getMercury
(double t) static double[]
getMoon
(double[] earth, double[] emb) double[]
getNeptune
(double t) double[]
getSaturn
(double t) double[]
getSun
(double t) double[]
getUranus
(double t) double[]
getVenus
(double t) void
Event notification call.void
setPercentSkipped
(double percentSkipped)
-
Field Details
-
version
-
-
Constructor Details
-
VSOP87Binary
Creates a new instance of the VSOP87 binary with the given binary file. Uses all terms (no truncation).- Parameters:
binaryFilePath
- The path to the binary data file to use.- Throws:
Exception
- If the file can't be read.
-
VSOP87Binary
Creates a new instance of the VSOP87 binary with the given binary file, and the given truncation.- Parameters:
binaryFilePath
- The path to the binary data file to use.percentSkipped
- The truncation factor, as the percentage of terms to skip, in [0,1].- Throws:
Exception
- If the file can't be read.
-
-
Method Details
-
getFileName
-
setPercentSkipped
public void setPercentSkipped(double percentSkipped) -
getMoon
public static double[] getMoon(double[] earth, double[] emb) -
getEarth
public double[] getEarth(double t) -
getEmb
public double[] getEmb(double t) -
getJupiter
public double[] getJupiter(double t) -
getMars
public double[] getMars(double t) -
getMercury
public double[] getMercury(double t) -
getNeptune
public double[] getNeptune(double t) -
getSaturn
public double[] getSaturn(double t) -
getSun
public double[] getSun(double t) -
getUranus
public double[] getUranus(double t) -
getVenus
public double[] getVenus(double t) -
notify
Description copied from interface:IObserver
Event notification call.
-