[GRASS-user] random raster map
G. Allegri
giohappy at gmail.com
Mon Jul 14 05:52:01 EDT 2008
A simple hint.
if you want your number being between XMax and XMin you could use:
x = random_number(XMax-XMin)+XMin
where 0<=random_number<=1
Anyway, r.mapcalc already contains rand(min,max), wich produces
exactly what you want [1]
giovanni
[1] http://grass.itc.it/grass63/manuals/html63_user/r.mapcalc.html
2008/7/14 <jessica.gervais at tudor.lu>:
>
> Dear All,
>
> 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.
>
> Thanks in advance,
>
> Jessica
>
> _________________________________________
>
> Jessica Gervais
> Tel: +352- 425991-628
> Mail: jessica.gervais at tudor.lu
>
> 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
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
More information about the grass-user
mailing list