Hi, is there a way to reshuffle raster data in GRASS?
Hi,
···
On Fri, Jul 11, 2014 at 10:51 AM, Paulo van Breugel <p.vanbreugel@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev
Thanks, I will try that.
···
On Fri, Jul 11, 2014 at 5:26 PM, Anna Petrášová <kratochanna@gmail.com> wrote:
Hi,
On Fri, Jul 11, 2014 at 10:51 AM, Paulo van Breugel <p.vanbreugel@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev