[GRASS-user] Uniform random raster
Giuseppe Amatulli
giuseppe.amatulli at gmail.com
Mon Feb 15 19:33:56 PST 2016
Hi,
I would like to create an uniform random raster, similar to what i would
obtain in R with the following code
raster=raster(matrix(runif(54210, max=50, min=-50, 139,390) , ...........)
writeRaster(raster,filename=random.tif",formats=GTiff,overwrite=TRUE)
I read the explanation of
https://grass.osgeo.org/grass7/manuals/r.random.surface.html
and also r.mapcalc - random (a,b)
but I'm not sure if one of them produce the same concept/result.
Any input? or better explanation
Thanks
Best
Giuseppe
--
Giuseppe Amatulli, Ph.D.
Department of Ecology and Evolutionary Biology, Yale University.
Jetz Lab, OML Room 405
P.O. Box 208106
165 PROSPECT ST
New Haven, CT 06520-8106
Teaching: spatial-ecology.net
Work: http://sbsc.yale.edu/giuseppe-amatulli
<http://www.spatial-ecology.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160215/87d0c21b/attachment.html>
More information about the grass-user
mailing list