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
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@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
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@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
On Mon, 12 Apr 2004, David Mahoney wrote:
An easier way is use the 'rules' option of r.colors.
As far as I can see there is no reason why i.smap should not copy the
colours from the training map onto the classified map. Has anybody else
thought about this before? I even thought of adding that functionality but
didn't get round to it and don't need to use i.smap very much anyway.
But it might be an idea.
Paul.