r.mapcalc question. Please help.

Rick Thompson rick at cast.uark.edu
Thu Apr 14 12:30:55 EDT 1994


Sorry, change the "end" to EOF. Rick
 > -----------------------------------
 > :
 > clear
 > echo ''
 > echo -n 'Enter the name for file1: '
 > read file1
 > echo -n 'Enter the name for file2: '
 > read file2
 > echo -n 'Enter the name for file3: '
 > read file3
 > echo ''
 > echo 'Enter an output file name: '
 > read output
 > r.mapcalc $output = 'if(file1,1,if(file2,2,if(file3,3)))'
 > r.reclass in=$output out=$output2 << EOF
 > 1 = 1 area from $file1 category 1 Roads
 > 2 = 2 area from $file2 category 2 Wells
 > 3 = 3 area from $file3 category 3 Houses
 > end



More information about the grass-user mailing list