Skip to content
Prev 20428 / 29559 Next

Error with disaggregate

Ned,

I see nothing wrong with your code. Works for me on Win7.  Perhaps
because of a fix in the chunk size (blockSize) computation in the
development version.
Can you check if it works with that version?

 install.packages("raster", repos="http://R-Forge.R-project.org")


I do not understand the error message though, as you should be writing
fewer bytes then 2^31
[1] 4.532697

This may go away if you add a filename, and perhaps a datatype (FLT4S)  argument

c <- disaggregate(b, fact=32, filename='dis.tif', datatype='FLT4S')

Or if you set
rasterOptions(chunksize= ) temporarily to something lower.

I note that I should add a "block_fun" method to do this in one step

Robert
On Tue, Feb 18, 2014 at 9:47 AM, Ned Horning <horning at amnh.org> wrote: