SofaGc2gde Method

Geocentric to geodetic coordinates (given ellipsoid).

Definition

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

Parameters

a  Double
Equatorial radius (meters).
f  Double
Flattening.
xyz  Double
Geocentric Cartesian coordinates (meters, length 3).
elong  Double
Returned longitude (east positive, radians).
phi  Double
Returned geodetic latitude (radians).
height  Double
Returned height above ellipsoid (meters).

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