srtm.py
srtm.py copied to clipboard
for some coords no height is returned
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)
>>>
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
- have 1 arc resolution world-wide, and
- have many voids filled. No clue how to access these improved data though. Any suggestions?