[GRASS-CVS] markus: grass6/scripts/r.mask r.mask,1.10,1.11

grass at intevation.de grass at intevation.de
Sun Dec 2 11:47:13 EST 2007


Author: markus

Update of /grassrepository/grass6/scripts/r.mask
In directory doto:/tmp/cvs-serv15063

Modified Files:
	r.mask 
Log Message:
fix message position

Index: r.mask
===================================================================
RCS file: /grassrepository/grass6/scripts/r.mask/r.mask,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- r.mask	12 Nov 2007 17:51:14 -0000	1.10
+++ r.mask	2 Dec 2007 16:47:11 -0000	1.11
@@ -85,7 +85,6 @@
 
 	if [ "$GIS_FLAG_O" -eq 1 ]; then
 		echo "$GIS_OPT_MASKCATS = 1" | r.reclass input=$GIS_OPT_INPUT output=MASK --o
-		g.message "MASK created. All subsequent raster operations"
 	else 
 		# does map exist in CURRENT mapset?
 		eval `g.findfile element=cell file=MASK mapset=$MAPSET`
@@ -95,7 +94,6 @@
 		fi
 
 		echo "$GIS_OPT_MASKCATS = 1" | r.reclass input=$GIS_OPT_INPUT output=MASK
-		g.message "MASK created. All subsequent raster operations"
 	fi
 
         if [ "$GIS_FLAG_I" -eq 1 ]; then
@@ -103,6 +101,8 @@
 		r.mapcalc "MASK=if(isnull($TMP),1,null())"
 		g.remove --q rast=$TMP
 		g.message "Inverted MASK created. All subsequent raster operations"
+	else
+	  g.message "MASK created. All subsequent raster operations"
 	fi
         g.message "will be limited to MASK area"
         g.message "Removing or renaming raster file named MASK will"




More information about the grass-commit mailing list