Re: [GRASS-user] Uniform random raster

2016-06-02 Thread Markus Neteler
On Tue, Feb 16, 2016 at 3:17 PM, Giuseppe Amatulli wrote: > Thanks Paulo and Thomas, > perfect the r.surf.random does what i want!! I know how to implement the > code! > Thanks!! > p.s. better to put the r.surf.random link at the bottom of r.random.surface Good suggestion, done now for 7.0.svn, 7

Re: [GRASS-user] Uniform random raster

2016-02-16 Thread Giuseppe Amatulli
Thanks Paulo and Thomas, perfect the r.surf.random does what i want!! I know how to implement the code! Thanks!! p.s. better to put the r.surf.random link at the bottom of r.ran

Re: [GRASS-user] Uniform random raster

2016-02-16 Thread Paulo van Breugel
On 16-02-16 05:04, Thomas Adams wrote: Giuseppe, Unless I have misunderstood, in GRASS use r.mapcalc... First set you region for your area of interest, for example: g.region -dp e=2614612.5 w=1423987.5 n=-4624387.5 s=-5862637.5 Then: r.mapcalc expression="outputMap=25.4" where 25.4 is your

Re: [GRASS-user] Uniform random raster

2016-02-15 Thread Thomas Adams
Giuseppe, Unless I have misunderstood, in GRASS use r.mapcalc... First set you region for your area of interest, for example: g.region -dp e=2614612.5 w=1423987.5 n=-4624387.5 s=-5862637.5 Then: r.mapcalc expression="outputMap=25.4" where 25.4 is your value of interest, and finally: r.out.gda

[GRASS-user] Uniform random raster

2016-02-15 Thread Giuseppe Amatulli
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