[GRASS-SVN] r59383 - grass-addons/grass6/raster/r.stack

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 26 15:22:35 PDT 2014


Author: hamish
Date: 2014-03-26 15:22:35 -0700 (Wed, 26 Mar 2014)
New Revision: 59383

Modified:
   grass-addons/grass6/raster/r.stack/r.stack
Log:
only read region, don't alter WIND file (#2230)

Modified: grass-addons/grass6/raster/r.stack/r.stack
===================================================================
--- grass-addons/grass6/raster/r.stack/r.stack	2014-03-26 19:55:04 UTC (rev 59382)
+++ grass-addons/grass6/raster/r.stack/r.stack	2014-03-26 22:22:35 UTC (rev 59383)
@@ -94,15 +94,15 @@
    exit 1
 fi
 
-PROJ_TYPE=`g.region -p | grep '^projection:' | cut -f2 -d" "`
+PROJ_TYPE=`g.region -pu | grep '^projection:' | cut -f2 -d" "`
 if [ "$PROJ_TYPE" -eq 3 ] ; then
    g.message -w "This module will not work in lat/lon locations if the stack exceeds geographic limits."
 fi
 
 
 # calc new bounds (south)
-eval `g.region -g`
-eval `g.region -eg`
+eval `g.region -gu`
+eval `g.region -egu`
 NEW_SOUTH=`echo "$s $ns_extent $NUM_INPUTS" | awk '{print $1 - ($2 * ($3 - 1))}'`
 
 # if s<-90, exit with error.



More information about the grass-commit mailing list