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

-- 
----
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to