SolarSystemBody(SolarSystemBodyOrbitDataSource, String) Constructor

Initializes a new instance of the SolarSystemBody class

Definition

Namespace: ASCOM.Tools
Assembly: ASCOM.AstrometryTools (in ASCOM.AstrometryTools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public SolarSystemBody(
	SolarSystemBodyOrbitDataSource orbitDataSource,
	string orbitString
)

Parameters

orbitDataSource  SolarSystemBodyOrbitDataSource
Organisation providing the orbit data and the data format specification
orbitString  String
Orbit data as a a string in the selected organisation's data format.

Remarks

The internal ephemeris object orbit parameters are populated by parsing the orbit string provided in this constructor. HelperExceptions are raised if fields specified in the selected data format cannot be read.

Exceptions

HelperExceptionIf the data elements defined by the organisation's format cannot be extracted from the supplied orbit data string.

Version Information

.NET Standard

Supported in: 2.0

See Also