[R-sig-Geo] focalFilter problem raster package

Robert Hijmans r.hijmans at gmail.com
Tue Apr 12 05:13:17 CEST 2011


> Dear Robert 
>
> I hope the following example is clear.  you should be able to cut and
> paste... 
>
> Nick 

Dear Nick, 

Thank you for the example. It reveals a serious error in focalFilter.
Results with that function in raster versions lower than 1.8-11 are wrong in
the first rows (half the number of rows of the filter), when using a filter
larger than 3x3 (because I forgot a "byrow=TRUE" argument in a call to
matrix). Version 1.8-11 is on its way to CRAN.

Robert



--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/focalFilter-problem-raster-package-tp6235925p6263699.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list