[GRASS-SVN] r59817 - grass-addons/grass6/raster/r.inund.fluv
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Apr 19 12:41:54 PDT 2014
Author: neteler
Date: 2014-04-19 12:41:54 -0700 (Sat, 19 Apr 2014)
New Revision: 59817
Modified:
grass-addons/grass6/raster/r.inund.fluv/r.inund.fluv
Log:
r.inund.fluv: if test fixed; minor msg cosmetics
Modified: grass-addons/grass6/raster/r.inund.fluv/r.inund.fluv
===================================================================
--- grass-addons/grass6/raster/r.inund.fluv/r.inund.fluv 2014-04-19 19:20:32 UTC (rev 59816)
+++ grass-addons/grass6/raster/r.inund.fluv/r.inund.fluv 2014-04-19 19:41:54 UTC (rev 59817)
@@ -117,20 +117,17 @@
#% required : no
#%end
-if [ -z "$GISBASE" ]
-then
- echo ""
- echo "You must be in GRASS GIS to run this program"
- echo ""
- exit 1
-fi
+if [ -z "$GISBASE" ] ; then
+ echo "You must be in GRASS GIS to run this program." >&2
+ exit 1
+fi
if [ "$1" != "@ARGS_PARSED@" ] ; then
exec g.parser "$0" "$@"
fi
-$GRASS_VERBOSE
-PROG=`basename $0`
+PROG=`basename "$0"`
+
#request control & test (only for imput map)
if [ -z "$GIS_OPT_DTM" ] ; then
g.message -e "ERROR: DTM not specified"
@@ -159,9 +156,9 @@
read a9 b9
exec 0<&6 6<&-
res=$b9
-if [ "$b9" -gt 5 ]
+if [ $b9 -gt 5 ]
then
- g.message -w "WARNING - the DTM resolution it'snt good for this application"
+ g.message -w "WARNING - the DTM resolution is not good for this application"
else
g.message "The DTM resolution is $res x $res meters"
fi
@@ -262,14 +259,14 @@
cd "$TMPDIR"
echo $res $deltax $deltay > parameter.txt
echo "'"region2.txt"'" "'"dtm2x2"'" "'"limiti_alveo_vect"'" "'"quote_100"'" > nomefile.txt
-g.message "Fortran code that automatically find bed river"
+g.message "Fortran code that automatically finds bed river"
./find_main_channel
rm nomefile.txt
rm parameter.txt
#TEST FORTRAN CODE RUN
if [ -z "limiti_alveo_vect" ]
then
- g.message -e "ERROR IN FORTRAN CODE - see fortran error message and try understand the problem"
+ g.message -e "ERROR IN FORTRAN CODE - see fortran error message and try to understand the problem"
exit 1
fi
cd
@@ -332,7 +329,7 @@
#TEST FORTRAN CODE RUN
if [ -z "inondazione_nuova.txt" ]
then
- g.message -e "ERROR IN FORTRAN CODE - see fortran error message and try understand the problem"
+ g.message -e "ERROR IN FORTRAN CODE - see fortran error message and try to understand the problem"
exit 1
fi
cd
@@ -357,7 +354,7 @@
#TEST FORTRAN CODE RUN
if [ -z "reticolo" ]
then
- g.message -e "ERROR IN FORTRAN CODE - see fortran error message and try understand the problem"
+ g.message -e "ERROR IN FORTRAN CODE - see fortran error message and try to understand the problem"
exit 1
fi
cd
@@ -422,7 +419,7 @@
#TEST FORTRAN CODE RUN
if [ -z "correzione" ]
then
- g.message -e "ERROR IN FORTRAN CODE - see fortran error message and try understand the problem"
+ g.message -e "ERROR IN FORTRAN CODE - see fortran error message and try to understand the problem"
exit 1
fi
cd
@@ -527,6 +524,4 @@
rm -r "$TMPDIR"
-
-
exit 0
More information about the grass-commit
mailing list