Class VSOP87Binary

java.lang.Object
gaiasky.util.coord.vsop87.VSOP87Binary
All Implemented Interfaces:
IObserver

public class VSOP87Binary extends Object implements IObserver
  • Field Details

    • version

      public final String version
  • Constructor Details

    • VSOP87Binary

      public VSOP87Binary(String binaryFilePath) throws Exception
      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

      public VSOP87Binary(String binaryFilePath, double percentSkipped) throws Exception
      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

      public String 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

      public void notify(Event event, Object source, Object... data)
      Description copied from interface: IObserver
      Event notification call.
      Specified by:
      notify in interface IObserver
      Parameters:
      event - The event type.
      source - The source object, if any.
      data - The data associated with this event.