Pretty new to python. I'm trying to run a loop to convert hgt files to sdf files using the following script:
import os
for root, dirs, files in os.walk("."):
for name in files:
os.system("srtm2sdf-win.exe *.hgt")
But the script only deals with the very first file. Here is the output:
Reading N10W110.hgt...
Writing 10x11x109x110.sdf... Done!
Reading N10W110.hgt...
Writing 10x11x109x110.sdf... Done!
Reading N10W110.hgt...
Writing 10x11x109x110.sdf... Done!