Click or drag to resize
NOVAS2SolarSystem Method
Provides the position and velocity of the Earth

Namespace: ASCOM.Astrometry.NOVAS
Assembly: ASCOM.Astrometry (in ASCOM.Astrometry.dll) Version: 6.0.0.0 (6.3.0.2839)
Syntax
public static short SolarSystem(
	double tjd,
	Body body,
	Origin origin,
	ref double[] pos,
	ref double[] vel
)

Parameters

tjd
Type: SystemDouble
TDB Julian date.
body
Type: ASCOM.AstrometryBody
Body identification number.
 Set 'body' = 0 or 'body' = 1 or 'body' = 10 for the Sun.
 Set 'body' = 2 or 'body' = 3 for the Earth.
origin
Type: ASCOM.AstrometryOrigin
Required origin: solar system barycenter or center 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...Input Julian date ('tjd') out of range.
 2...Invalid value of 'body'.
Remarks
Provides the position and velocity of the Earth at epoch 'tjd' by evaluating a closed-form theory without reference to an external file. This function can also provide the position and velocity of the Sun.
See Also