Jose,<br><br>FYI, the ReadRaster function is optimized for reading chunks of image, not individual pixels.<br><br>An array slice is essentially an array itself. But your error message says different. Can you provide the offending lines of code?<br>
<br><div class="gmail_quote">On Tue, Oct 11, 2011 at 11:19 PM, Jose Gomez-Dans <span dir="ltr">&lt;<a href="mailto:jgomezdans@gmail.com">jgomezdans@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<div>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:</div><div>TypeError: in method &#39;Dataset_ReadRaster1&#39;, argument 2 of type &#39;int&#39;</div>

<div><br></div><div>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.</div><div><br></div><font color="#888888"><div>
Jose</div>
<div><br></div><div><br></div>
</font><br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>
<br>+91-9494447584<br>17.2416N 80.1426E<br>