NovasPlanetEphemeris Method

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

Definition

Namespace: ASCOM.Tools.Novas31
Assembly: ASCOM.AstrometryTools (in ASCOM.AstrometryTools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static short PlanetEphemeris(
	ref double[] Tjd,
	Target Target,
	Target Center,
	ref double[] Position,
	ref double[] Velocity
)

Parameters

Tjd  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  Target
Target object
Center  Target
Centre object
Position  Double
Position vector array of target relative to center, measured in AU.
Velocity  Double
Velocity vector array of target relative to center, measured in AU/day.

Return Value

Int16
            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.

Version Information

.NET Standard

Supported in: 2.0

See Also