Re: [gdal-dev] gdal_translate -scale with PNG

2011-07-28 Thread Stephen Mather
I thought I'd tried that and it failed, but it looks to be just a problem of stale statistics. Thanks Marius. Steve On Wed, Jul 27, 2011 at 10:16 PM, Marius Jigmond wrote: > On 07/27/2011 04:16 PM, Stephen Mather wrote: > > Hi All, > I'm using gdal_translate (version 1.6.3 on Ubuntu) wit

Re: [gdal-dev] gdal_translate -scale with PNG

2011-07-27 Thread Marius Jigmond
On 07/27/2011 04:16 PM, Stephen Mather wrote: Hi All, 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: gdal_translate -of PNG -scale 0 15

[gdal-dev] gdal_translate -scale with PNG

2011-07-27 Thread Stephen Mather
Hi All, 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: gdal_translate -of PNG -scale 0 1550 0 65535 N2140615.txt N2140615.png Is this a kno