[GRASS-dev] [bug #5212] (grass) default color map range does not cover full data

Request Tracker grass-bugs at intevation.de
Mon Oct 16 05:11:21 EDT 2006


this bug's URL: http://intevation.de/rt/webrt?serial_num=5212
-------------------------------------------------------------------------

Subject: default color map range does not cover full data

Hi,

if you create a map as follows:

g.region n=50 s=0 w=0 e=50 res=1
r.mapcalc colorbug="x()*y()"
d.rast colorbug

you can see the top right cell has no color.

d.what.rast shows that the cell has data, (2450.25 = 49.5^2, center of top-
right cell)

r.colors colorbug rule=rainbow   # doesn't fix it (thankfully)

nor do any of the other dynamic color rules (same with color=).

using a fixed-rule color map like rule=terrain is ok.

The bug is not seen with CELL maps:
r.mapcalc colorbug="int(x()*y())"


tweak beyond-color-range check from >= to >, or add GRASS_EPSILON to range_max
before applying rules for FP maps?


Hamish


-------------------------------------------- Managed by Request Tracker




More information about the grass-dev mailing list