3
############################################################################
5
# MODULE: r.recode.file for GRASS 6
6
# AUTHOR(S): Michael Barton
7
# PURPOSE: Permit use of rules in r.recode from GRASS 6
8
# COPYRIGHT: (C) 2003 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.file - Use ascii rules file to recode categories in raster map
19
#% keywords: raster, recode
24
#% gisprompt: old,cell,raster
25
#% description: Name of raster map to recode
31
#% gisprompt: old,cell,raster
32
#% description: Name of recoded raster map
38
#% gisprompt: old_file,file,file
39
#% description: ASCII file containing reclassification rules
43
if [ -z "$GISBASE" ] ; then
44
echo "You must be in GRASS GIS to run this program."
48
if [ "$1" != "@ARGS_PARSED@" ] ; then
49
exec g.parser "$0" "$@"
52
eval `exec r.recode input=$GIS_OPT_INPUT output=$GIS_OPT_OUTPUT < $GIS_OPT_RULES_FILE`