[GRASS-SVN] r33989 - grass/trunk/testsuite/raster

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 23 04:04:59 EDT 2008


Author: neteler
Date: 2008-10-23 04:04:59 -0400 (Thu, 23 Oct 2008)
New Revision: 33989

Modified:
   grass/trunk/testsuite/raster/rhemisphere.sh
Log:
small fixes

Modified: grass/trunk/testsuite/raster/rhemisphere.sh
===================================================================
--- grass/trunk/testsuite/raster/rhemisphere.sh	2008-10-23 08:04:27 UTC (rev 33988)
+++ grass/trunk/testsuite/raster/rhemisphere.sh	2008-10-23 08:04:59 UTC (rev 33989)
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 # Markus Neteler, 2006
+#               This program is free software under the GNU General Public
+#               License (>=v2). Read the file COPYING that comes with GRASS
+#               for details.
 # Test cases for 2D raster data
 # generate a hemisphere to test slope, aspect, curvatures
 
@@ -9,8 +12,9 @@
 RADIUS=500      # half BOXLENGTH
 
 ############
-if [ -z "$GISBASE" ] ; then
-    echo "You must be in GRASS GIS to run this program."
+
+if  [ -z "$GISBASE" ] ; then
+    echo "You must be in GRASS GIS to run this program." >&2
     exit 1
 fi
 
@@ -20,7 +24,7 @@
 cleanup()
 {
  echo "Removing temporary map"
- g.remove rast=$TMP > /dev/null
+ g.remove --q rast=$TMP > /dev/null
 }
 
 ########################
@@ -40,6 +44,6 @@
 
 r.mapcalc "hemisphere=$HEIGHT"
 cleanup
+g.message "Generated raster map <hemisphere>"
+#echo "Now generate aspect + slope on <hemisphere>"
 
-echo "Now generate aspect + slope on <hemisphere>"
-



More information about the grass-commit mailing list