浏览代码

r.in.aster: r.in.aster: pass output prefix to import function (fixes https://trac.osgeo.org/grass/ticket/3097, merge from trunk https://trac.osgeo.org/grass/changeset/69859)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@69934 15284696-431f-4ddb-bdfa-cd5b030d7da7
Moritz Lennert 8 年之前
父节点
当前提交
866380d94e
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      scripts/r.in.aster/r.in.aster.py

+ 3 - 3
scripts/r.in.aster/r.in.aster.py

@@ -126,12 +126,12 @@ def main():
             if band in allbands:
                 dataset = bands[proctype][band]
                 srcfile = "HDF4_EOS:EOS_SWATH:%s:%s" % (input, dataset)
-                import_aster(proj, srcfile, tempfile, band)
+                import_aster(proj, srcfile, tempfile, output, band)
             else:
                 grass.fatal(_('band %s is not an available Terra/ASTER band') % band)
     elif proctype == "DEM": 
         srcfile = input
-        import_aster(proj, srcfile, tempfile, "DEM")
+        import_aster(proj, srcfile, tempfile, output, "DEM")
 
     #cleanup
     grass.message(_("Cleaning up ..."))
@@ -140,7 +140,7 @@ def main():
 
     return
 
-def import_aster(proj, srcfile, tempfile, band):
+def import_aster(proj, srcfile, tempfile, output, band):
     #run gdalwarp with selected options (must be in $PATH)
     #to translate aster image to geotiff
     grass.message(_("Georeferencing aster image ..."))