[RS-ecology] Moving Window

Leila Schuh leilaschuh at yahoo.com
Fri Jul 21 11:55:13 CEST 2017


Dear all,
I am trying to run analyses on rasterdata and am stuck with a specific problem.
I would like to create a moving window,which doesn’t assign individual values to all pixels included in the window,but one value for all pixels (within the window). Consequently, I would like to“paste the windows next to each other” rather than running calculations forevery individual pixel.
I haven’t figured out how to do this withfocal or focalWeight. (I also tried to use aggregate instead of a moving window, but it doesn't allow me to use self-defined functions.) 

If anyone could help me out with this, thatwould awesome!
I'll send a tiny bit of code and the raster file I'm working with.

Thank you and best wishes,Leila
-------------- n�chster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://lists.uni-wuerzburg.de/pipermail/rs-ecology/attachments/20170721/c3f4ea43/attachment-0001.html>
-------------- n�chster Teil --------------
Ein Dateianhang mit Bin�rdaten wurde abgetrennt...
Dateiname   : MovingWindow_Leila.R
Dateityp    : application/octet-stream
Dateigr��e  : 957 bytes
Beschreibung: nicht verf�gbar
URL         : <http://lists.uni-wuerzburg.de/pipermail/rs-ecology/attachments/20170721/c3f4ea43/attachment-0002.obj>
-------------- n�chster Teil --------------
Ein Dateianhang mit Bin�rdaten wurde abgetrennt...
Dateiname   : LC_clump.7z
Dateityp    : application/octet-stream
Dateigr��e  : 191308 bytes
Beschreibung: nicht verf�gbar
URL         : <http://lists.uni-wuerzburg.de/pipermail/rs-ecology/attachments/20170721/c3f4ea43/attachment-0003.obj>


More information about the RS-ecology mailing list