<html><head></head><body><div class="ydp21a3cb96yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div></div>
        <div dir="ltr" data-setdir="false">Hi Moritz,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">thanks for the hacks, they seem very useful!</div><div dir="ltr" data-setdir="false">I am not so worried about the speed right now but more with the "do-ability" of the job.</div><div dir="ltr" data-setdir="false">For some of the things I tried to do I just got stuck on 0 or 3% and the process did not go further, at least in the simple computers I use.</div><div dir="ltr" data-setdir="false">I may try a modification of your code in the coming weeks, it does not seem so hard indeed. I come back here if can (or cannot) do it. Thanks!</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">regardgin the r.patch part, what you mean is that it could be better to have a calll to the module r.patch instead of to this function "<span><span class="ydpc402664epl-en"><span class="ydpc402664epl-token" data-hydro-click="{event_type:code_navigation.click_on_symbol,payload:{action:click_on_symbol,repository_id:187248482,ref:master,language:Python,originating_url:https://github.com/OSGeo/grass-addons/blob/master/grass7/raster/r.texture.tiled/r.texture.tiled.py?_pjax=%23js-repo-pjax-container,user_id:8031905}}" data-hydro-click-hmac="7fb06a7b95d3ccb9dbdb3917aa0b8cd7abd82ab04de8c28dfa0931f8cce108bc">rpatch_map</span></span></span>" that is used in the source code?</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Best</div><div dir="ltr" data-setdir="false">Bernardo<br></div><div><br></div>
        
        </div><div id="yahoo_quoted_2979492741" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    Em quarta-feira, 7 de outubro de 2020 13:08:16 GMT+2, Moritz Lennert <mlennert@club.worldonline.be> escreveu:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div dir="ltr">On 7/10/20 12:37, Bernardo Santos wrote:<div class="yqt6458652640" id="yqtfd44326"><br clear="none">> Dear community,<br clear="none">> <br clear="none">> I have recently found that some functions such as r.mapcalc and <br clear="none">> r.textile have their "tiled" versions, whichi is perfect for processing <br clear="none">> things in large extents and fine scale resolution.<br clear="none">> I need to perform a moving window analysis, such as using r.neighbors, <br clear="none">> over large areas. Is there already any implementation of a <br clear="none">> "r.neighbors.tiled" or something like that?<br clear="none">> (If not, that would definitely be very useful!)</div><br clear="none"><br clear="none">AFAIK, there is no r.neighbors.tiled. Actually, the two others you cite <br clear="none">were quick hacks from me which I decided to make available in case they <br clear="none">could be useful.<br clear="none"><br clear="none">Several tests by others using r.mapcalc.tiled have not shown significant <br clear="none">speed increase, and so there is currently a discussion about how to <br clear="none">solve this (the current idea is to try with r.patch instead of the <br clear="none">internal python-based patching routine). Unfortunately, I don't have <br clear="none">much time for GRASS GIS these days, so will not be able to do anything <br clear="none">about this.<br clear="none"><br clear="none">You could have a look at the existing *.tiled modules (see link to the <br clear="none">code at the bottom of the online man page) to see how they work (not <br clear="none">very complicated) and try to cook your own for r.neighbors. :-)<br clear="none"><br clear="none">Moritz<div class="yqt6458652640" id="yqtfd86976"><br clear="none"></div></div></div>
            </div>
        </div></body></html>