<?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: Code Help!!! in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/code-help/m-p/369212#M29148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That worked &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW I'm working on quite a large script and I'm not well versed with Python so you'll probably hear from me again throughout the day.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;:confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jun 2013 14:58:33 GMT</pubDate>
    <dc:creator>ShikoNjuno</dc:creator>
    <dc:date>2013-06-26T14:58:33Z</dc:date>
    <item>
      <title>Code Help!!!</title>
      <link>https://community.esri.com/t5/python-questions/code-help/m-p/369210#M29146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="font-family:Comic Sans MS;"&gt;Below is a script I'm attempting to write for the selection of appropriate trees to meet certain criteria. I keep getting the following error and I'm not quite sure what to change.&lt;BR /&gt;Could somebody suggest what I could try to fix it.&lt;BR /&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; # Select vegetation areas with the correct type&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; select = arcpy.Select_analysis("Vegetation", "in_memory/select", """ "VEG_TYPE" In ('Coastal Sage-Chaparral Scrub','Diegan Coastal Sage Scrub','Maritime Succulent Scrub')"""&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Parsing error SyntaxError: invalid syntax (line 2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 14:50:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-help/m-p/369210#M29146</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-06-26T14:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Code Help!!!</title>
      <link>https://community.esri.com/t5/python-questions/code-help/m-p/369211#M29147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Need to close the paren:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;select = arcpy.Select_analysis("Vegetation", "in_memory/select", """ "VEG_TYPE" In ('Coastal Sage-Chaparral Scrub','Diegan Coastal Sage Scrub','Maritime Succulent Scrub')"""&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 14:54:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-help/m-p/369211#M29147</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2013-06-26T14:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Code Help!!!</title>
      <link>https://community.esri.com/t5/python-questions/code-help/m-p/369212#M29148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That worked &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW I'm working on quite a large script and I'm not well versed with Python so you'll probably hear from me again throughout the day.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;:confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 14:58:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-help/m-p/369212#M29148</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-06-26T14:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Code Help!!!</title>
      <link>https://community.esri.com/t5/python-questions/code-help/m-p/369213#M29149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="font-family:Comic Sans MS;"&gt;So now I'm trying to remove buffered roads from the previously selected areas.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; # Remove the buffered roads from the suitable vegetation areas&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; erase = arcpy.Erase_analysis(select, "buffer", "in_memory/erase")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error&amp;nbsp; Traceback (most recent call last):&amp;nbsp;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&amp;nbsp;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\analysis.py", line 205, in Erase&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e ExecuteError: ERROR 000732: Input Features: Dataset in_memory\select does not exist or is not supported&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Comic Sans MS;"&gt;So then I tried changing the buffer feature, but nothing doing&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; erase = arcpy.Erase_analysis(select, buffer, "in_memory/erase")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error&amp;nbsp; Traceback (most recent call last):&amp;nbsp;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&amp;nbsp;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\analysis.py", line 205, in Erase&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e ExecuteError: ERROR 000732: Input Features: Dataset in_memory\select does not exist or is not supported&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Comic Sans MS;"&gt;What's strange is that when I selected the vegetation ArcMap created results for that but when I added the buffer code, ArcMap also added it to my list of layers (in addition to showing the results). Could someone help me understand what's going on here.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 15:13:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/code-help/m-p/369213#M29149</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-06-26T15:13:33Z</dc:date>
    </item>
  </channel>
</rss>

