3
############################################################################
5
# MODULE: r.colors.rules for GRASS 5.7
6
# AUTHOR(S): Michael Barton
7
# PURPOSE: Permit use of rules in r.recode from GRASS 5.7
8
# COPYRIGHT: (C) 2004 by the GRASS Development Team
10
# This program is free software under the GNU General Public
11
# License (>=v2). Read the file COPYING that comes with GRASS
14
#############################################################################
18
#% description: r.recode.rules - Use rules to recode categories in raster map
23
#% gisprompt: old,cell,raster
24
#% description: Name of raster map to recode
30
#% gisprompt: old,cell,raster
31
#% description: Name of recoded raster map
34
if [ -z "$GISBASE" ] ; then
35
echo "You must be in GRASS GIS to run this program."
39
if [ "$1" != "@ARGS_PARSED@" ] ; then
40
exec g.parser "$0" "$@"
43
exec "$GISBASE/etc/grass-xterm-wrapper" -e "$GISBASE/etc/grass-run.sh" r.recode "input=$GIS_OPT_INPUT" "output=$GIS_OPT_OUTPUT"