Jose, FYI, the ReadRaster function is optimized for reading chunks of image, not individual pixels.
An array slice is essentially an array itself. But your error message says different. Can you provide the offending lines of code? On Tue, Oct 11, 2011 at 11:19 PM, Jose Gomez-Dans <jgomezd...@gmail.com>wrote: > Hi, > I have installed GDAL 1.8.1 to use the python bindings. I note that if I > pass a slice of an array to ReadRaster for the (x,y) pixel location, I get a > TypeError: > TypeError: in method 'Dataset_ReadRaster1', argument 2 of type 'int' > > If I surround the offending slice by int( x ) and int(y), it works fine. > Somehow, I think the wrapper (ReadRaster1) should also take 1-element slices > which are integers. > > Jose > > > > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev > -- Best regards, Chaitanya kumar CH. +91-9494447584 17.2416N 80.1426E
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev