<div dir="ltr"><div>Hi,<br></div>Could you help to get access to nrows and ncols for a map please?<br><div><br>---------------<br>from grass.pygrass import raster<br>#get nrows and ncols<br>ras = raster.RasterRow(LP2NDVI[0])<br>
ras.open('r')<br>nrows = ras.rows <= I must be wrong here...<br>ncols = ras.cols<br>ras.close()<br><br><br>>>> AttributeError: 'RasterRow' object has no attribute 'rows'<br clear="all">
<div><br></div><div>The file does exist: ras.exist() returns True<br><br></div><div>Thanks,<br>Yann<br></div><div><br>-- <br>----
</div></div></div>