Skip to content
Prev 11165 / 29559 Next

Variable window on a raster

Etienne, 

What you are doing makes sense to me. To avoid border problems, perhaps you
can first 'expand' the input raster by adding sufficient rows and columns at
each side such that there are no relevant cells within the filter when it
reaches the border. 

By the way, here:
nb should be ngb, and typically ngb would not be an even number.

Robert
--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Variable-window-on-a-raster-tp6155312p6167442.html
Sent from the R-sig-geo mailing list archive at Nabble.com.