GRASS Programmer's Manual
6.4.2(2012)
|
GRASS Python scripting module (rasters with numpy) More...
GRASS Python scripting module (rasters with numpy)
Functions to use GRASS rasters with NumPy.
Usage:
map = 'elevation' x = garray.array() x.read(map) # calculate something on array x[...] = x / 50. x.write(map + ".new")
(C) 2010-2011 by Glynn Clements and the GRASS Development Team This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.