[GRASS-user] How convert a 16 bit value monoband image to an 8bit value monoband image

G. Allegri giohappy at gmail.com
Wed Jul 1 03:07:01 PDT 2015


I think both commands are ok in this case.
Then you will save the raster as 8bit (r.out.gdal)

giovanni

2015-07-01 11:54 GMT+02:00 Andrea Peri <aperi2007 at gmail.com>:

> Hi,
> I have an image 1-band with 16bit values,
> and need to convert to a 1-band with 8bit values.
>
> I like to have a linear conversion.
> To have this is right the use of the
>
> r.rescale command with to parameter "to=0,255"
>
> Or should instead use however the r.recode command even if the
> convertion is linear ?
>
> Thx,
>
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -----------------
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user




-- 
Giovanni Allegri
http://about.me/giovanniallegri
Gis3W - http://gis3w.it
Ikare - http://ikare.it
Twitter: https://twitter.com/_giohappy_
blog: http://blog.spaziogis.it
GEO+ geomatica in Italia http://bit.ly/GEOplus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150701/fbf74aee/attachment.html>


More information about the grass-user mailing list