<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 16, 2015 at 8:28 AM, Markus Neteler <span dir="ltr"><<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Nov 10, 2015 at 7:58 PM, Anna Petrášová <<a href="mailto:kratochanna@gmail.com">kratochanna@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I am running viewsheds using the GridModule on 4 tiles. It runs, but the<br>
> result has some artificial gaps, see the attached picture (black is the<br>
> correct viewshed as vector and red and blue are wrong results). The problem<br>
> must be in the patching of the 4 tiles, because the tiles alone are fine. I<br>
> tried to run the same viewshed couple of times and it seems to behave<br>
> randomly, sometimes I get correct result, sometimes I get a gap. Any idea<br>
> what could be wrong?<br>
<br>
</span>Can you adjust the number of cores being used? To see if it influences it?<br></blockquote><div><br></div><div>I can't test right now, maybe later. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
> Maybe some bug in the pygrass raster library?<br>
<br>
</span>Looks like a race condition?<br></blockquote><div><br></div><div>I don't understand why would that happen, the patching done with pygrass raster library is not running in parallel. </div><div><br></div><div>A workaround I currently use is to patch the rasters using r.patch, which is in the case of viewsheds OK (the overlaps are the same), however in other cases such as interpolation, the overlaps are different and r.patch won't patch the rasters as desired, that's why the GridModule is using pygrass raster library I assume.</div><div><br></div><div>Anna</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
Markus<br>
</font></span></blockquote></div><br></div></div>