r.patch - found answer

Casey Claiborne mskc at io.com
Tue Mar 12 07:00:00 EST 1996



I figured out how to solve the problem.

I first used r.reclass to add another category to the list of categories
for the raster file. I then used r.support to actually update the 
categories (move the data associated with cat 1 to cat 2).

Thanks



=================== PROBLEM BELOW ========================




hello,

        I have two raster files that I am trying to patch together -
one has the following:

0
1 lakes

The second one has the following
0
1 city

For the lakes I define (R=0,G=0,B=255). For the city, I define
(R=128,G=128,B=128). When combining the two, the color of the 
lake is the same as the color of the city. I suspect it is 
because both raster files have "Category 1" defined. If this is
the problem, how can one redefine the category of the lake? For
example, make the file

0 
1
2 lake

and assign a value of (R=0,G=0,B=255) to the lake? Any help or
hints appreciated -

TIA







More information about the grass-user mailing list