Lunar elevation inconsistent between osgEarth and GDAL #2672
-
Hi all, after a long hiatus I'm getting back into using osgEarth to model the Moon. However, I'm finding an elevation inconsistency between osgEarth and GDAL, specifically I'm using a Lunar DEM from https://astrogeology.usgs.gov/search/map/moon_lro_lola_dem_118m (download link at top). Warning it's a large 8GB file. I tile the DEM using: (warning this takes a long time)
For testing you can limit the tiling area around (lat,lon) = (0,-90) with My corresponding
If I open this with In contrast, if I directly check the elevation of the DEM via So my question is, why the elevation difference? Is this an osgEarth 2.10.2 thing? Am I tiling the DEM wrong, or referencing it incorrectly from my earth file? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
FYI, the output of
|
Beta Was this translation helpful? Give feedback.
-
Hi Ravi, I suspect the discrepency you see is down to two things:
I tested this using GDAL 3.10. Run
The descaled value is what you want.
That Scale:0.5 is why you see 358 instead of 179. Running all this is osgEarth 3.7 with GDAL 3.10, the values line up very closely. A small (probably submeter) error is not unexpected due to the resampling of the heightfields for rendering. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Ravi, if you are working on Lunar stuff, I have done some work in this
field and would be happy to chat about it.
…On Mon, Dec 23, 2024 at 1:20 PM Glenn ***@***.***> wrote:
I see 4 pixels that touch exactly at the location (-90,0). Their values are
187.5 188.5
173.0 168.0
Yielding a bilinear interpolation = 179.25.
Perhaps QuickMap is applying a half-pixel shift to its sampling as one
might commonly do for imagery (Area v. Point), and landing directly on the
168.
Or perhaps the other 3 softwares are not applying it when they should.
Hard to say without ground truth!
—
Reply to this email directly, view it on GitHub
<#2672 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPFE3HS44QSSOTJYY32NTD2HBV7NAVCNFSM6AAAAABUCDLNZCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRVGMYTQOA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Hi Ravi,
I suspect the discrepency you see is down to two things:
I tested this using GDAL 3.10.
QGIS and Global Mapper report the correct value at Lon Lat (-90,0) = ~179m.
Run
gdallocationinfo
with bilinear interpolation:The descaled value is what you want.
gdalinfo
says: