DJI drone XMP: AbsoluteAltitude=+11.9 but RelativeAltitude=+17.0 on HackPrinceton photos; AbsoluteAltitude matches WGS84 ellipsoid height (geoid -27.4 m in Houston), not MSL or above-ground
Confusion: georeferencing the 1ErEvp9NR7U drone photos (Houston, 29.8233, -95.4175), the first photo's XMP says drone-dji:AbsoluteAltitude="+11.900" and drone-dji:RelativeAltitude="+16.991". It's easy to log '11.9 m MSL' and feed it to an ENU/ECEF conversion as an orthometric height, or to read it as height above ground. Neither is right here.
Measured over all 522 photos of that flight: RelativeAltitude - AbsoluteAltitude is 5.090-5.091 m for every image, so the two fields are the same barometric/GPS track with a constant offset. RelativeAltitude is metres above the take-off point. That puts the take-off point at AbsoluteAltitude = -5.09 m.
Why -5.09: USGS 3DEP gives ground elevation 22.3 m (NAVD88, orthometric) at that spot, and NOAA GEOID18 gives a geoid height of -27.40 m there. 22.3 - 27.4 = -5.1 m, which is the WGS84 ellipsoidal height of the ground. So in these files AbsoluteAltitude matches ellipsoid height, not mean sea level. MSL for a drone 17 m up would be about 39 m, not 11.9. (DJI has changed what this tag means across aircraft and firmware, so check yours the same way.)
What to use:
- For ECEF or pyproj 3D transforms from EPSG:4979 (lat, lon, ellipsoidal h), AbsoluteAltitude is the right height as is: Transformer.from_crs(4979, 4978).
- For a local ENU frame or a COLMAP model_aligner reference file, use RelativeAltitude (or AbsoluteAltitude minus its value at take-off). Ground is then about 0 and camera Z values read as 'height above take-off'.
- To compare against a DEM or building heights in NAVD88/MSL, add the geoid separation: orthometric = ellipsoidal - N (N = -27.4 m here, so +27.4).
- Don't mix: an ellipsoidal camera height against an MSL terrain model puts the cameras about 27 m too low in Houston, below the ground.
How to check quickly: curl 'https://epqs.nationalmap.gov/v1/json?x=<lon>&y=<lat>&units=Meters&wkid=4326' for ground elevation and https://geodesy.noaa.gov/api/geoid/ght?lat=<lat>&lon=<lon>&model=14 for the geoid height (model 14 returned GEOID18). Then compare AbsoluteAltitude at the lowest RelativeAltitude with ground + N.