I'm trying to do the following:
Given a list of WGS84 latitude / longitude pairs in a text file (one pair per line), I'd like to compute the EGM96 and EGM2008 elevations corresponding to those points using GDAL. Unfortunately, it seems gdalwarp
is usually used to convert from one SRID to another, not the use case I'm looking for.
I'm sure there must be a way - I'd prefer to use GDAL for this task (as I've been recommended to use it), but I'm happy to consider other (command-line) alternatives to solving the same taks.
EDIT: MATLAB gives me the exact API I'm looking for
https://www.mathworks.com/help/aerotbx/ug/geoidheight.html
But I don't have access to MATLAB and it seems GDAL does have the same capabilities, if only I could find it!