[GRASS-SVN] r69859 - grass/trunk/scripts/r.in.aster
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Nov 21 07:51:28 PST 2016
Author: mlennert
Date: 2016-11-21 07:51:28 -0800 (Mon, 21 Nov 2016)
New Revision: 69859
Modified:
grass/trunk/scripts/r.in.aster/r.in.aster.py
Log:
r.in.aster: pass output prefix to import function (fixes #3097: r.in.aster does not work)
Modified: grass/trunk/scripts/r.in.aster/r.in.aster.py
===================================================================
--- grass/trunk/scripts/r.in.aster/r.in.aster.py 2016-11-21 13:34:52 UTC (rev 69858)
+++ grass/trunk/scripts/r.in.aster/r.in.aster.py 2016-11-21 15:51:28 UTC (rev 69859)
@@ -126,12 +126,12 @@
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 ..."))
@@ -141,7 +141,7 @@
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 ..."))
More information about the grass-commit
mailing list