[GRASS-user] r.neighbors selecting a random value from the window
Glynn Clements
glynn at gclements.plus.com
Sat Oct 4 08:11:35 PDT 2014
Milton Ribeiro wrote:
> Given a moving window (maybe with r.neihbors), I need to select a random
> value which occurs within the window. Is there any function for this in
> grass?
No.
You could either modify r.neighbors, or use e.g. grass.script.array
(example script attached).
--
Glynn Clements <glynn at gclements.plus.com>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: r.neighbors.random.py
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20141004/e4dcc9cd/attachment.ksh>
More information about the grass-user
mailing list