Class ChebyshevEphemeris
java.lang.Object
gaiasky.util.coord.AbstractOrbitCoordinates
gaiasky.util.coord.chebyshev.ChebyshevEphemeris
- All Implemented Interfaces:
IBodyCoordinates
This class provides coordinates for a single body. It is initialized with the
Chebyshev data file for that body.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEclipticCartesianCoordinates(Instant instant, Vector3Q out) Gets ecliptic cartesian coordinates for the given date.getEclipticSphericalCoordinates(Instant instant, Vector3Q out) Returns the ecliptic coordinates of the body in the out vector for the given date.getEquatorialCartesianCoordinates(Instant instant, Vector3Q out) Gets equatorial cartesian coordinates for the given date.booleanReturns a vector with the ephemeris at the given date.voidsetDataFile(String dataFile) Methods inherited from class gaiasky.util.coord.AbstractOrbitCoordinates
copyParameters, doneLoading, getCopy, getData, getInstance, getInstances, getOrbitName, setCenter, setCenterkm, setCenterpc, setCentre, setOrbitname, setOrbitName, setPeriodic, setScaling, toString, updateOwner, updateReferences
-
Field Details
-
dataFile
-
data
-
-
Constructor Details
-
ChebyshevEphemeris
public ChebyshevEphemeris()
-
-
Method Details
-
setDataFile
-
initialize
public boolean initialize() -
position
Returns a vector with the ephemeris at the given date. The position is given in internal units.- Parameters:
date- The date as a JavaInstant.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
Description copied from interface:IBodyCoordinatesReturns 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
Description copied from interface:IBodyCoordinatesGets 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
Description copied from interface:IBodyCoordinatesGets 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.
-