How can I create a raster map with random values between a minimum and a
max value ?
I tried r.random but I do not know how to specify these min anx max values.
Resource Centre for Environmental Technologies,
Public Research Centre Henri Tudor,
Technoport Schlassgoart,
66 rue de Luxembourg,
P.O. BOX 144,
L-4002 Esch-sur-Alzette, Luxembourg
How can I create a raster map with random values between a minimum and a
max value ?
I tried r.random but I do not know how to specify these min anx max values.
you can create vector points layer by
v.random out=vrandom n=1000 zmin=0 zmax=100 -z
and then rasterize it
v.to.rast in=vrandom out=rrandom use=z
or to get random surface layer use
r.surf.random out=rsurf min=0 max=100
Martin
PS: Please update your contact info: grassuser@grass.itc.it ->
grass-user@lists.osgeo.org
--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *
How can I create a raster map with random values between a minimum and a
max value ?
I tried r.random but I do not know how to specify these min anx max values.
Resource Centre for Environmental Technologies,
Public Research Centre Henri Tudor,
Technoport Schlassgoart,
66 rue de Luxembourg,
P.O. BOX 144,
L-4002 Esch-sur-Alzette, Luxembourg
How can I create a raster map with random values between a minimum
and a max value ? I tried r.random but I do not know how to specify
these min anx max values.
In case you are not sure what GRASS module to use, but have a general
idea of what you are looking for, enter the directory where GRASS html
manual is stored on your machine and search for the keyword inside the
html files.
A search for "random" in html files of raster modules (i.e. those
matching r*html wildcard) returns for me:
How can I create a raster map with random values between a minimum
and a max value ? I tried r.random but I do not know how to specify
these min anx max values.
[...]
In case you are not sure what GRASS module to use, but have a general
idea of what you are looking for, enter the directory where GRASS html
manual is stored on your machine and search for the keyword inside the
html files.
A search for "random" in html files of raster modules (i.e. those
matching r*html wildcard) returns for me:
If You are interested in random surface (all cells with random values)
You can use r.mapcalc rand(min, max) or r.random.cells or
r.random.surface etc.
To get raster with random POINTS use r.random and provide random
SURFACE map as input for resulting point values.
Like this:
r.mapcalc rsurf=rand(min,max)
r.random input=rsurf raster_output=rpoints n=NUMBEROFPOINTS
I hope one of many GRASS user answers contained solution for You.
Maris.
How can I create a raster map with random values between a minimum and a
max value ?
I tried r.random but I do not know how to specify these min anx max values.
Resource Centre for Environmental Technologies,
Public Research Centre Henri Tudor,
Technoport Schlassgoart,
66 rue de Luxembourg,
P.O. BOX 144,
L-4002 Esch-sur-Alzette, Luxembourg