NovasEphemeris Method
Retrieves the position and velocity of a solar system body from a fundamental ephemeris.
Namespace: ASCOM.Tools.Novas31Assembly: ASCOM.AstrometryTools (in ASCOM.AstrometryTools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
public static short Ephemeris(
double[] Jd,
Object3 CelObj,
Origin Origin,
Accuracy Accuracy,
ref double[] Pos,
ref double[] Vel
)
Public Shared Function Ephemeris (
Jd As Double(),
CelObj As Object3,
Origin As Origin,
Accuracy As Accuracy,
ByRef Pos As Double(),
ByRef Vel As Double()
) As Short
- 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.
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.
Supported in: 2.0