Click or drag to resize
NOVAS31PlanetEphemeris Method
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.2.0.2774)
Syntax
public short PlanetEphemeris(
	ref double[] Tjd,
	Target Target,
	Target Center,
	ref double[] Position,
	ref double[] Velocity
)

Parameters

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

Return Value

Type: 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.
See Also