NovasEphemeris Method

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

Definition

Namespace: ASCOM.Tools.Novas31
Assembly: ASCOM.AstrometryTools (in ASCOM.AstrometryTools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static short Ephemeris(
	double[] Jd,
	Object3 CelObj,
	Origin Origin,
	Accuracy Accuracy,
	ref double[] Pos,
	ref double[] Vel
)

Parameters

Jd  Double
TDB Julian date split into two parts, where the sum jd[0] + jd[1] is the TDB Julian date.
CelObj  Object3
Structure containing the designation of the body of interest
Origin  Origin
Origin code; solar system barycenter = 0, center of mass of the Sun = 1.
Accuracy  Accuracy
Selection for accuracy
Pos  Double
Position vector of the body at 'JD'; equatorial rectangular coordinates in AU referred to the ICRS.
Vel  Double
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

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.

Version Information

.NET Standard

Supported in: 2.0

See Also