[GRASS-dev] How to access the value of each cell for every row column with pygrass?

Hey List,

Using pygrass is it possible to create a matrix or a numpy array which will contain each cell’s value?

Something similar like gdals ReadAsArray function?

Nikos

Nick wrote:

Using pygrass is it possible to create a matrix or a numpy
array which will contain each cell's value?

Something similar like gdals ReadAsArray function?

have a look at the RasterNumpy class,

https://trac.osgeo.org/grass/browser/grass/trunk/lib/python/pygrass/docs/raster.rst#L308

Hamish