Kaynağa Gözat

r.in.srtm: support V3

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58773 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 11 yıl önce
ebeveyn
işleme
3b8ec5c377

+ 8 - 3
scripts/r.in.srtm/r.in.srtm.html

@@ -2,10 +2,14 @@
 
 <em>r.in.srtm</em> imports SRTM hgt files into GRASS.
 
-SRTM data sets can be downloaded from NASA at this FTP site (Version 1 and the
-improved Version 2):<br>
+SRTM Version 1 and improved Version 2 data sets can be downloaded from 
+NASA at this site:<br>
 <a href="http://dds.cr.usgs.gov/srtm/">http://dds.cr.usgs.gov/srtm/</a>
 
+<p>
+Gap-filled SRTM Version 3 data can be downloaded from USGS at this site:<br>
+<a href="http://e4ftl01.cr.usgs.gov/SRTM/SRTMGL3.003/2000.02.11/">http://e4ftl01.cr.usgs.gov/SRTM/SRTMGL3.003/2000.02.11/</a>
+
 <h2>NOTES</h2>
 
 SRTM tiles are of 1 degree by 1 degree size. The SRTM filename contains the
@@ -37,6 +41,7 @@ M. Neteler, 2005. <a href="http://grass.osgeo.org/newsletter/GRASSNews_vol3.pdf"
 <h2>AUTHORS</h2>
 
 Markus Neteler<br>
-Improved by W. Kyngesburye and H. Bowman
+Improved by W. Kyngesburye and H. Bowman<br>
+Update for SRTM V3 by Markus Metz
 
 <p><i>Last changed: $Date$</i>

+ 2 - 2
scripts/r.in.srtm/r.in.srtm.py

@@ -143,7 +143,7 @@ def main():
 	tileout = output
 
     zipfile = infile + ".hgt.zip"
-    hgtfile = infile + ".hgt"
+    hgtfile = os.path.join(fdir, tile[:7] + ".hgt")
     if os.path.isfile(zipfile):
         #### check if we have unzip
 	if not grass.find_program('unzip'):
@@ -178,7 +178,7 @@ def main():
     in_temp = True
 
     zipfile = tile + ".hgt.zip"
-    hgtfile = tile + ".hgt"
+    hgtfile = tile[:7] + ".hgt"
     bilfile = tile + ".bil"
 
     if is_zip: