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

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

Syntax

C#
bool SetFromSite(
	Site site,
	double gast
)
Visual Basic
Function SetFromSite ( _
	site As Site, _
	gast As Double _
) As Boolean
Visual C++
bool SetFromSite(
	Site^ site, 
	double gast
)

Parameters

site
Type: ASCOM.Astrometry.NOVASCOM..::..Site
The Site object from which to initialize
gast
Type: System..::..Double
Greenwich Apparent Sidereal Time

Return Value

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).

See Also