Opened 16 years ago

Closed 16 years ago

#152 closed defect (invalid)

r.what.colors: not working

Reported by: hamish Owned by: grass-dev@…
Priority: major Milestone: 6.4.0
Component: Default Version: svn-develbranch6
Keywords: Cc:
CPU: Unspecified Platform: Unspecified



AFAICT the example given in the r.what.colors help page isn't working:

grass64> g.region -d
grass64> r.what.color input=elevation.dem value=1500
1500: *
grass64> r.what.color input=fields value=4
4: 135:84:180



Change History (3)

comment:1 by epatton, 16 years ago

FWIW both examples work for me:

~/Projects/spearfish60/PERMANENT/WORK >r.what.color input=elevation.dem value=1500
1500: 223:127:31
~/Projects/spearfish60/PERMANENT/WORK >r.what.color input=fields value=4
4: 135:84:180

What kind of color table has been applied? What does $GISDBASE/colr/elevation.dem say?

~ Eric.

in reply to:  description comment:2 by glynn, 16 years ago

Summary: r.what.colors: not working with FP mapsr.what.colors: not working

Replying to hamish:

It works for me:

$ r.what.color input=elevation.dem value=1500
1500: 223:127:31
$ r.what.color input=fields value=4
4: 135:84:180

Also, neither of those maps are FP, and I don't have any problems with FP maps either:

$ r.colors elev.f rast=elevation.dem
Color table for <elev.f> set to elevation.dem
r.what.color input=elev.f value=1500
1500.000000: 223:127:31

So I've removed the "with FP" from the summary.

comment:3 by hamish, 16 years ago

Resolution: invalid
Status: newclosed

Eric> What kind of color table has been applied?

..... an invalid one ..... nevermind .....

closing bug.


Note: See TracTickets for help on using tickets.