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.1.1.2619)

Syntax

C#
public short SolarSystem(
	double tjd,
	Body body,
	Origin origin,
	ref double[] pos,
	ref double[] vel
)
Visual Basic
Public Function SolarSystem ( _
	tjd As Double, _
	body As Body, _
	origin As Origin, _
	ByRef pos As Double(), _
	ByRef vel As Double() _
) As Short
Visual C++
public:
virtual short SolarSystem(
	double tjd, 
	Body body, 
	Origin origin, 
	array<double>^% pos, 
	array<double>^% vel
) sealed

Parameters

tjd
Type: System..::..Double
TDB Julian date.
body
Type: ASCOM.Astrometry..::..Body
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.Astrometry..::..Origin
Required origin: solar system barycenter or center of mass of the Sun
pos
Type: array<System..::..Double>[]()[][]%
OUT: Position vector of 'body' at 'tjd'; equatorial rectangular coordinates in AU referred to the mean equator and equinox of J2000.0.
vel
Type: array<System..::..Double>[]()[][]%
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

 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