Click or drag to resize

NOVAS31Ephemeris Method

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

Namespace:  ASCOM.Astrometry.NOVAS
Assembly:  ASCOM.Astrometry (in ASCOM.Astrometry.dll) Version: 3c9121baba46811fe6e53a58a05935662261416d
public short Ephemeris(
	double[] Jd,
	Object3 CelObj,
	Origin Origin,
	Accuracy Accuracy,
	ref double[] Pos,
	ref double[] Vel


Type: SystemDouble
TDB Julian date split into two parts, where the sum jd[0] + jd[1] is the TDB Julian date.
Type: ASCOM.AstrometryObject3
Structure containing the designation of the body of interest
Type: ASCOM.AstrometryOrigin
Origin code; solar system barycenter = 0, center of mass of the Sun = 1.
Type: ASCOM.AstrometryAccuracy
Slection for accuracy
Type: SystemDouble
Position vector of the body at 'Jd'; equatorial rectangular coordinates in AU referred to the ICRS.
Type: SystemDouble
Velocity vector of the body at 'Jd'; equatorial rectangular system referred to the mean equator and equinox of the ICRS, in AU/Day.

Return Value

Type: Int16
    0 ... Everything OK
    1 ... Invalid value of 'Origin'
    2 ... Invalid value of 'Type' in 'CelObj'; 
    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'.
It is recommended that the input structure 'cel_obj' be created using function 'MakeObject' in file novas.c.
See Also