NovasGravDef Method

Computes the total gravitational deflection of light for the observed object due to the major gravitating bodies in the solar system.

Definition

Namespace: ASCOM.Tools.Novas31
Assembly: ASCOM.AstrometryTools (in ASCOM.AstrometryTools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static short GravDef(
	double JdTdb,
	EarthDeflection LocCode,
	Accuracy Accuracy,
	double[] Pos1,
	double[] PosObs,
	ref double[] Pos2
)

Parameters

JdTdb  Double
TDB Julian date of observation.
LocCode  EarthDeflection
Code for location of observer, determining whether the gravitational deflection due to the earth itself is applied.
Accuracy  Accuracy
Selection for accuracy
Pos1  Double
Position vector of observed object, with respect to origin at observer (or the geocenter), referred to ICRS axes, components in AU.
PosObs  Double
Position vector of observer (or the geocenter), with respect to origin at solar system barycenter, referred to ICRS axes, components in AU.
Pos2  Double
Position vector of observed object, with respect to origin at observer (or the geocenter), referred to ICRS axes, corrected for gravitational deflection, components in AU.

Return Value

Int16
               0 ... Everything OK
            < 30 ... Error from function 'Ephemeris'; 
            > 30 ... Error from function 'MakeObject'.
            

Remarks

This function valid for an observed body within the solar system as well as for a star.

If 'Accuracy' is set to zero (full accuracy), three bodies (Sun, Jupiter, and Saturn) are used in the calculation. If the reduced-accuracy option is set, only the Sun is used in the calculation. In both cases, if the observer is not at the geocenter, the deflection due to the Earth is included.

Version Information

.NET Standard

Supported in: 2.0

See Also