<div dir="ltr">Hi Sören,<div><br></div><div><span style="background-color:rgb(247,247,247);color:rgb(0,0,0);font-size:13px">thanks for looking at it. </span>The ticket is:</div><div><br></div><div> <a href="https://trac.osgeo.org/grass/ticket/2074">https://trac.osgeo.org/grass/ticket/2074</a></div>
<div><br></div><div>It's may be obvious but in GRASS 6 it's working. I'm not sure about the result. Since the random map maybe not the best map to visualize in nviz. By the way,</div><div><span style="background-color:rgb(247,247,247);color:rgb(0,0,0);font-size:13px"><br>
</span></div><div><span style="background-color:rgb(247,247,247);color:rgb(0,0,0);font-size:13px">r3.mapcalc "test_map = rand(0, 500)"</span></div><div><span style="background-color:rgb(247,247,247);color:rgb(0,0,0);font-size:13px"><br>
</span></div><div><span style="background-color:rgb(247,247,247);color:rgb(0,0,0);font-size:13px">is much faster in GRASS 6.</span></div><div><br></div><div>Vaclav</div><div><br></div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Tue, Sep 10, 2013 at 3:12 AM, Sören Gebbert <span dir="ltr"><<a href="mailto:soerengebbert@googlemail.com" target="_blank">soerengebbert@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Vaclav,<br>
thanks for the error report. Your r3.mapcalc expression is correct.<br>
I must have introduced this error recently. I hope i have time at the<br>
FOSS4G or in October to have a look at this error.<br>
<br>
Can you please create a ticket and an example to reproduce this error?<br>
<br>
Best regards<br>
Soeren<br>
<br>
2013/9/10 Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com">wenzeslaus@gmail.com</a>>:<br>
<div class="HOEnZb"><div class="h5">> Hi,<br>
><br>
> I'm trying to use the neighborhood modifier [1] in r3.mapcalc in GRASS7.<br>
><br>
> My command is something like this:<br>
><br>
> r3.mapcac "newmap = (mapname[0, 0, 0] + mapname[1, 1, 0]) / 2"<br>
><br>
> But I'm getting the following errors:<br>
><br>
> ERROR: Rast3d_cache_hash_load_name: name already in hashtable<br>
> (cachehash.c: 98)<br>
><br>
> ERROR: Rast3d_get_double_region: error in Rast3d_get_tile_ptr.Region<br>
> coordinates x 528 y 1 z 0 tile index 24 offset 22<br>
> (getvalue.c: 185)<br>
><br>
> Not sure which when, it seems to be random, so far.<br>
><br>
> Since this is not much documented in manual, I'm wondering if I'm using it<br>
> correctly, if yes, I'll turn this into a ticket.<br>
><br>
> Thanks,<br>
> Vaclav<br>
><br>
> [1] <a href="http://grass.osgeo.org/grass70/manuals/r3.mapcalc.html" target="_blank">http://grass.osgeo.org/grass70/manuals/r3.mapcalc.html</a><br>
> [2] <a href="http://grass.osgeo.org/programming7/getvalue_8c_source.html#l00165" target="_blank">http://grass.osgeo.org/programming7/getvalue_8c_source.html#l00165</a><br>
> [3] <a href="http://grass.osgeo.org/programming7/cachehash_8c_source.html#l00092" target="_blank">http://grass.osgeo.org/programming7/cachehash_8c_source.html#l00092</a><br>
</div></div></blockquote></div><br></div>