Re: [gdal-dev] Question on scaling between tif and vrt

2014-05-20 Thread Even Rouault
Le mardi 20 mai 2014 02:22:12, Stephen Woodbridge a écrit : > Even, > > Thanks! > > I didn't set his up, I just inherited the maintenance of it and I'm just > trying to understand how it works and eventually make changes to it and > fix some of the processing that does not seem to be grounded in

Re: [gdal-dev] Question on scaling between tif and vrt

2014-05-19 Thread Stephen Woodbridge
Even, Thanks! I didn't set his up, I just inherited the maintenance of it and I'm just trying to understand how it works and eventually make changes to it and fix some of the processing that does not seem to be grounded in a good process, which is looking like more and more of the code. :(

Re: [gdal-dev] Question on scaling between tif and vrt

2014-05-19 Thread Even Rouault
Le lundi 19 mai 2014 23:42:06, Stephen Woodbridge a écrit : > Hi all, > > I have a .tif file with -ot Int16 and an associated .vrt file that is > applying a color palette and is type Byte. > > How does if decide on how to scale the pixel values? > > Does it compute the range and then just scale

[gdal-dev] Question on scaling between tif and vrt

2014-05-19 Thread Stephen Woodbridge
Hi all, I have a .tif file with -ot Int16 and an associated .vrt file that is applying a color palette and is type Byte. How does if decide on how to scale the pixel values? Does it compute the range and then just scale and offset that values to the new range? Below are the gdalinfo for ea