[GRASS-dev] reshuffle raster data

Anna Petrášová kratochanna at gmail.com
Fri Jul 11 08:26:43 PDT 2014


Hi,


On Fri, Jul 11, 2014 at 10:51 AM, Paulo van Breugel <p.vanbreugel at gmail.com>
wrote:

> Hi, is there a way to reshuffle raster data in GRASS?
>

If I understand correctly what reshuffle means, I would use GRASS Python
Scripting library [1] (or PyGRASS perhaps) to load the maps into numpy and
just use numpy function shuffle [2] and then write it as raster map again.

Anna

[1]
http://grass.osgeo.org/programming7/classpython_1_1script_1_1array_1_1array.html
[2]
http://docs.scipy.org/doc/numpy/reference/generated/numpy.random.shuffle.html


>
>
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20140711/e7ec21cc/attachment.html>


More information about the grass-dev mailing list