[GRASS-dev] reshuffle raster data

Paulo van Breugel p.vanbreugel at gmail.com
Fri Jul 11 08:57:05 PDT 2014


Thanks, I will try that.


On Fri, Jul 11, 2014 at 5:26 PM, Anna Petrášová <kratochanna at gmail.com>
wrote:

> 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/5d85d241/attachment-0001.html>


More information about the grass-dev mailing list