Obtains the barycentric and heliocentric positions and velocities of the Earth from the solar system ephemeris.

Namespace: ASCOM.Astrometry.NOVAS
Assembly: ASCOM.Astrometry (in ASCOM.Astrometry.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
public short GetEarth(
	double tjd,
	ref BodyDescription earth,
	ref double tdb,
	ref double[] bary_earthp,
	ref double[] bary_earthv,
	ref double[] helio_earthp,
	ref double[] helio_earthv
)
Visual Basic
Public Function GetEarth ( _
	tjd As Double, _
	ByRef earth As BodyDescription, _
	ByRef tdb As Double, _
	ByRef bary_earthp As Double(), _
	ByRef bary_earthv As Double(), _
	ByRef helio_earthp As Double(), _
	ByRef helio_earthv As Double() _
) As Short
Visual C++
public:
virtual short GetEarth(
	double tjd, 
	BodyDescription% earth, 
	double% tdb, 
	array<double>^% bary_earthp, 
	array<double>^% bary_earthv, 
	array<double>^% helio_earthp, 
	array<double>^% helio_earthv
) sealed

Parameters

tjd
Type: System..::..Double
TT (or TDT) Julian date.
earth
Type: ASCOM.Astrometry..::..BodyDescription%
Structure containing the body designation for the Earth.
tdb
Type: System..::..Double%
OUT: TDB Julian date corresponding to 'tjd'.
bary_earthp
Type: array<System..::..Double>[]()[][]%
OUT: Barycentric position vector of Earth at 'tjd'; equatorial rectangular coordinates in AU referred to the mean equator and equinox of J2000.0.
bary_earthv
Type: array<System..::..Double>[]()[][]%
OUT: Barycentric velocity vector of Earth at 'tjd'; equatorial rectangular system referred to the mean equator and equinox of J2000.0, in AU/Day.
helio_earthp
Type: array<System..::..Double>[]()[][]%
OUT: Heliocentric position vector of Earth at 'tjd'; equatorial rectangular coordinates in AU referred to the mean equator and equinox of J2000.0.
helio_earthv
Type: array<System..::..Double>[]()[][]%
OUT: Heliocentric velocity vector of Earth at 'tjd'; equatorial rectangular system referred to the mean equator and equinox of J2000.0, in AU/Day.

Return Value

  0...Everything OK.
 >0...Error code from function 'solarsystem'.

Remarks