<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Basic Question: How to extract a Cell from a raster? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/basic-question-how-to-extract-a-cell-from-a-raster/m-p/267753#M15445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//0017000000m8000000"&gt;GetCellValue&lt;/A&gt; in the management toolbox?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; help(arcpy.GetCellValue_management)&lt;BR /&gt;Help on function GetCellValue in module arcpy.management:&lt;/P&gt;&lt;P&gt;GetCellValue(in_raster=None, location_point=None, band_index=None)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetCellValue_management(in_raster, location_point, {band_index;band_index...})&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Retrieves the pixel value at a specific x,y coordinate. For multiband raster&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datasets you can specify from which bands to retrieve the cell value. If you do&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; not specify any bands, the pixel value for all the bands will be returned for&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the input location.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INPUTS:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in_raster (Mosaic Dataset / Mosaic Layer / Raster Layer):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The input raster dataset.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; location_point (Point):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type the x and y coordinates of the pixel location.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; band_index {Value Table}:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Define which bands for which you would like to get the pixel value. If you do&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; not define any bands, a pixel value for all the bands in the x,y location will&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; be returned.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 31 Aug 2014 03:02:51 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2014-08-31T03:02:51Z</dc:date>
    <item>
      <title>Basic Question: How to extract a Cell from a raster?</title>
      <link>https://community.esri.com/t5/data-management-questions/basic-question-how-to-extract-a-cell-from-a-raster/m-p/267752#M15444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey guys,&lt;/P&gt;&lt;P&gt;hope i´m in the right forum here!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m trying to extract a Cell from a raster layer and save it in a new raster layer. For that i wanted to use the "Extract by attributes" tool from the toolbox. The problem is now that this tool needs an attribute table which has to be used to write the sql-expression. But in my case i have a dtm raster that has no attribute table. I want to extract the lowest cell, but the z values are just saved as normal coordinates and not in a table. So my question is: How can i extract cells with a certain height from a dtm, even if the layer has no attribute table? Or is there a way to create a new attribute table for the layer and save the z coordinates with the corresponding cells in it? I´m using ArcGIS 10.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i´m trying to do in general (just if you might have better idea to proceed): I need the lowest cell of the dtm because i want to calculate the distance of each cell of another raster to this cell using the "cost distance" tool, which needs an input cost raster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sry for english mistakes and i hope i could well describe my problem!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Aug 2014 18:04:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/basic-question-how-to-extract-a-cell-from-a-raster/m-p/267752#M15444</guid>
      <dc:creator>FelixWiemann</dc:creator>
      <dc:date>2014-08-30T18:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Question: How to extract a Cell from a raster?</title>
      <link>https://community.esri.com/t5/data-management-questions/basic-question-how-to-extract-a-cell-from-a-raster/m-p/267753#M15445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//0017000000m8000000"&gt;GetCellValue&lt;/A&gt; in the management toolbox?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; help(arcpy.GetCellValue_management)&lt;BR /&gt;Help on function GetCellValue in module arcpy.management:&lt;/P&gt;&lt;P&gt;GetCellValue(in_raster=None, location_point=None, band_index=None)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetCellValue_management(in_raster, location_point, {band_index;band_index...})&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Retrieves the pixel value at a specific x,y coordinate. For multiband raster&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datasets you can specify from which bands to retrieve the cell value. If you do&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; not specify any bands, the pixel value for all the bands will be returned for&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the input location.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INPUTS:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in_raster (Mosaic Dataset / Mosaic Layer / Raster Layer):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The input raster dataset.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; location_point (Point):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type the x and y coordinates of the pixel location.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; band_index {Value Table}:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Define which bands for which you would like to get the pixel value. If you do&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; not define any bands, a pixel value for all the bands in the x,y location will&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; be returned.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Aug 2014 03:02:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/basic-question-how-to-extract-a-cell-from-a-raster/m-p/267753#M15445</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-31T03:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Question: How to extract a Cell from a raster?</title>
      <link>https://community.esri.com/t5/data-management-questions/basic-question-how-to-extract-a-cell-from-a-raster/m-p/267754#M15446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are interested in using some python you could use something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14094570089658816 jive_text_macro" jivemacro_uid="_14094570089658816"&gt;
&lt;P&gt;import arcpy&lt;/P&gt;
&lt;P&gt;from arcpy.sa import *&lt;/P&gt;
&lt;P&gt;dem = "C:/examples/data/dem" # reference to your DEM&lt;/P&gt;
&lt;P&gt;outname = "C:/examples/data/result" # output raster to be created&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;dem_ras = arcpy.Raster(dem) # create a raster object&lt;/P&gt;
&lt;P&gt;dem_min = dem_ras.minimum # get minimum of dem&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;outras = Con(dem_ras == dem_min, dem_ras)&lt;/P&gt;
&lt;P&gt;outras.save(outname)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Con&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//009z00000005000000" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//009z00000005000000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raster&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//018z00000051000000" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//018z00000051000000&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Aug 2014 03:50:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/basic-question-how-to-extract-a-cell-from-a-raster/m-p/267754#M15446</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2014-08-31T03:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Question: How to extract a Cell from a raster?</title>
      <link>https://community.esri.com/t5/data-management-questions/basic-question-how-to-extract-a-cell-from-a-raster/m-p/267755#M15447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the Python Code, i will try that out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 19:36:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/basic-question-how-to-extract-a-cell-from-a-raster/m-p/267755#M15447</guid>
      <dc:creator>FelixWiemann</dc:creator>
      <dc:date>2014-09-01T19:36:43Z</dc:date>
    </item>
  </channel>
</rss>

