<div dir="ltr">Hi,<br><br><div class="gmail_quote">2008/9/26  <span dir="ltr">&lt;<a href="mailto:Andruit@gmx.de">Andruit@gmx.de</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I have an ESRI ascii raster and would like to get the raster values at defined x y locations.<br>
At the moment I am capable to load the Raster Dataset and can perform several operations like querying the &nbsp;Min/Max values, the origin, the pixelsize and so on....<br>
<br>
But is there a function to get the cell value of a raster at a certain location (x y)????</blockquote><div><br>You can work out the row and column of your pixel from your (x,y) location using the raster&#39;s geotransform. You can then read in the value of that particular pixel. <br>
<br>Hope that helps,<br>J<br></div></div><br clear="all"><br>-- <br>Centre for Terrestrial Carbon Dynamics<br>Department of Geography, University College London<br>Gower Street, London WC1E 6BT, UK<br>
</div>