[R-sig-Geo] error from lmgrid

2015-07-07 Thread John Wasige
Dear community, I am getting this error from lmgrid: Error in empt[i, 1:(layers/2)] - as.numeric(lm(mtrx[i, 1:(layers/2)] ~ : number of items to replace is not a multiple of replacement length Any I dea on what could be the problem? Thanks for your help John [[alternative HTML

Re: [R-sig-Geo] Raster - rgdal Error: Failure during raster IO

2015-07-07 Thread Robert J. Hijmans
Hi Ben, I would not think this has to do with memory limitations. The error message suggest that you have a bad file, and, hence, that the problem is with the software that created the file, or with an interrupted download. Robert On Sat, Jul 4, 2015 at 6:24 PM, Ben Weinstein

[R-sig-Geo] Set output data type for projectRaster

2015-07-07 Thread Ned Horning
Hi all - I am trying to project a raster using the projectRaster() function from the raster package and would like the data type for the output image to be the same as the data type of the input image (INT2U Landsat 8 image stack). For some reason I get an output data type of FLT8S, even when