[GRASS-dev] [GRASS GIS] #152: r.what.colors: not working with FP maps

#152: r.what.colors: not working with FP maps
---------------------+------------------------------------------------------
Reporter: hamish | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: default | Version: svn-develbranch6
Keywords: |
---------------------+------------------------------------------------------
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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/152&gt;
GRASS GIS <http://grass.osgeo.org>

#152: r.what.colors: not working with FP maps
----------------------+-----------------------------------------------------
  Reporter: hamish | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: default | Version: svn-develbranch6
Resolution: | Keywords:
----------------------+-----------------------------------------------------
Comment (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.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/152#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#152: r.what.colors: not working
----------------------+-----------------------------------------------------
  Reporter: hamish | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: default | Version: svn-develbranch6
Resolution: | Keywords:
----------------------+-----------------------------------------------------
Changes (by glynn):

  * summary: r.what.colors: not working with FP maps => r.what.colors: not
              working

Comment:

Replying to [ticket:152 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.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/152#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#152: r.what.colors: not working
----------------------+-----------------------------------------------------
  Reporter: hamish | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.0
Component: default | Version: svn-develbranch6
Resolution: invalid | Keywords:
----------------------+-----------------------------------------------------
Changes (by hamish):

  * status: new => closed
  * resolution: => invalid

Comment:

Eric> What kind of color table has been applied?

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

closing bug.

Hamish

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/152#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>