[gdal-dev] gdalinfo and scale/offset

Kyle Shannon ksshannon at gmail.com
Thu Oct 28 13:58:55 EDT 2010


Hello,
I have been working  on ticket #3797.  In the example given, gdalinfo is the
calling the netcdf driver.  I agree with Frank's opinion on this in ticket
#1660:

Note that GDALRasterBand has methods to get the offset and scale. The normal
> GDAL practice would be to return them via those methods - not to apply them
> on the fly. Then it is up to the caller to do so if they wish.
>

gdal shouldn't be in charge of scaling the data to what may be a different
data type, or unpacking it.  But in this case, gdalinfo is the caller.
Should the functionality of the scaling be added to gdalinfo?  Maybe
optionally reporting the stats as scaled data?  Any thoughts?

# ============================
Kyle Shannon
Physical Science Technician
RMRS Fire Sciences Lab
Fire, Fuels & Smoke - RWU 4405
5775 Highway 10 W.
Missoula, MT 59808
(406)829-6954
kshannon at fs.fed.us
# ============================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20101028/2182b732/attachment.html


More information about the gdal-dev mailing list