[GRASSLIST:3144] Re: assigning colors

David Mahoney mahoneyd at unbc.ca
Mon Apr 12 10:22:39 EDT 2004


An easier way is use the 'rules' option of r.colors.

David





On Mon, 12 Apr 2004, Nivedita Candade wrote:

> You will have to assign colors in a file that has the same name as your 
> raster. In the 'COLR' directory (which you will find in your parent 
> directory), create this file (w/ the same name as the raster) and assign 
> colors  w/ the RGB values.
> eg:
> 
> 1:0:0:255 (this would be blue)
> 2:255:0:0  (red)
> 3:0:255:0   (green) 
> and so on for the 8 categories. Hope it works !
> 
> Good luck !
> 
> Quoting shilpa s <s_shilpa_15 at yahoo.com>:
> 
> > Hello,
> > I have eight categories in the training data.  After I
> > do the supervised classification, the color allocated
> > is random.  I need to assign specific colors to
> > specific categories, i.e., blue to water, red to
> > forest and so on.  How can I do it?
> > 
> > regards,
> > shilpa
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Tax Center - File online by April 15th
> > http://taxes.yahoo.com/filing.html
> > 
> > 
> 

-- 
Dave




More information about the grass-user mailing list