Ticket #126 (new defect)

Opened 21 months ago

Last modified 14 months ago

The gtx files for EGM2008 and EGM96 are misplaced half a pixel.

Reported by: mikrit Owned by: warmerdam
Priority: minor Milestone:
Component: default Version: Development (trunk)
Keywords: Cc:

Description

Hello.

The gtx files for EGM2008 and EGM96 at  http://download.osgeo.org/proj/vdatum/ are misplaced.

The cause seems to be some typos in the python scripts that generate them. In egm96togtx.py, the line

ds_gtx.SetGeoTransform( (-180.25,0.25,0,90.125,0,-0.25) )

should have been

ds_gtx.SetGeoTransform( (-180.125,0.25,0,90.125,0,-0.25) )

As it is now, the egm96_15.gtx is georeferenced half a pixel too far west.

And in egm08togtx.py, the line

ds_gtx.SetGeoTransform( (-180 - ps_25,ps_25,0,90 + ps_25,0,-1 * ps_25) )

should have been

ds_gtx.SetGeoTransform( (-180 - 0.5*ps_25,ps_25,0,90 + 0.5*ps_25,0,-1 * ps_25) )

As it is now, the egm08_25.gtx is georeferenced half a pixel too far west and north.

I would also appreciate if the gtx files had one more column. That is, the column for 180 W should be repeated as a column for 180 E, since this would make it easier to interpolate the geoid height for a position slightly west of 180 E.

A useful test point is

145dE 13dN

since the geoid is unusually steep there (as these things go). The geoid heights at this point, according to some online geoid calculators, should be

Karney[a] NGA
EGM2008 45.7529 m (not available online)
EGM96 45.7806 m 45.78 m [b]
EGM94 45.3232 m 45.33 m [c]

[a]  http://geographiclib.sourceforge.net/cgi-bin/GeoidEval

[b]  http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm96/intpt.html

[c]  http://earth-info.nga.mil/GandG/wgs84/gravitymod/wgs84_180/intptW.html

When I used the egm08_25.gtx file in Carmenta Engine, I got the geoid height 44.925678 m instead. This is 0.83 m from the correct value, but it is only 3 mm from the Karney EGM2008 value for the position

145d1.25'E 12d58.75'N

which is half a pixel farther east and south. So, this confirms the hypothesis that egm08_25.gtx is displaced half a pixel towards west and north.

I haven't tried the egm96_15.gtx file, but I predict that its value for the test point 145dE 13dN is near 43.9941 m, since this is the EGM96 geoid height that Karney's calculator gives for the position 145d07.5'E 13dN, half a pixel east of the test point.

Best regards,

Mikael

Change History

Changed 18 months ago by mikrit

For the record, I'll paste Noel Zinn's comment from the mailing list:

"I can't address the registration issues with egm08_25.gtx that you raise, but egm08_25.gtx would have been derived from this file:

Und_min2.5x2.5_egm2008_isw=82_WGS84_TideFree

or its little endian equivalent.

I can confirm that the file I cite ranges from -90 to 90 in latitude (every 2.5 minutes, for 4321 "rows") and 0 to 359+57.5/60 in longitude (every 2.5 minutes, for 8640 "columns").

For what it's worth.

Noel"

(cited from  http://lists.maptools.org/pipermail/proj/2011-October/005941.html)

And by the way, I made a typo in the table: "EGM94" should have been "EGM84" (although NGA calls it "WGS84" on their online calculator site).

Changed 14 months ago by mikrit

See also

Charles Karney, "A couple of comments on computing geoid heights",  http://lists.maptools.org/pipermail/proj/2012-April/006273.html

Note: See TracTickets for help on using tickets.