I thought I'd tried that and it failed, but it looks to be just a problem of stale statistics. Thanks Marius.<br><br>Steve<br><br><br><div class="gmail_quote">On Wed, Jul 27, 2011 at 10:16 PM, Marius Jigmond <span dir="ltr"><<a href="mailto:mariusjigmond@hotmail.com">mariusjigmond@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#FFFFFF" text="#000000"><div class="im">
On 07/27/2011 04:16 PM, Stephen Mather wrote:
<blockquote type="cite">Hi All,<br>
I'm using gdal_translate (version 1.6.3 on Ubuntu) with a
scale factor to stretch float values to 16-bit integer values. It
works fine with tif output, but with PNG it stretches the values
to 8-bit:<br>
<br>
gdal_translate -of PNG -scale 0 1550 0 65535 N2140615.txt
N2140615.png<br>
</blockquote>
<br></div>
Try gdal_translate -of PNG -ot UInt16 -scale 0 1550 0 65535
N2140615.txt N2140615.png<br>
<br>
<blockquote type="cite"><div class="im"><br>
Is this a known issue and/or has it been fixed with more recent
versions? I know I had trouble with this with an MS4W release as
well.<br>
<br>
Thanks,<br>
Steve<br>
<br>
<fieldset></fieldset>
<br>
</div><pre>_______________________________________________
gdal-dev mailing list
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
</blockquote>
-marius<br>
</div>
</blockquote></div><br>