View Full Version : What is the formula to convert Lat, Lon, Height to ECEF?
01-16-2012, 07:29 AM
What is the formula to convert Latitude, Longitude, Height to ECEF (Earth Centered Earth Fixed)? Not looking for any code, just the actual math I need to do to get the ECEF and back.
01-16-2012, 05:51 PM
Does this help?
01-17-2012, 12:12 AM
Not really, I can't read the values of a and b. The image is really blurry and small. Zooming doesn't help much.
N, the prime vertical curvature, is that the angle of curvature of the earth? I have read elsewhere that this is not constant due to earths shifting plates, etc... I need something more accurate. Trying to get within centimeters, not meters.
01-17-2012, 06:39 AM
"Trying to get within centimeters, not meters." you will need a number format with at least 14-15 digits of accuracy.
The accuracy of the input data you enter into the formulas should have about the same accuracy.
You have to take extra care near the poles, better to say near the axis of Earth at some of the formulas.
You are not interested in codes, but if you want to test yours with a bug free bulletproof one, look OBEX for
WGS84 INS computer.
01-18-2012, 08:30 AM
Thanks, the mathforum link explains a bit more of what the constants are, linked to in the second post, that I couldn't read.
01-18-2012, 09:10 AM
One more thing, I have been reading some documents on object avoidance from https://www.space-track.org , can't the same methods be applied to ground objects for avoidance?