tkrajina / srtm.py

Geo elevation data parser for "The Shuttle Radar Topography Mission" data
Apache License 2.0
240 stars 57 forks source link

for some coords no height is returned #49

Open berndhahnebach opened 3 years ago

berndhahnebach commented 3 years ago

try the following ...

from sidepackages_geodata import srtm as srtmtkrjina
eledata = srtmtkrjina.get_data()
eledata.get_elevation(46.8, 8.0)
eledata.get_elevation(46.783, 8.003)
>>> eledata.get_elevation(46.8, 8.0)
1360
>>> eledata.get_elevation(46.783, 8.003)
>>> 
cshdde commented 2 years ago

Hi, I am pretty new to srtm, but I suspect it's not a problem with the srtm code but with the underlying srtm data (currently downloaded from srtm.kurviger.de): for the above (and many other) coordinates, the .hgt files contain value 32768 for void elevation value. This causes srtm to return 'None' height. There should be new data available in the mean time, which should

  1. have 1 arc resolution world-wide, and
  2. have many voids filled. No clue how to access these improved data though. Any suggestions?