<?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: Finding row and column number values of a specified pixel. in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/finding-row-and-column-number-values-of-a/m-p/262120#M14997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Erica,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A colleague of mine pointed out a couple of postings that contain information that allow this functionality at ArcGIS 10 using arcpy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/18608-internal-grids-rowmap-colmap-xmap-ymap?highlight=rowmap"&gt;http://forums.arcgis.com/threads/18608-internal-grids-rowmap-colmap-xmap-ymap?highlight=rowmap&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/865-quot-built-in-quot-rasters-in-python-map-algebra"&gt;http://forums.arcgis.com/threads/865-quot-built-in-quot-rasters-in-python-map-algebra&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first link has a code example you might find useful, and the second link has some useful information also.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Patrick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Sep 2011 16:33:34 GMT</pubDate>
    <dc:creator>PatrickTaurman</dc:creator>
    <dc:date>2011-09-30T16:33:34Z</dc:date>
    <item>
      <title>Finding row and column number values of a specified pixel.</title>
      <link>https://community.esri.com/t5/data-management-questions/finding-row-and-column-number-values-of-a/m-p/262117#M14994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there any (simple) way to find the row and column number of a pixel in a raster?&amp;nbsp; Not the VALUE of the pixel, simply its location in terms of rows and columns.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 20:23:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/finding-row-and-column-number-values-of-a/m-p/262117#M14994</guid>
      <dc:creator>EricaNewton</dc:creator>
      <dc:date>2011-09-27T20:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Finding row and column number values of a specified pixel.</title>
      <link>https://community.esri.com/t5/data-management-questions/finding-row-and-column-number-values-of-a/m-p/262118#M14995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This can be done using two methods, one of which utilizes the Field Calculator, and the second which utilizes Spatial Analyst and ArcGIS 9.3.x: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use the following equations in the Field Calculator of the points to find columns and rows: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Int(Abs((X - &lt;X&gt; ) / Z) + 1)&lt;/X&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Int(Abs((Y - &lt;Y&gt; ) / Z) + 1) &lt;/Y&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where X and Y are the starting X/Y location of the raster, &lt;X&gt; and &lt;Y&gt; are the X/Y location of the point, and Z is the pixel size. &lt;/Y&gt;&lt;/X&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please see the following example: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Int(Abs ((-80 - &lt;X&gt; ) / .00083333333) + 1) &lt;/X&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Int(Abs ((35 - &lt;Y&gt; ) / .00083333333) + 1) &lt;/Y&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where -80 and 35 are the starting X/Y location of the raster, &lt;X&gt; and &lt;Y&gt; are the X/Y location of the point, and .00083333333 is the pixel size.&amp;nbsp; &lt;/Y&gt;&lt;/X&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or if you have Spatial Analyst and are using ArcGIS 9.3.x:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Open Single Output Map Algebra tool in Spatial Analyst tools &amp;gt; Map Algebra. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Type $$rowmap + 1 in the Map Algebra Expression window. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Click the Environments button and set your environments for extent and cellsize to that of the original raster. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Change the name of the output to Rows &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Click OK and let the tool run. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Open Single Output Map Algebra tool in Spatial Analyst tools &amp;gt; Map Algebra. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Type $$colmap + 1 in the Map Algebra Expression window. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Click the Environments button and set your environments for extent and cellsize to that of the original raster. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Change the name of the output to Columns &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Click OK and let the tool run. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Open the Sample tool found in Spatial Analyst Tools &amp;gt; Extraction. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Select the two rasters we created (Rows and Columns). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Select the point inputs. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Click OK and let the tool run. You will now have a table with the column and row of each point. To get the desired information in the point file attribute table, join the data together (export to a new shapefile to make it permanent). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't believe the second workflow will work with ArcGIS 10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Patrick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 12:01:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/finding-row-and-column-number-values-of-a/m-p/262118#M14995</guid>
      <dc:creator>PatrickTaurman</dc:creator>
      <dc:date>2011-09-28T12:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Finding row and column number values of a specified pixel.</title>
      <link>https://community.esri.com/t5/data-management-questions/finding-row-and-column-number-values-of-a/m-p/262119#M14996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Patrick,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did a version your first suggestion by hand before posting, I was just hoping there was an easier way; I'm using arc 10 so your second solution may be moot.&amp;nbsp; I'm just completely flabbergasted that there isn't an easier way to do this.&amp;nbsp; I ended up exporting the file to photoshop and zooming in to use the ruler to find the approximate locations I needed.&amp;nbsp; This would be a great feature in a future version!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your answers!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Erica&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 00:21:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/finding-row-and-column-number-values-of-a/m-p/262119#M14996</guid>
      <dc:creator>EricaNewton</dc:creator>
      <dc:date>2011-09-30T00:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Finding row and column number values of a specified pixel.</title>
      <link>https://community.esri.com/t5/data-management-questions/finding-row-and-column-number-values-of-a/m-p/262120#M14997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Erica,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A colleague of mine pointed out a couple of postings that contain information that allow this functionality at ArcGIS 10 using arcpy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/18608-internal-grids-rowmap-colmap-xmap-ymap?highlight=rowmap"&gt;http://forums.arcgis.com/threads/18608-internal-grids-rowmap-colmap-xmap-ymap?highlight=rowmap&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/865-quot-built-in-quot-rasters-in-python-map-algebra"&gt;http://forums.arcgis.com/threads/865-quot-built-in-quot-rasters-in-python-map-algebra&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first link has a code example you might find useful, and the second link has some useful information also.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Patrick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 16:33:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/finding-row-and-column-number-values-of-a/m-p/262120#M14997</guid>
      <dc:creator>PatrickTaurman</dc:creator>
      <dc:date>2011-09-30T16:33:34Z</dc:date>
    </item>
  </channel>
</rss>

