[GRASSLIST:4941] r.colors 
    vaishnav 
    ces_grass at rediffmail.com
       
    Wed Nov 13 06:29:02 EST 2002
    
    
  
Hello everyone,
          I need to change the color table of a raster map layer
          in a non-interactive way.
          I tried r.colors map=mapname color=rules
                  > 34 100 45 234
                  > end
                  here,  34 --> catagory value
                        100 --> red_value
                         45 --> green_value
                        234 --> blue_value
   The output is a raster layer where category 34 has R=100 G=45 
B=234
and the rest of the catagories display white color R=255 G=255 
B=255.
   However, my intension is to get a raster layer where, category 
34
has R=100 G=45 B=234 and the rest have their original RGB 
values.
bye
    
    
More information about the grass-user
mailing list