Update egm96.gr.hdr file in otb_data repository

In the documentation of the Superimpose application suggest the use of the Geoid File available in otb_data repository however this data is not updated and in his current state not allow to use the geoid file with OTB 8.0 or superior

In the actual egm96.grd.hdr file we have the follow:

ENVI
samples = 1441
lines   = 721
bands   = 1
header offset = 24
file type = ENVI Standard
data type = 4
interleave = bsq
sensor type = Unknown
byte order = 1
wavelength units = Unknown

And in the lasted documentation the suggest to use egm96.grd.hdr file with the follow:

ENVI
samples = 1441
lines   = 721
bands   = 1
header offset = 24
file type = ENVI Standard
data type = 4
interleave = bsq
sensor type = Unknown
byte order = 1
wavelength units = Unknown
map info = {Geographic Lat/Lon, 1, 1,-0.125, 90.125, 0.25, 0.25,WGS-84}
coordinate system string = {GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]}
band names = {
Band 1}

Regards,
Juan

Hello Juan,
You are right, egm96.grd.hdr must contain projection information.
Your second example (with map info and CRS) is right and you can use it with OTB. You only need to put that file in the same directory as egm96.grd file.

We’ll fix the wrong file in OTB repository.

Best regards,

Yannick

1 Like

Dear @jsvinasco,

Thank you for your feedback!

The “otb_data” repository is not maintained anymore. The data has been moved to the main repository. The geoid file can now be found here, with the ‘hdr’ file. I will update the documentation to point to the correct location.

Sincerely.
Julien :slight_smile:

Dear @yannick , @julienosman

Thank you for the support.

Regards,
Juan