Computes the astrometric place of a planet or other solar system body.

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

Syntax

C#
public short AstroPlanet(
	double tjd,
	ref BodyDescription ss_object,
	ref BodyDescription earth,
	ref double ra,
	ref double dec,
	ref double dis
)
Visual Basic
Public Function AstroPlanet ( _
	tjd As Double, _
	ByRef ss_object As BodyDescription, _
	ByRef earth As BodyDescription, _
	ByRef ra As Double, _
	ByRef dec As Double, _
	ByRef dis As Double _
) As Short
Visual C++
public:
virtual short AstroPlanet(
	double tjd, 
	BodyDescription% ss_object, 
	BodyDescription% earth, 
	double% ra, 
	double% dec, 
	double% dis
) sealed

Parameters

tjd
Type: System..::..Double
TT (or TDT) Julian date for calculation.
ss_object
Type: ASCOM.Astrometry..::..BodyDescription%
Pointer to structure containing the body designation for the solar system body
earth
Type: ASCOM.Astrometry..::..BodyDescription%
Pointer to structure containing the body designation for the Earth
ra
Type: System..::..Double%
OUT: Astrometric right ascension in hours, referred to mean equator and equinox of J2000.
dec
Type: System..::..Double%
OUT: Astrometric declination in degrees, referred to mean equator and equinox of J2000.
dis
Type: System..::..Double%
OUT: True distance from Earth to planet in AU.

Return Value

  0...Everything OK.
 >0...See error description in function 'ephemeris'.

Remarks

Note: This function only supports Earth, which is a consequence of the implementation used. Please use the NOVAS3.1 or later classes in applications that require planetary or moon ephemeredes as these classes can access the JPL 421 planetary ephemeris data provided as part of the ASCOM distribution.

See Also