Retrieves the position and velocity of a body from a fundamental ephemeris.

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

Syntax

C#
public short Ephemeris(
	double tjd,
	ref BodyDescription cel_obj,
	Origin origin,
	ref double[] pos,
	ref double[] vel
)
Visual Basic
Public Function Ephemeris ( _
	tjd As Double, _
	ByRef cel_obj As BodyDescription, _
	origin As Origin, _
	ByRef pos As Double(), _
	ByRef vel As Double() _
) As Short
Visual C++
public:
virtual short Ephemeris(
	double tjd, 
	BodyDescription% cel_obj, 
	Origin origin, 
	array<double>^% pos, 
	array<double>^% vel
) sealed

Parameters

tjd
Type: System..::..Double
TDB Julian date.
cel_obj
Type: ASCOM.Astrometry..::..BodyDescription%
Structure containing the designation of the body of interest
origin
Type: ASCOM.Astrometry..::..Origin
Origin point (solar system barycentre or centre of mass of the Sun
pos
Type: array<System..::..Double>[]()[][]%
OUT: Position vector of 'body' at tjd; equatorial rectangular coordinates in AU referred to the mean equator and equinox of J2000.0.
vel
Type: array<System..::..Double>[]()[][]%
OUT: Velocity vector of 'body' at tjd; equatorial rectangular system referred to the mean equator and equinox of J2000.0, in AU/Day.

Return Value

 0    ... Everything OK.
 1    ... Invalid value of 'origin'.
 2    ... Invalid value of 'type' in 'cel_obj'.
 3    ... Unable to allocate memory.
 10+n ... where n is the error code from 'solarsystem'.
 20+n ... where n is the error code from 'readeph'.

Remarks