The recode rules are read from standard input (i.e., from the keyboard, redirected from a file, or piped through another program).
The program will be run non-interactively if the user specifies the name of the raster map layer to be recoded, the name of an output layer to hold recoded map, and (optionally) the name of a title for the output map. Rules are defined in one of these formats:
old_low:old_high:new_low:new_high old_low:old_high:new_val (i.e. new_high == new_low) *:old_val:new_val (interval [inf, old_val]) old_val:*:new_val (interval [old_val, inf])r.recode is loosely based on r.reclass and uses the GRASS reclass library to convert the rasters. It has routines for converting to every possible combination of raster (eg. int to double, double to float, etc). Standard floating point raster precision is float, with -d double precision will be written.
Value replacement
r.recode can be used to replace existing cell values by others. The
formatting is as described above. In following example the values 1, 2 and
3 are replaced by 1.1, 7.5 resp. 0.4:
r.recode in=oldmap out=newmap << EOF 1:1:1.1:1.1 2:2:7.5:7.5 3:3:0.4:0.4 EOF
Last changed: $Date$