<?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: How to assign a unique Value for cells in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/how-to-assign-a-unique-value-for-cells/m-p/2690#M145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A non-Python way is to create a fishnet exactly the same as the grid you want: same extents, same cell size.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Build polygons from the fishnet lines&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The polygons will all have unique feature ids.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;convert the field of little square polygons to a raster with cells the same size as your little squares, using the (unique) feature ids as the value.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Oct 2011 18:30:38 GMT</pubDate>
    <dc:creator>markdenil</dc:creator>
    <dc:date>2011-10-25T18:30:38Z</dc:date>
    <item>
      <title>How to assign a unique Value for cells</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-assign-a-unique-value-for-cells/m-p/2687#M142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi..I wanted to assign a unique value (number) for each cell in the grid..I just wonder if any one can help me ..For my knowledge ArcMap 10 has no such tool, and I guess the only way to do it is through python programming..That is my thought, I may be wrong, don't know..Appreciate if some one can help me out..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 15:49:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-assign-a-unique-value-for-cells/m-p/2687#M142</guid>
      <dc:creator>ABDALLAMOHAMED</dc:creator>
      <dc:date>2011-10-25T15:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign a unique Value for cells</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-assign-a-unique-value-for-cells/m-p/2688#M143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Below provides some food for thought, please consult the appropriate help topics for other options.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;gt;&amp;gt;&amp;gt; import numpy as np
&amp;gt;&amp;gt;&amp;gt; unique = np.arange(100)
&amp;gt;&amp;gt;&amp;gt; unique = unique.reshape(10,10)
&amp;gt;&amp;gt;&amp;gt; unique
array([[ 0,&amp;nbsp; 1,&amp;nbsp; 2,&amp;nbsp; 3,&amp;nbsp; 4,&amp;nbsp; 5,&amp;nbsp; 6,&amp;nbsp; 7,&amp;nbsp; 8,&amp;nbsp; 9],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [10, 11, 12, 13, 14, 15, 16, 17, 18, 19],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [20, 21, 22, 23, 24, 25, 26, 27, 28, 29],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [30, 31, 32, 33, 34, 35, 36, 37, 38, 39],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [40, 41, 42, 43, 44, 45, 46, 47, 48, 49],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [50, 51, 52, 53, 54, 55, 56, 57, 58, 59],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [60, 61, 62, 63, 64, 65, 66, 67, 68, 69],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [70, 71, 72, 73, 74, 75, 76, 77, 78, 79],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [80, 81, 82, 83, 84, 85, 86, 87, 88, 89],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [90, 91, 92, 93, 94, 95, 96, 97, 98, 99]])
&amp;gt;&amp;gt;&amp;gt; import arcpy
&amp;gt;&amp;gt;&amp;gt; out_raster = arcpy.NumPyArrayToRaster(unique)
&amp;gt;&amp;gt;&amp;gt; out_raster.save("c:/temp/testRaster")
&amp;gt;&amp;gt;&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:07:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-assign-a-unique-value-for-cells/m-p/2688#M143</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-10T20:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign a unique Value for cells</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-assign-a-unique-value-for-cells/m-p/2689#M144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Dan..Let me give it a try and see, I never used Python before..??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 16:21:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-assign-a-unique-value-for-cells/m-p/2689#M144</guid>
      <dc:creator>ABDALLAMOHAMED</dc:creator>
      <dc:date>2011-10-25T16:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign a unique Value for cells</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-assign-a-unique-value-for-cells/m-p/2690#M145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A non-Python way is to create a fishnet exactly the same as the grid you want: same extents, same cell size.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Build polygons from the fishnet lines&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The polygons will all have unique feature ids.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;convert the field of little square polygons to a raster with cells the same size as your little squares, using the (unique) feature ids as the value.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 18:30:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-assign-a-unique-value-for-cells/m-p/2690#M145</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2011-10-25T18:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign a unique Value for cells</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-assign-a-unique-value-for-cells/m-p/2691#M146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Similar to the fishnet...this requires the correct tool (spatial analyst?) licenses but is very straight forward.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use Raster to point tool - creates a point theme with a value field from the raster (These values I assume you do not require)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then calculate a unique ID field in this dataset using field calculater --&amp;gt; FID / ObjectID&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally, Point to Raster tool - select your uniqueID values field instead of the original value field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 13:37:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-assign-a-unique-value-for-cells/m-p/2691#M146</guid>
      <dc:creator>LukeWebb</dc:creator>
      <dc:date>2011-10-26T13:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign a unique Value for cells</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-assign-a-unique-value-for-cells/m-p/2692#M147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks all of you for your contributions..Appreciated..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 18:34:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-assign-a-unique-value-for-cells/m-p/2692#M147</guid>
      <dc:creator>ABDALLAMOHAMED</dc:creator>
      <dc:date>2011-10-26T18:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign a unique Value for cells</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-assign-a-unique-value-for-cells/m-p/2693#M148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi..I wanted to assign a unique value (number) for each cell in the grid..I just wonder if any one can help me ..For my knowledge ArcMap 10 has no such tool, and I guess the only way to do it is through python programming..That is my thought, I may be wrong, don't know..Appreciate if some one can help me out..&lt;BR /&gt;Thanks a lot...&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi mykotti,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm looking for simple examples of using numpy for GIS and this seems like a good one -- except I don't really can't guess (or conjure) a reason for creating a raster with a unique value for each cell.&amp;nbsp; Could you explain?&amp;nbsp; Thanks.&amp;nbsp; -- LT&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 00:16:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-assign-a-unique-value-for-cells/m-p/2693#M148</guid>
      <dc:creator>LT1</dc:creator>
      <dc:date>2011-11-23T00:16:44Z</dc:date>
    </item>
  </channel>
</rss>

