<?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 transfer a query from R. Calculator to ArcPy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45688#M3639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot Mr. Darren Wiens. But i need a little more help if you can. The entire code should seem like;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Mar 2015 18:05:15 GMT</pubDate>
    <dc:creator>KONPETROV</dc:creator>
    <dc:date>2015-03-16T18:05:15Z</dc:date>
    <item>
      <title>How to transfer a query from R. Calculator to ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45686#M3637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using ArcGis 10.2. I have 3 classified rasters and i want to use the following query from r. calculator:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (rclslope&amp;gt;=45) &amp;amp; (rclmosaic&amp;gt;=2000) &amp;amp; (rclfocal&amp;gt;15) to arc.py&lt;/P&gt;&lt;P&gt;how can i write it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it better to use local - combine tool with arc.py to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 14:22:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45686#M3637</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-03-16T14:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer a query from R. Calculator to ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45687#M3638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could ​use the Con tool (see &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Con/009z00000005000000/"&gt;this page&lt;/A&gt; for relevant examples):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="_jivemacro_uid_1426520724310269 jive_macro_code jive_text_macro" data-renderedposition="50_8_912_16" jivemacro_uid="_1426520724310269"&gt;&lt;P&gt;Con(("rclslope"&amp;gt;=45)&amp;amp;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;("rclmosaic"&amp;gt;=2000&lt;/SPAN&gt;)&amp;amp;("&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;rclfocal"&amp;gt;15&lt;/SPAN&gt;),1)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns a raster with pixel value = 1 which meets the criteria. If you're looking for a way to spatially query pixel values in ArcGIS, that doesn't exist to my knowledge.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 15:47:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45687#M3638</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-03-16T15:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer a query from R. Calculator to ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45688#M3639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot Mr. Darren Wiens. But i need a little more help if you can. The entire code should seem like;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 18:05:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45688#M3639</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-03-16T18:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer a query from R. Calculator to ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45689#M3640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are lots of arcpy examples using Con &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Con/009z00000005000000/"&gt;here&lt;/A&gt;​ - scroll to the bottom.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 18:08:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45689#M3640</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-03-16T18:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer a query from R. Calculator to ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45690#M3641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So we mean something like that?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kn" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; &lt;SPAN class="nn"&gt;arcpy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kn" style="color: #0000ff;"&gt;from&lt;/SPAN&gt; &lt;SPAN class="nn"&gt;arcpy&lt;/SPAN&gt; &lt;SPAN class="kn" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; &lt;SPAN class="n"&gt;env&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kn" style="color: #0000ff;"&gt;from&lt;/SPAN&gt; &lt;SPAN class="nn"&gt;arcpy.sa&lt;/SPAN&gt; &lt;SPAN class="kn" style="color: #0000ff;"&gt;import&lt;/SPAN&gt; &lt;SPAN class="o"&gt;*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n"&gt;env&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;workspace&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s" style="color: #a31515;"&gt;"C:/sapyexamples/data"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n"&gt;outCon&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;Con((&lt;/SPAN&gt;&lt;SPAN class="string" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: blue;"&gt;"rclslope"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN class="number" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: green;"&gt;45&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;)&amp;amp;(&lt;/SPAN&gt;&lt;SPAN class="string" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: blue;"&gt;"rclmosaic"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN class="number" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: green;"&gt;2000&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;)&amp;amp;(&lt;/SPAN&gt;&lt;SPAN class="string" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: blue;"&gt;"rclfocal"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="number" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: green;"&gt;15&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;),&lt;/SPAN&gt;&lt;SPAN class="number" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: green;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n"&gt;outCon&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;save&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s" style="color: #a31515;"&gt;"C:/sapyexamples/output/outcon"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 18:11:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45690#M3641</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-03-16T18:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer a query from R. Calculator to ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45691#M3642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because with that i get an error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 18:16:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45691#M3642</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-03-16T18:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer a query from R. Calculator to ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45692#M3643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well the error would help and you should have spaces between the grid names and the operands and perhaps it can't find the grids (assumed since there are no file extensions)&amp;nbsp;&amp;nbsp; And the big one is that you didn't make raster objects from you grid names.&amp;nbsp; and please tell me that you have a path called c:/saexamples to test it in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n"&gt;env&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;workspace&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"C:/sapyexamples/data"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n"&gt;inRas1&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="n"&gt;Raster&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"inRaster"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="p"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="p"&gt;inRaster is inside the path&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="p"&gt;inRas1 is a Raster object which is needed by the Con statement&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 18:27:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45692#M3643</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-03-16T18:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer a query from R. Calculator to ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45693#M3644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agreed, mostly. What's this about spaces? AFAIK, they are irrelevant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 18:49:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45693#M3644</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-03-16T18:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer a query from R. Calculator to ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45694#M3645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mr. Patterson i think i cannot understand you very well. I am still new in programming.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 20:26:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45694#M3645</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-03-16T20:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer a query from R. Calculator to ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45695#M3646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post the error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 20:30:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45695#M3646</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-03-16T20:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer a query from R. Calculator to ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45696#M3647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Runtime error &lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 5, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\sa\Functions.py", line 244, in Con&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where_clause)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\sa\Utils.py", line 47, in swapper&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = wrapper(*args, **kwargs)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\sa\Functions.py", line 228, in Wrapper&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ["IfThen", in_conditional_raster, in_true_raster_or_constant])&lt;/P&gt;&lt;P&gt;RuntimeError: ERROR 999998: Unexpected Error.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This keeps appearing with the following code:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN class="kn" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;import&lt;/SPAN&gt; &lt;SPAN class="nn" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;arcpy&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN class="kn" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;from&lt;/SPAN&gt; &lt;SPAN class="nn" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;arcpy&lt;/SPAN&gt; &lt;SPAN class="kn" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;import&lt;/SPAN&gt; &lt;SPAN class="n" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;env&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN class="kn" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;from&lt;/SPAN&gt; &lt;SPAN class="nn" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;arcpy.sa&lt;/SPAN&gt; &lt;SPAN class="kn" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;import&lt;/SPAN&gt; &lt;SPAN class="o" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;*&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN class="n" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;env&lt;/SPAN&gt;&lt;SPAN class="o" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;workspace&lt;/SPAN&gt; &lt;SPAN class="o" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #a31515;"&gt;"C:/sapyexamples/data"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN class="n" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;outCon&lt;/SPAN&gt; &lt;SPAN class="o" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;Con( ( &lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: blue;"&gt;"rclslope" &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;&amp;gt;= &lt;/SPAN&gt;&lt;SPAN class="number" style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: green;"&gt;45 &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;) &amp;amp; ( &lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: blue;"&gt;"rclmosaic" &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;&amp;gt;= &lt;/SPAN&gt;&lt;SPAN class="number" style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: green;"&gt;2000 &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;) &amp;amp; ( &lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: blue;"&gt;"rclfocal" &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN class="number" style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: green;"&gt;15 &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;), &lt;/SPAN&gt;&lt;SPAN class="number" style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: green;"&gt;1 &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN class="n" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;outCon&lt;/SPAN&gt;&lt;SPAN class="o" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;save&lt;/SPAN&gt;&lt;SPAN class="p" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #a31515;"&gt;"C:/sapyexamples/output/outCon"&lt;/SPAN&gt;&lt;SPAN class="p" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 20:49:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45696#M3647</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-03-16T20:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer a query from R. Calculator to ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45697#M3648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN class="n" style="font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;outCon&lt;/SPAN&gt; &lt;SPAN class="o" style="font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;Con( ( Raster(&lt;/SPAN&gt;&lt;SPAN class="string" style="color: blue; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;"rclslope") &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;&amp;gt;= &lt;/SPAN&gt;&lt;SPAN class="number" style="color: green; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;45 &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;) &amp;amp; ( Raster(&lt;/SPAN&gt;&lt;SPAN class="string" style="color: blue; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;"rclmosaic") &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;&amp;gt;= &lt;/SPAN&gt;&lt;SPAN class="number" style="color: green; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;2000 &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;) &amp;amp; ( Raster(&lt;/SPAN&gt;&lt;SPAN class="string" style="color: blue; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;"rclfocal") &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN class="number" style="color: green; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;15 &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;), &lt;/SPAN&gt;&lt;SPAN class="number" style="color: green; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;1, 0 &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN class="n" style="font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;outCon&lt;/SPAN&gt;&lt;SPAN class="o" style="font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n" style="font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;save&lt;/SPAN&gt;&lt;SPAN class="p" style="font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s" style="color: #a31515; font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;"C:/sapyexamples/output/outCon"&lt;/SPAN&gt;&lt;SPAN class="p" style="font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 21:17:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45697#M3648</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-03-16T21:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer a query from R. Calculator to ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45698#M3649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mr. Wiens Unfortunately yes they exist!! Grid format also!! For God.&lt;/P&gt;&lt;P&gt;Mr. Patterson so finally we have that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;from arcpy import env&lt;/P&gt;&lt;P&gt;from arcpy.sa import *&lt;/P&gt;&lt;P&gt;env.workspace = "c:/&lt;SPAN style="color: #a31515; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;sapyexamples&lt;/SPAN&gt;/data"&lt;/P&gt;&lt;P&gt;outCon = Con( ( Raster("rclslope") &amp;gt;= 45 ) &amp;amp; ( Raster("rclmosaic") &amp;gt;= 2000 ) &amp;amp; ( Raster("rclfocal") &amp;gt; 15 ), 1, 0 )&lt;/P&gt;&lt;P&gt;outCon.save("c:&lt;SPAN style="color: #a31515; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;/sapyexamples/output/outCon&lt;/SPAN&gt;")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right?&lt;/P&gt;&lt;P&gt;When i am loading it i am getting a raster with an attribute table with only one row and one colour all over the layer. No classes not anything. Why is that?&lt;/P&gt;&lt;P&gt;If i write the same proccedure in Raster Calculator &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; (rclslope&amp;gt;=45) &amp;amp; (rclmosaic&amp;gt;=2000) &amp;amp; (rclfocal&amp;gt;15)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;i ll get the result i want, here what am i doing wrong. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 21:28:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45698#M3649</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-03-16T21:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer a query from R. Calculator to ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45699#M3650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the raster calculator is different that a script that uses rasters in a script. If the script gives you a result and you have a table, then you will have one of 2 values... 1 (where the condition is met) or 0 (where the condition is not met)&amp;nbsp; A smart approach would be to use the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Con/009z00000005000000/"&gt;Con tool in arctoolbox&lt;/A&gt; then if that works, go to the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//002100000013000000"&gt;Results window&lt;/A&gt; and use that as the snippet for your code &lt;A _jive_internal="true" href="https://community.esri.com/blogs/dan_patterson"&gt;see my blog for examples&lt;/A&gt; related to Results and other programming tips&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 21:45:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45699#M3650</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-03-16T21:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer a query from R. Calculator to ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45700#M3651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much sir, i ll try it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 21:50:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45700#M3651</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-03-16T21:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer a query from R. Calculator to ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45701#M3652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both on of the problems was that : &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;rclslope &amp;gt;= 45 !! e.g. rclslope it's already reclassified, so i just had to put slope. The other problem was something that had to do with my computer and Gis 10.2. so i put my computer on an earlier state to solve it. The code is working perfectly now with your corrections, that thing with spaces is very tricky.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 01:01:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45701#M3652</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-03-17T01:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer a query from R. Calculator to ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45702#M3653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;glad it is resolved &lt;/EM&gt;... tips for the future...never assume your inputs are correct, start from the beginning...always build incrementally, don't try to do a complex statement all at once, errors will be readily identified&amp;nbsp; good luck​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 01:17:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-transfer-a-query-from-r-calculator-to-arcpy/m-p/45702#M3653</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-03-17T01:17:40Z</dc:date>
    </item>
  </channel>
</rss>

