Re: [gdal-dev] Precision about scale/offset element in VRT file

2012-03-24 Thread Saâd HESSANE
Thank you all ! 2012/3/23 Frank Warmerdam > On Fri, Mar 23, 2012 at 10:29 AM, Chaitanya kumar CH > wrote: > > Output pixel value = (raw pixel value * scale) + offset > > Exactly. > > The reason for scale and offset to exist is that "real world" measures > like elevation, temperature, pressure a

Re: [gdal-dev] Precision about scale/offset element in VRT file

2012-03-23 Thread Frank Warmerdam
On Fri, Mar 23, 2012 at 10:29 AM, Chaitanya kumar CH wrote: > Output pixel value = (raw pixel value * scale) + offset Exactly. The reason for scale and offset to exist is that "real world" measures like elevation, temperature, pressure are often represented in raster datasets as integer values r

Re: [gdal-dev] Precision about scale/offset element in VRT file

2012-03-23 Thread Chaitanya kumar CH
Output pixel value = (raw pixel value * scale) + offset On Fri, Mar 23, 2012 at 5:44 PM, Saâd HESSANE wrote: > Ok, thank you again Chaitanya, > > But what is the function of this two element? > > > 2012/3/23 Chaitanya kumar CH > >> Saâd, >> >> A VRT raster band can be derived from more than one

Re: [gdal-dev] Precision about scale/offset element in VRT file

2012-03-23 Thread Saâd HESSANE
Ok, thank you again Chaitanya, But what is the function of this two element? 2012/3/23 Chaitanya kumar CH > Saâd, > > A VRT raster band can be derived from more than one source. > > Offset and Scale elements apply to the whole VRT raster band. > The ScaleOffset and ScaleRatio perform the same

Re: [gdal-dev] Precision about scale/offset element in VRT file

2012-03-23 Thread Chaitanya kumar CH
Saâd, A VRT raster band can be derived from more than one source. Offset and Scale elements apply to the whole VRT raster band. The ScaleOffset and ScaleRatio perform the same task but it is done only on that particular ComplexSource. On Fri, Mar 23, 2012 at 3:43 PM, Saâd HESSANE wrote: > Hy al

[gdal-dev] Precision about scale/offset element in VRT file

2012-03-23 Thread Saâd HESSANE
Hy all, The vrt format allow defining the scale and offset element. But the documentation is not clear about that : - *Offset*: This optional element contains the offset that should be applied when computing "real" pixel values from scaled pixel values on a raster band. The default is 0.