PositionVectorSetFromSite Method
Initialize the PositionVector from a Site object and Greenwich apparent sidereal time.
Namespace: ASCOM.Tools.NovasComAssembly: ASCOM.AstrometryTools (in ASCOM.AstrometryTools.dll) Version: 2.2.1+77356f79b05b579f6d860a4edd5934fda9fe29e4
public bool SetFromSite(
Site site,
double gast
)
Public Function SetFromSite (
site As Site,
gast As Double
) As Boolean
- site Site
- The Site object from which to initialize
- gast Double
- Greenwich Apparent Sidereal Time
BooleanTrue if successful or throws an exception
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).
Supported in: 2.0