Computes the geocentric position of a solar system body, as antedated for light-time.

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

Syntax

C#
public short LightTime(
	double JdTdb,
	Object3 SsObject,
	double[] PosObs,
	double TLight0,
	Accuracy Accuracy,
	ref double[] Pos,
	ref double TLight
)
Visual Basic
Public Function LightTime ( _
	JdTdb As Double, _
	SsObject As Object3, _
	PosObs As Double(), _
	TLight0 As Double, _
	Accuracy As Accuracy, _
	ByRef Pos As Double(), _
	ByRef TLight As Double _
) As Short
Visual C++
public:
virtual short LightTime(
	double JdTdb, 
	Object3 SsObject, 
	array<double>^ PosObs, 
	double TLight0, 
	Accuracy Accuracy, 
	array<double>^% Pos, 
	double% TLight
) sealed

Parameters

JdTdb
Type: System..::..Double
TDB Julian date of observation.
SsObject
Type: ASCOM.Astrometry..::..Object3
Structure containing the designation for thesolar system body
PosObs
Type: array<System..::..Double>[]()[][]
Position vector of observer (or the geocenter), with respect to origin at solar system barycenter, referred to ICRS axes, components in AU.
TLight0
Type: System..::..Double
First approximation to light-time, in days (can be set to 0.0 if unknown)
Accuracy
Type: ASCOM.Astrometry..::..Accuracy
Selection for accuracy
Pos
Type: array<System..::..Double>[]()[][]%
Position vector of body, with respect to origin at observer (or the geocenter), referred to ICRS axes, components in AU.
TLight
Type: System..::..Double%
Final light-time, in days.

Return Value

    0 ... everything OK
    1 ... algorithm failed to converge after 10 iterations
 > 10 ... error is 10 + error from function 'SolarSystem'.
 

Remarks