Class ChebyshevEphemeris

java.lang.Object
gaiasky.util.coord.AbstractOrbitCoordinates
gaiasky.util.coord.chebyshev.ChebyshevEphemeris
All Implemented Interfaces:
IBodyCoordinates

public class ChebyshevEphemeris extends AbstractOrbitCoordinates
This class provides coordinates for a single body. It is initialized with the Chebyshev data file for that body.
  • Field Details

  • Constructor Details

    • ChebyshevEphemeris

      public ChebyshevEphemeris()
  • Method Details

    • setDataFile

      public void setDataFile(String dataFile)
    • initialize

      public boolean initialize()
    • position

      public Vector3b position(Instant date, Vector3b out)
      Returns a vector with the ephemeris at the given date. The position is given in internal units.
      Parameters:
      date - The date as a Java Instant.
      out - The vector to return the result.
      Returns:
      The out vector if we could retrieve the position, or null if the time is out of range for the current data file.
    • getEclipticSphericalCoordinates

      public Vector3b getEclipticSphericalCoordinates(Instant instant, Vector3b out)
      Description copied from interface: IBodyCoordinates
      Returns the ecliptic coordinates of the body in the out vector for the given date.
      Parameters:
      instant - The instant.
      out - The out vector with the ecliptic coordinates in internal units.
      Returns:
      The out vector for chaining.
    • getEclipticCartesianCoordinates

      public Vector3b getEclipticCartesianCoordinates(Instant instant, Vector3b out)
      Description copied from interface: IBodyCoordinates
      Gets ecliptic cartesian coordinates for the given date.
      Parameters:
      instant - The instant.
      out - The out vector where the ecliptic cartesian coordinates will be.
      Returns:
      The out vector for chaining, or null if the date is out of range, in case of non-elliptical orbits such as Gaia.
    • getEquatorialCartesianCoordinates

      public Vector3b getEquatorialCartesianCoordinates(Instant instant, Vector3b out)
      Description copied from interface: IBodyCoordinates
      Gets equatorial cartesian coordinates for the given date.
      Parameters:
      instant - The instant.
      out - The out vector where the equatorial cartesian coordinates will be.
      Returns:
      The out vector for chaining, or null if the date is out of range, in case of non-elliptical orbits such as Gaia.