[GRASS-user] passing raster map to Python object

Milton Cezar Ribeiro miltinho.astronauta at gmail.com
Tue Aug 11 18:36:54 EDT 2009


Dear all,

I am building a simulation python code that read a raster maps on grass
mapset.
As my maps is not so large (512x512 pixels) I dump it on a text file
(using r.out.ascii), after I read the text file on python, parse it using a
function that
I wrote, and after create a matrix-like object on Python.

I would like to know if I can read my raster map on python wihout
save it on external text file. Case yes, a short example are welcome.

cheers

milton
brazil=toronto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20090811/21f48e81/attachment-0001.html


More information about the grass-user mailing list