[GRASS-user] Creating spatially clumped random cells

Markus Neteler neteler at osgeo.org
Thu Jan 9 15:43:19 PST 2014


On Thu, Jan 9, 2014 at 4:09 PM, Johannes Radinger
<johannesradinger at gmail.com> wrote:
> Hi,
>
> just two short question concerning the creation of random cells.
> So far I used r.random to create e.g. a map with 20% cells (of my input
> raster).
> I'd like to know:
> 1) Is there a way to create randomly spatially clumped rasters cells so that
> the cells
> look aggregated like patches, while still setting the e.g. 20% limit? Maybe
> with a factor of spatial autocorrelation!? Maybe somebody has an example
> 2) Is there a way to set a fixed seed to make reproducible results with
> r.random and similar modules?

While likely not a solution for you but take a look at
http://grass.osgeo.org/grass70/manuals/r.random.cells.html

Markus


More information about the grass-user mailing list