Get position and velocity of target with respect to the centre object.

Namespace: ASCOM.Astrometry.NOVAS
Assembly: ASCOM.Astrometry (in ASCOM.Astrometry.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
public short PlanetEphemeris(
	ref double[] Tjd,
	Target Target,
	Target Center,
	ref double[] Position,
	ref double[] Velocity
)
Visual Basic
Public Function PlanetEphemeris ( _
	ByRef Tjd As Double(), _
	Target As Target, _
	Center As Target, _
	ByRef Position As Double(), _
	ByRef Velocity As Double() _
) As Short
Visual C++
public:
virtual short PlanetEphemeris(
	array<double>^% Tjd, 
	Target Target, 
	Target Center, 
	array<double>^% Position, 
	array<double>^% Velocity
) sealed

Parameters

Tjd
Type: array<System..::..Double>[]()[][]%
Two-element array containing the Julian date, which may be split any way (although the first element is usually the "integer" part, and the second element is the "fractional" part). Julian date is in the TDB or "T_eph" time scale.
Target
Type: ASCOM.Astrometry..::..Target
Target object
Center
Type: ASCOM.Astrometry..::..Target
Centre object
Position
Type: array<System..::..Double>[]()[][]%
Position vector array of target relative to center, measured in AU.
Velocity
Type: array<System..::..Double>[]()[][]%
Velocity vector array of target relative to center, measured in AU/day.

Return Value

 0   ...everything OK.
 1,2 ...error returned from State.

Remarks

This function accesses the JPL planetary ephemeris to give the position and velocity of the target object with respect to the center object.

See Also