Click or drag to resize
NOVAS2COMEphemeris Method
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.2.0.2774)
Syntax
public short Ephemeris(
	double tjd,
	ref BodyDescription cel_obj,
	Origin origin,
	ref double[] pos,
	ref double[] vel
)

Parameters

tjd
Type: SystemDouble
TDB Julian date.
cel_obj
Type: ASCOM.AstrometryBodyDescription
Structure containing the designation of the body of interest
origin
Type: ASCOM.AstrometryOrigin
Origin point (solar system barycentre or centre of mass of the Sun
pos
Type: SystemDouble
OUT: Position vector of 'body' at tjd; equatorial rectangular coordinates in AU referred to the mean equator and equinox of J2000.0.
vel
Type: SystemDouble
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

Type: Int16
 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