Opened 11 years ago

Closed 11 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

Description

Hi,

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

#spearfish
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

??

Hamish

Change History (3)

comment:1 Changed 11 years ago by epatton

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.

comment:2 in reply to:  description Changed 11 years ago by glynn

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 Changed 11 years ago by hamish

Resolution: invalid
Status: newclosed

Eric> What kind of color table has been applied?

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

closing bug.

Hamish

Note: See TracTickets for help on using tickets.