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: 6.0.0.0 (6.2.0.2774)
Syntax
public short Ephemeris(
	double[] Jd,
	Object3 CelObj,
	Origin Origin,
	Accuracy Accuracy,
	ref double[] Pos,
	ref double[] Vel
)

Parameters

Jd
Type: SystemDouble
TDB Julian date split into two parts, where the sum jd[0] + jd[1] is the TDB Julian date.
CelObj
Type: ASCOM.AstrometryObject3
Structure containing the designation of the body of interest
Origin
Type: ASCOM.AstrometryOrigin
Origin code; solar system barycenter = 0, center of mass of the Sun = 1.
Accuracy
Type: ASCOM.AstrometryAccuracy
Slection for accuracy
Pos
Type: SystemDouble
Position vector of the body at 'Jd'; equatorial rectangular coordinates in AU referred to the ICRS.
Vel
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'.
 
Remarks
It is recommended that the input structure 'cel_obj' be created using function 'MakeObject' in file novas.c.
See Also