[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grass-user
Subject:    Re: [GRASS-user] tiled version for r.neighbors
From:       Bernardo Santos <bernardo_brandaum () yahoo ! com ! br>
Date:       2020-10-07 11:34:28
Message-ID: 1501132371.161412.1602070468290 () mail ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


 Hi Moritz,
thanks for the hacks, they seem very useful!I am not so worried about the speed right \
now but more with the "do-ability" of the job.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.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! 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 "rpatch_map" that is used in the source \
code? BestBernardo

    Em quarta-feira, 7 de outubro de 2020 13:08:16 GMT+2, Moritz Lennert \
<mlennert@club.worldonline.be> escreveu:    
 On 7/10/20 12:37, Bernardo Santos wrote:
> Dear community,
> 
> I have recently found that some functions such as r.mapcalc and 
> r.textile have their "tiled" versions, whichi is perfect for processing 
> things in large extents and fine scale resolution.
> I need to perform a moving window analysis, such as using r.neighbors, 
> over large areas. Is there already any implementation of a 
> "r.neighbors.tiled" or something like that?
> (If not, that would definitely be very useful!)

AFAIK, there is no r.neighbors.tiled. Actually, the two others you cite 
were quick hacks from me which I decided to make available in case they 
could be useful.

Several tests by others using r.mapcalc.tiled have not shown significant 
speed increase, and so there is currently a discussion about how to 
solve this (the current idea is to try with r.patch instead of the 
internal python-based patching routine). Unfortunately, I don't have 
much time for GRASS GIS these days, so will not be able to do anything 
about this.

You could have a look at the existing *.tiled modules (see link to the 
code at the bottom of the online man page) to see how they work (not 
very complicated) and try to cook your own for r.neighbors. :-)

Moritz
  


[Attachment #5 (text/html)]

<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://git \
hub.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 &lt;mlennert@club.worldonline.be&gt; 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">&gt; Dear community,<br \
clear="none">&gt; <br clear="none">&gt; I have recently found that some functions \
such as r.mapcalc and <br clear="none">&gt; r.textile have their "tiled" versions, \
whichi is perfect for processing <br clear="none">&gt; things in large extents and \
fine scale resolution.<br clear="none">&gt; I need to perform a moving window \
analysis, such as using r.neighbors, <br clear="none">&gt; over large areas. Is there \
already any implementation of a <br clear="none">&gt; "r.neighbors.tiled" or \
something like that?<br clear="none">&gt; (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>


[Attachment #6 (text/plain)]

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic