What is the formula to convert Lat, Lon, Height to ECEF?
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.
Thanks
Jorge
Thanks
Jorge
Comments
http://www.satsleuth.com/GPS_ECEF_Datum_transformation.htm
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.
Check these
http://mathforum.org/library/drmath/view/51832.html
http://www.gmat.unsw.edu.au/snap/gps/clynch_pdfs/coordcvt.pdf
http://agamenon.tsc.uah.es/Asignaturas/it/rd/apuntes/RxControl_Manual.pdf
"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.
Cheers,
-Istvan
Thanks, the mathforum link explains a bit more of what the constants are, linked to in the second post, that I couldn't read.