I have TanDEM-x data and according to the documentation:
"The elevation values represent the ellipsoidal heights relative to the WGS84 ellipsoid in the WGS84-G1150 datum."
I would like to convert this to EGM2008 but I cannot find the right starting EPSG code for the WGS84-G1150 datum. I have tried the following:
gdalwarp -s_srs EPSG:7661 -t_srs EPSG:6893 TDM1_DEM__04_N04E006_DEM.tif TDM1_DEM__04_N04E006_DEM_EGM08.tif
While this runs and produces an output the elevation pixel values have not changed and so it has not done the datum conversion.
I have also tried:
gdalwarp -srcnodata -32767 -dstnodata -32767 -of GTiff -co COMPRESS=LZW -s_srs "+proj=longlat +datum=WGS84 +no_def" -t_srs "+proj=longlat +datum=WGS84 +no_defs +geoidgrids=egm2008.gtx" TDM1_DEM__04_N04E006_DEM.tif TDM1_DEM__04_N04E006_DEM_EGM08.tif
but this also does not do the datum conversion.
Does anyone know how to do this conversion in gdal or python?