Browse Source

small fixes

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33989 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 16 years ago
parent
commit
c4464c33f8
1 changed files with 9 additions and 5 deletions
  1. 9 5
      testsuite/raster/rhemisphere.sh

+ 9 - 5
testsuite/raster/rhemisphere.sh

@@ -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 @@ BOXLENGTH=1000  # side length of test area
 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 @@ TMP="disk.$$"
 cleanup()
 {
  echo "Removing temporary map"
- g.remove rast=$TMP > /dev/null
+ g.remove --q rast=$TMP > /dev/null
 }
 
 ########################
@@ -40,6 +44,6 @@ HEIGHT="$RADIUS * sin($ALPHA)"
 
 r.mapcalc "hemisphere=$HEIGHT"
 cleanup
-
-echo "Now generate aspect + slope on <hemisphere>"
+g.message "Generated raster map <hemisphere>"
+#echo "Now generate aspect + slope on <hemisphere>"