git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49097 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -7,8 +7,12 @@ Functions to use GRASS rasters with NumPy.
Usage:
@code
-from grass.script import array as garray
-...
+ map = 'elevation'
+ x = garray.array()
+ x.read(map)
+ # calculate something on array
+ x[...] = x / 50.
+ x.write(map + ".new")
@endcode
(C) 2010-2011 by Glynn Clements and the GRASS Development Team