Re: [R-sig-Geo] Writing a byte image

2009-02-26 Thread Robert Hijmans
Hi Ned, This should work: # Set output image properties predrast <- setRaster(spot) predrast <- setDatatype(predrast, 'INT1U') filename(predrast) <- outImage etc. Robert On Thu, Feb 26, 2009 at 10:15 PM, Ned Horning wrote: > What is the recommended way to output a large byte GeoTiff image o

[R-sig-Geo] Writing a byte image

2009-02-26 Thread Ned Horning
What is the recommended way to output a large byte GeoTiff image one line at a time? I am creating large double and integer images using writeRaster to create a GeoTiff file. I've been converting these to a byte data type outside of R but it would be nice to R to output a byte GeoTiff directly.