SV: SV: [GRASS-user] Raster legend

Martin Album Ytre-Eide Martin.Album.Ytre-Eide at nrpa.no
Fri Oct 9 07:46:05 EDT 2009


I am getting more confused by each time I try to edit the conf-files.

To be sure I get your suggestions right, I send you my conf-files.

The log.raster conf-file:
% 2.658010959625244140625 5.07434749603271484375
2.658010959625244140625:0:191:191 3.1412782669:0:255:0
3.1412782669:0:255:0 		  3.6245455742:255:255:0
3.6245455742:255:255:0 		  4.1078128815:255:127:0
4.1078128815:255:127:0 		  4.5910801888:191:127:63
4.5910801888:191:127:63 	  5.07434749603271484375:20

The non-log.raster conf-file
% 443.143585205078125 100252.296875
443.143585205078125:0:191:191 20404.9742431641:0:255:0
20404.9742431641:0:255:0      40366.804901123:255:255:0
40366.804901123:255:255:0     60328.635559082:255:127:0
60328.635559082:255:127:0     80290.466217041:191:127:63
80290.466217041:191:127:63    100252.2968751:20

The result from r.what.colors whit converted log-values.
447.000000: 0:191:191
1738.000000: 0:195:179
6607.000000: 0:210:133
25704.000000: 67:255:0
100000.000000: 23:22:21

I tried to apply this values in the non-log.raster conf-file as suggested by Nikos, but without any luck. The legend values still wants to be linear.

If you still want to help, you could maybe make me a conf-file in the way you think it should be.

Thanks for all the help so far.


________________________________________
Fra: Nikos Alexandris [nikos.alexandris at felis.uni-freiburg.de]
Sendt: 8. oktober 2009 13:30
Til: Martin Album Ytre-Eide
Kopi: grass-user at lists.osgeo.org
Emne: Re: SV: [GRASS-user] Raster legend

--%<---
On Thu, 2009-10-08 at 14:25 +0300, Nikos Alexandris wrote:
...
> why don't you draw the (non-log.raster) legend for it
> and try to match colors?
--%<---

Maybe it's not that clear, but (as Hamish, again, note) it's possible to
draw any legend on any raster map. So,

# draw log.rast
d.rast log.rast

# draw non-log.raster (after having found correspondence of log ~
non-log values and colors)
d.legend non-log-legend

Nikos



More information about the grass-user mailing list