I am trying iterate through the data(elevation) from .hgt file. I have attached the codes which i used to get the elevation from the file.
from gmalthgtparser import HgtParser hgt_file='N09E076.hgt' with HgtParser(hgt_file) as parser: alt = parser.get_elevation((9.666673719181665,76.30757542014408)) print(alt)
The output of the above code will be : (1200, 1108, 7)
So here the input is given by the user with exact longitude and latitude. I want it to iterate through all the coordinates under some range and print each coordinates elevation and it should be saved as an excel file.