[GRASS-dev] pyGRASS find number of rows and columns

2013-09-16 Thread Yann Chemin
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'

Re: [GRASS-dev] pyGRASS find number of rows and columns

2013-09-16 Thread Sören Gebbert
Hi Yann, you can use the raster info-oject to access the raster specific region information's: ras = raster.RasterRow(Bla) ras.info.rows You don't need to open the map to gather the info. Best regards Soeren 2013/9/16 Yann Chemin yche...@gmail.com: Hi, Could you help to get access to nrows

Re: [GRASS-dev] pyGRASS find number of rows and columns

2013-09-16 Thread Yann Chemin
Hi Pietro, for 3 maps, I am collecting one pixel at a time for thousands of maps, create a temporal signature for all 3, then use python-pywt on it, then return the single pixel to each map. To do that I need to open files and close them before reaching the max file opened OS limit... Very slow