I have a CSV export from a flight from FlightRadar, where the altitude is included. I want to use this CSV with Cesium. Right now, the ground altitude in the file is always 0, which won't work properly with Cesium since then the altitude will be under the ground. Hence I need to take two things into account: the WGS84 ellipsoid en the elevation. I use the following code to convert from feet to meters ellipsoid: from pyproj import Transformer from pygeodesy import ellipsoidalVincenty as ev def feet_msl_to_meters_ellipsoid(lat, lon, height_ft_msl): height_m_msl = height_ft_msl * 0.3048 point = ev.LatLon(lat, lon) geoid_height = point.height # Default EGM96 height_ellipsoid = height_m_msl + geoid_height return height_ellipsoid However, the some of the points still end up below the ground, hence I think it has something to do with the elevation. Does someone know how to take the ground elevation into account using the coordinates? Or is there something else going on? Continue reading...