<div dir="ltr">hi <span style="font-family:arial,sans-serif;font-size:13px">Hanlie,</span><div><span style="font-family:arial,sans-serif;font-size:13px">can you tell me what value you put for -scale to convert into 8 bit?</span></div>

</div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">cleo</div></div>
<br><br><div class="gmail_quote">On Fri, Aug 22, 2014 at 7:02 PM, Hanlie Pretorius <span dir="ltr"><<a href="mailto:hanlie.pretorius@gmail.com" target="_blank">hanlie.pretorius@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi Even,<br>
<br>
Yes, I quoted the exact message, but it displays in the QGIS interface.<br>
<br>
I tried gdal_translate with the -ot and -scale parameters on the<br>
multispectral image and that worked much better, thanks.<br>
<br>
Regards<br>
Hanlie<br>
<br>
2014-08-21 20:33 MGT+02:00, Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>>:<br>
<div class="im HOEnZb">> Le jeudi 21 août 2014 08:57:32, Hanlie Pretorius a écrit :<br>
>> Hi,<br>
>><br>
>> I'm working with a 16 bit SPOT 6 image that I want to convert from 16<br>
>> bit pixel depth to 8 bit pixel depth. I say 16 bit, but if I load the<br>
>> file into Envi, it reports that uses only 12 bits. However gdalinfo<br>
>> reports 16 bit (see below).<br>
>><br>
>> I've manage to do so on the multispectral image, but the result is<br>
>> poor colour wise.<br>
>><br>
>> So I split the image into its four bands that is, I now have one image<br>
>> per<br>
>> band.<br>
>><br>
>> When I now try to convert to 8 bit, I get a message that says:<br>
>> "Warning 742327101_R1C1_band1_8bit.TIF not created".<br>
><br>
> Are you quoting the exact message ? I can't find any trace of it in the<br>
> relevant parts of the source code. Did you check that you have write<br>
> permissions in the directory where you launch the command ?<br>
><br>
> Anyway for what you want to do you likely need to explore the -scale option<br>
> of<br>
> gdal_translate. But that's unrelated to the error<br>
><br>
>><br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></div></blockquote></div><br></div>