Skip to content
Prev 2032 / 29559 Next

Reading jpeg and tiff

On Fri, 27 Apr 2007, ONKELINX, Thierry wrote:

            
The usual way to handle things is in tiles, using GDALopen() and then 
accessing subsets in turn from the handle. The same can be done with 
readGDAL(). Remember that tiffs and jpegs are highly compressed, your tiff 
will be 800MB for integer or 1.6GB for double mode, while the underlying 
data are almost certainly 0-255 byte values. If you would like to look, 
the code in gdal-bindings.cpp pre-dates R's raw classes, but since raw 
doesn't really have operators, you'd end up casting at least to integer. 
The real question is what you want to do with the data, and whether you 
can tile it or adapt the flow of analysis.

Roger