Convert Latitude and Longitude to point in 3D space
I’ve reformatted the code that was previously mentioned here, but more importantly you have left out some of the equations mentioned in the link provided by Niklas R def LLHtoECEF(lat, lon, alt): # see http://www.mathworks.de/help/toolbox/aeroblks/llatoecefposition.html rad = np.float64(6378137.0) # Radius of the Earth (in meters) f = np.float64(1.0/298.257223563) # Flattening factor WGS84 Model cosLat = … Read more