GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
grass.script.array Namespace Reference

GRASS Python scripting module (rasters with numpy) More...

Detailed Description

GRASS Python scripting module (rasters with numpy)

Functions to use GRASS rasters with NumPy.

Usage:

1 map = 'elevation'
2 x = garray.array()
3 x.read(map)
4 # calculate something on array
5 x[...] = x / 50.
6 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.

Author
Glynn Clements