<div dir="ltr">I think both commands are ok in this case.<div>Then you will save the raster as 8bit (r.out.gdal)</div><div><br></div><div>giovanni</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-01 11:54 GMT+02:00 Andrea Peri <span dir="ltr"><<a href="mailto:aperi2007@gmail.com" target="_blank">aperi2007@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I have an image 1-band with 16bit values,<br>
and need to convert to a 1-band with 8bit values.<br>
<br>
I like to have a linear conversion.<br>
To have this is right the use of the<br>
<br>
r.rescale command with to parameter "to=0,255"<br>
<br>
Or should instead use however the r.recode command even if the<br>
convertion is linear ?<br>
<br>
Thx,<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
-----------------<br>
Andrea Peri<br>
. . . . . . . . .<br>
qwerty àèìòù<br>
-----------------<br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a></font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Giovanni Allegri<br><a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a></div><div dir="ltr">Gis3W - <a href="http://gis3w.it" target="_blank">http://gis3w.it</a></div><div dir="ltr">Ikare - <a href="http://ikare.it" target="_blank">http://ikare.it</a><br><div>Twitter: <a href="https://twitter.com/_giohappy_" target="_blank">https://twitter.com/_giohappy_</a></div><div>blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a></div></div></div></div></div>
</div>