<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Arial, sans-serif" size="2">
<div>Thanks, but It did not seem to work, or I have not tried what you suggested.</div>
<div>&nbsp;</div>
<div>The actual values are contained in the logarithmic, and that's fine. It is no problem converting the raster to non logarithmic with r.mapcalc, but it does not help me much. I cant use legend values from the non-logarithmic with the logarithmic raster since
the scaling will not be right. </div>
<div>&nbsp;</div>
<div>I have just used standard rules, but done some experiments with custom made without any luck.</div>
<div>&nbsp;</div>
<div>I edited the rules in colr/directory as you described. It certainly did something, but not the intended. And I have yet not managed to get de-logged values in the legend. Have tried a lot of things, but I don't really understand the logic in the colr-files.
</div>
<div>&nbsp;</div>
<div>Any more/other ideas?</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Regards,</div>
<div>&nbsp;</div>
<div>Martin</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><font face="Arial, sans-serif">-----Opprinnelig melding-----</font></div>
<div><font face="Arial, sans-serif">Fra: Hamish [<a href="mailto:hamish_b@yahoo.com"><font color="#0000FF"><u>mailto:hamish_b@yahoo.com</u></font></a>]</font></div>
<div><font face="Arial, sans-serif">Sendt: 29. september 2009 17:20</font></div>
<div><font face="Arial, sans-serif">Til: grass-user@lists.osgeo.org; Martin Album Ytre-Eide</font></div>
<div><font face="Arial, sans-serif">Emne: Re: [GRASS-user] Raster legend</font></div>
<div><font face="Arial, sans-serif">&nbsp;</font></div>
<div><font face="Arial, sans-serif">Martin Album Ytre-Eide wrote:</font></div>
<div><font face="Arial, sans-serif">&gt; I am displaying a raster where the values are logarithmic and that is</font></div>
<div><font face="Arial, sans-serif">&gt; fine. The d.legend gives me a nice legend, but I would like to convert</font></div>
<div><font face="Arial, sans-serif">&gt; the values in the legend to non logarithmic values (keeping the raster</font></div>
<div><font face="Arial, sans-serif">&gt; as it is). I can't find a way to do this in d.legend or r.colors.</font></div>
<div><font face="Arial, sans-serif">&gt;</font></div>
<div><font face="Arial, sans-serif">&gt; How is this done?</font></div>
<div><font face="Arial, sans-serif">&nbsp;</font></div>
<div><font face="Arial, sans-serif">Are the actual values contained in the logarithmic? eg convert back to normal with r.mapcalc pow(e, MAP) or pow(10, MAP)?</font></div>
<div><font face="Arial, sans-serif">&nbsp;</font></div>
<div><font face="Arial, sans-serif">are the rules custom made?</font></div>
<div><font face="Arial, sans-serif">does 'd.legend use=' help?</font></div>
<div><font face="Arial, sans-serif">&nbsp;</font></div>
<div><font face="Arial, sans-serif">note the legend used does not have to match the raster it shows on, you could do a trick where you make a list of the values you want on the legend, calculate that their logs are, use r.what.color to find the matching color,
then use those colors with the de-logged values.</font></div>
<div><font face="Arial, sans-serif">&nbsp;</font></div>
<div><font face="Arial, sans-serif">probably easier actually to copy the internal rules file in the MAPSET's colr/ directory, convert the first column and range to de- logged version, perhaps run r.mapcalc to make a delogged version of the map (or any, just
to get the range), copy in the adjusted colr/ file into the colr/ dir, then use that map for the legend.</font></div>
<div><font face="Arial, sans-serif">&nbsp;</font></div>
<div><font face="Arial, sans-serif">&nbsp;</font></div>
<div><font face="Arial, sans-serif">&nbsp;</font></div>
<div><font face="Arial, sans-serif">does that make some sense?</font></div>
<div><font face="Arial, sans-serif">&nbsp;</font></div>
<div><font face="Arial, sans-serif">Hamish</font></div>
<div><font face="Arial, sans-serif">&nbsp;</font></div>
<div><font face="Arial, sans-serif">&nbsp;</font></div>
<div><font face="Arial, sans-serif">&nbsp;</font></div>
<div><font face="Arial, sans-serif">&nbsp;</font></div>
<div><font face="Arial, sans-serif">&nbsp;</font></div>
<div><font face="Arial, sans-serif">&nbsp;</font></div>
<div><font face="Arial, sans-serif">&nbsp;</font></div>
<div><font face="Arial, sans-serif">&nbsp;</font></div>
<div><font face="Arial, sans-serif">&nbsp;</font></div>
<div><font face="Arial, sans-serif">&nbsp;</font></div>
</font>
</body>
</html>