[GRASSLIST:73] Re: d.rgb question
Markus Neteler
neteler at itc.it
Sat May 17 13:45:57 EDT 2003
On Fri, May 16, 2003 at 11:03:21PM +0100, Glynn Clements wrote:
>
> Kirk R. Wythers wrote:
>
> > > You need to set the colors to grey scale for the three maps test.1,
> > > test.2 and test3.
> > >
> > > ie. r.colors map=test.1 golor=gray
> > > etc
>
> Actually, you should use color=rules, e.g.
>
> GRASS:~ > r.colors map=test.1 color=rules
> Enter rules, "end" when done, "help" if you need it.
> Data range is 0 to 255
> > 0 black
> > 255 white
> > end
> Color table for [test.1] set to rules
>
> This will ensure that 0 is black and 255 is white.
>
> Using color=gray will map the lowest existing category to black and
> the highest existing category to white; if the map doesn't use the
> entire 0-255 range, you will get the wrong result.
>
Right - sorry for the r.colors mistake in my previous mail.
The updated r.in.gdal applies above suggested fixed color table.
Markus Neteler
More information about the grass-user
mailing list