<?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 Create a new Raster, determining new cell values based on list in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/create-a-new-raster-determining-new-cell-values/m-p/255468#M19614</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm currently using ArcGIS 10.2.2 (Advanced).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to generate a new raster from an existing raster by comparing the cell values to a list where an new cell value will be listed against the old value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The existing unique list of values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;1&lt;/LI&gt;&lt;LI&gt;8&lt;/LI&gt;&lt;LI&gt;7&lt;/LI&gt;&lt;LI&gt;6&lt;/LI&gt;&lt;LI&gt;5&lt;/LI&gt;&lt;LI&gt;4&lt;/LI&gt;&lt;LI&gt;3&lt;/LI&gt;&lt;LI&gt;2&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new cell values are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/LI&gt;&lt;LI&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&lt;/LI&gt;&lt;LI&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7&lt;/LI&gt;&lt;LI&gt;8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/LI&gt;&lt;LI&gt;16&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/LI&gt;&lt;LI&gt;32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/LI&gt;&lt;LI&gt;64&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/LI&gt;&lt;LI&gt;128&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for advice in how I can achieve creating a new raster based on comparing the existing cell values and replacing them with the new cell values using python. I could create a map algebra function to achieve the following using if statements, but feel that there should be a better method using Python. I was wondering if numpy arrays to achieve the following is suitable, but I have used them before so any help in getting started will be appreciated. Any other methods using python are also welcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jan 2016 20:19:35 GMT</pubDate>
    <dc:creator>PeterWilson</dc:creator>
    <dc:date>2016-01-12T20:19:35Z</dc:date>
    <item>
      <title>Create a new Raster, determining new cell values based on list</title>
      <link>https://community.esri.com/t5/python-questions/create-a-new-raster-determining-new-cell-values/m-p/255468#M19614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm currently using ArcGIS 10.2.2 (Advanced).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to generate a new raster from an existing raster by comparing the cell values to a list where an new cell value will be listed against the old value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The existing unique list of values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;1&lt;/LI&gt;&lt;LI&gt;8&lt;/LI&gt;&lt;LI&gt;7&lt;/LI&gt;&lt;LI&gt;6&lt;/LI&gt;&lt;LI&gt;5&lt;/LI&gt;&lt;LI&gt;4&lt;/LI&gt;&lt;LI&gt;3&lt;/LI&gt;&lt;LI&gt;2&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new cell values are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/LI&gt;&lt;LI&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&lt;/LI&gt;&lt;LI&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7&lt;/LI&gt;&lt;LI&gt;8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/LI&gt;&lt;LI&gt;16&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/LI&gt;&lt;LI&gt;32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/LI&gt;&lt;LI&gt;64&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/LI&gt;&lt;LI&gt;128&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for advice in how I can achieve creating a new raster based on comparing the existing cell values and replacing them with the new cell values using python. I could create a map algebra function to achieve the following using if statements, but feel that there should be a better method using Python. I was wondering if numpy arrays to achieve the following is suitable, but I have used them before so any help in getting started will be appreciated. Any other methods using python are also welcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 20:19:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-a-new-raster-determining-new-cell-values/m-p/255468#M19614</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2016-01-12T20:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new Raster, determining new cell values based on list</title>
      <link>https://community.esri.com/t5/python-questions/create-a-new-raster-determining-new-cell-values/m-p/255469#M19615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;these come to mind&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/3d-analyst-toolbox/reclass-by-table.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/3d-analyst-toolbox/reclass-by-table.htm"&gt;Reclass by Table—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/3d-analyst-toolbox/reclass-by-ascii-file.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/3d-analyst-toolbox/reclass-by-ascii-file.htm"&gt;Reclass by ASCII File—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/3d-analyst-toolbox/an-overview-of-the-reclass-tools.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/3d-analyst-toolbox/an-overview-of-the-reclass-tools.htm"&gt;An overview of the Raster Reclass tools—Help | ArcGIS for Desktop&lt;/A&gt; or just about any in here.&amp;nbsp; There is no need to use the raster calculator or if statements.&amp;nbsp; These functions can be done in numpy, but if you have the spatial analyst extension, you may as well use the existing tools&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 20:26:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-a-new-raster-determining-new-cell-values/m-p/255469#M19615</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-01-12T20:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new Raster, determining new cell values based on list</title>
      <link>https://community.esri.com/t5/python-questions/create-a-new-raster-determining-new-cell-values/m-p/255470#M19616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reminding me about the reclass by table tool, clean forgot about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Peter Wilson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 21:29:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-a-new-raster-determining-new-cell-values/m-p/255470#M19616</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2016-01-12T21:29:31Z</dc:date>
    </item>
  </channel>
</rss>

