<?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: translating from 9.3 Raster Calculator to 10.x  (python) Raster Calculator tool in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/need-help-translating-from-vb-to-python/m-p/397414#M5593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt; the "not equal" operator in Python is "!="&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;The names in quotes are (technically) raster layer names.&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my shot at it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;SetNull(("Ownership" != 200) | ("Soil" == 901), 1)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Arc 10.1 help:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00p600000018000000"&gt;Comparing Map Algebra between ArcGIS 9.x and 10&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//009z000000zn000000"&gt;Building Expressions in Raster Calculator&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2013 15:55:39 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2013-01-15T15:55:39Z</dc:date>
    <item>
      <title>Need help translating from VB to Python.</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/need-help-translating-from-vb-to-python/m-p/397412#M5591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm currently completing the spatial analyst training but unfortunately it was made for 9.3, while I'm using 10.1. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While using the raster calculator I'm having trouble translating this to python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example is: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SetNull([Ownership] &amp;lt;&amp;gt; 200 OR [Soil] == 901, 1)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jan 2013 22:02:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/need-help-translating-from-vb-to-python/m-p/397412#M5591</guid>
      <dc:creator>AlexFlanagan</dc:creator>
      <dc:date>2013-01-12T22:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help translating from VB to Python.</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/need-help-translating-from-vb-to-python/m-p/397413#M5592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SetNull(("Ownership"&amp;lt;&amp;gt; 200) | ("Soil" == 901), 1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Vertical Bar represents OR now. And raster names are within quotation marks. And I always find putting logic in its own brackets helps as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://www.simplygis.co.uk" rel="nofollow" target="_blank"&gt;simplyGIS. Making GIS simple.&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://www.simplygis.co.uk/GISTraining.html" rel="nofollow" target="_blank"&gt;www.simplygis.co.uk/GISTraining.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post helped answer your query please mark as answered to let others know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 12:56:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/need-help-translating-from-vb-to-python/m-p/397413#M5592</guid>
      <dc:creator>DavidPetrey1</dc:creator>
      <dc:date>2013-01-15T12:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: translating from 9.3 Raster Calculator to 10.x  (python) Raster Calculator tool</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/need-help-translating-from-vb-to-python/m-p/397414#M5593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt; the "not equal" operator in Python is "!="&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;The names in quotes are (technically) raster layer names.&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my shot at it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;SetNull(("Ownership" != 200) | ("Soil" == 901), 1)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Arc 10.1 help:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00p600000018000000"&gt;Comparing Map Algebra between ArcGIS 9.x and 10&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//009z000000zn000000"&gt;Building Expressions in Raster Calculator&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 15:55:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/need-help-translating-from-vb-to-python/m-p/397414#M5593</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-01-15T15:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need help translating from VB to Python.</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/need-help-translating-from-vb-to-python/m-p/397415#M5594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah yes, the new symbol for doesn't equal is !=, though I find &amp;lt;&amp;gt; still works (or is this just a random thing of my installation?), which I usually end up typing out of habit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 06:15:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/need-help-translating-from-vb-to-python/m-p/397415#M5594</guid>
      <dc:creator>DavidPetrey1</dc:creator>
      <dc:date>2013-01-16T06:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help translating from VB to Python.</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/need-help-translating-from-vb-to-python/m-p/397416#M5595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Ah yes, the new symbol for doesn't equal is !=, though I find &amp;lt;&amp;gt; still works &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Learned something, thank you.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;[noparse]&lt;T&gt;[/noparse]his is an obsolete usage kept for backwards compatibility only. New code should always use !=.&lt;/T&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Python docs: &lt;/SPAN&gt;&lt;A href="https://community.esri.com/"&gt;Built-in Types - Comparisons&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 14:28:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/need-help-translating-from-vb-to-python/m-p/397416#M5595</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-01-16T14:28:08Z</dc:date>
    </item>
  </channel>
</rss>

