<div dir="ltr">Hi Markus,<div><br></div><div>so far as I understood r.random.cell creates spatially most disaggregated cells (based on the distance parameter). So instead of clumping them this module does the opposite. </div>
<div><br></div><div>However, I am just trying another solution which might be promising: With r.random.surface</div><div>it is possible to generate a spatially dependent surface (like a landscape with mountains and valleys). Then I can use r.quantile to get the lowest/highest e.g 20% of all values and consequently I can use r.mapcalc to reclassify all values smaller than the threshold value I yielded from r.quantile. First trials yielded good results although the 20% threshold did not exactly translate into 20% of all cells. I've to investigate a little bit more into that. Any other suggestions?</div>
<div><br></div><div>Best regards,</div><div>Johannes</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 10, 2014 at 12:43 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"><div class="HOEnZb"><div class="h5">On Thu, Jan 9, 2014 at 4:09 PM, Johannes Radinger<br>
<<a href="mailto:johannesradinger@gmail.com">johannesradinger@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> just two short question concerning the creation of random cells.<br>
> So far I used r.random to create e.g. a map with 20% cells (of my input<br>
> raster).<br>
> I'd like to know:<br>
> 1) Is there a way to create randomly spatially clumped rasters cells so that<br>
> the cells<br>
> look aggregated like patches, while still setting the e.g. 20% limit? Maybe<br>
> with a factor of spatial autocorrelation!? Maybe somebody has an example<br>
> 2) Is there a way to set a fixed seed to make reproducible results with<br>
> r.random and similar modules?<br>
<br>
</div></div>While likely not a solution for you but take a look at<br>
<a href="http://grass.osgeo.org/grass70/manuals/r.random.cells.html" target="_blank">http://grass.osgeo.org/grass70/manuals/r.random.cells.html</a><br>
<span class="HOEnZb"><font color="#888888"><br>
Markus<br>
</font></span></blockquote></div><br></div>