[GRASS-SVN] r66562 - grass-addons/grass7/raster/r.stream.variables

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 21 13:19:16 PDT 2015


Author: elselvaje
Date: 2015-10-21 13:19:16 -0700 (Wed, 21 Oct 2015)
New Revision: 66562

Modified:
   grass-addons/grass7/raster/r.stream.variables/r.stream.variables
Log:
add r.mapcalc var = var 

Modified: grass-addons/grass7/raster/r.stream.variables/r.stream.variables
===================================================================
--- grass-addons/grass7/raster/r.stream.variables/r.stream.variables	2015-10-21 14:13:11 UTC (rev 66561)
+++ grass-addons/grass7/raster/r.stream.variables/r.stream.variables	2015-10-21 20:19:16 UTC (rev 66562)
@@ -379,6 +379,8 @@
 r.reclass input=grid_ID  output=${GIS_OPT_VARIABLE}_$1  rules=$GIS_OPT_FOLDER/blockfile/stat_${GIS_OPT_VARIABLE}_${1}.txt   --overwrite   --q
 # rm -f $GIS_OPT_FOLDER/blockfile/stat_${GIS_OPT_VARIABLE}_${1}.txt
 
+r.mapcalc "  ${GIS_OPT_VARIABLE}_$1  = ${GIS_OPT_VARIABLE}_$1 "  --o  
+
 r.out.gdal -c  input=${GIS_OPT_VARIABLE}_${1}  nodata=-9999  output=$GIS_OPT_OUT_FOLDER/${GIS_OPT_VARIABLE}_${1}.tif  type=Int32  -c  createopt="COMPRESS=LZW,ZLEVEL=9"  --o --q  2> /dev/null
 if test -f "$GIS_OPT_FOLDER/blockfile/${GIS_OPT_VARIABLE}_${1}.tif"; then echo "$GIS_OPT_FOLDER/blockfile/${GIS_OPT_VARIABLE}_${1}.tif has been created!";fi
 #echo "$GIS_OPT_OUT_FOLDER/blockfile/${GIS_OPT_VARIABLE}_${1}.tif has been created!"



More information about the grass-commit mailing list