[GRASS-dev] pyGRASS find number of rows and columns
Yann Chemin
ychemin at gmail.com
Mon Sep 16 02:27:03 PDT 2013
Hi,
Could you help to get access to nrows and ncols for a map please?
---------------
from grass.pygrass import raster
#get nrows and ncols
ras = raster.RasterRow(LP2NDVI[0])
ras.open('r')
nrows = ras.rows <= I must be wrong here...
ncols = ras.cols
ras.close()
>>> AttributeError: 'RasterRow' object has no attribute 'rows'
The file does exist: ras.exist() returns True
Thanks,
Yann
--
----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20130916/f6c7fed9/attachment.html>
More information about the grass-dev
mailing list