SofaGd2gc Method

Geodetic to geocentric coordinates.

Definition

Namespace: ASCOM.Tools
Assembly: ASCOM.AstrometryTools (in ASCOM.AstrometryTools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static int Gd2gc(
	SofaReferenceEllipsoids n,
	double elong,
	double phi,
	double height,
	double[] xyz
)

Parameters

n  SofaReferenceEllipsoids
Reference ellipsoid identifier.
elong  Double
Longitude (east positive, radians).
phi  Double
Geodetic latitude (radians).
height  Double
Height above ellipsoid (meters).
xyz  Double
Returned geocentric Cartesian coordinates (meters, length 3).

Return Value

Int32
Status code: 0 = OK, <0 indicates an error condition.

Exceptions

ArgumentNullExceptionThrown if any array parameter is null.
ArgumentExceptionThrown if any array parameter has incorrect length.

Version Information

.NET Standard

Supported in: 2.0

See Also