PositionVectorSetFromSite Method

Initialize the PositionVector from a Site object and Greenwich apparent sidereal time.

Definition

Namespace: ASCOM.Tools.NovasCom
Assembly: ASCOM.AstrometryTools (in ASCOM.AstrometryTools.dll) Version: 2.2.1+77356f79b05b579f6d860a4edd5934fda9fe29e4
C#
public bool SetFromSite(
	Site site,
	double gast
)

Parameters

site  Site
The Site object from which to initialize
gast  Double
Greenwich Apparent Sidereal Time

Return Value

Boolean
True if successful or throws an exception

Remarks

The GAST parameter must be for Greenwich, not local. The time is rotated through the site longitude. See SetFromSiteJD() for an equivalent method that takes UTC Julian Date and Delta-T (eliminating the need for calculating hyper-accurate GAST yourself).

Version Information

.NET Standard

Supported in: 2.0

See Also