<?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: useing tools with Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/useing-tools-with-python/m-p/606832#M47423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you need to specify a workspace for the grid to go to&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy
from arcpy import env
from arcpy.sa import *
env.workspace = "c:/putYourFolderNameHereAsInTheExample")
outSlope = Slope("Elev","DEGREE", 0.3043)
outSlope.save("c:/putYourFolderNameHereAsInTheExample/SlpDeg")


&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 01:59:53 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2021-12-12T01:59:53Z</dc:date>
    <item>
      <title>useing tools with Python</title>
      <link>https://community.esri.com/t5/python-questions/useing-tools-with-python/m-p/606829#M47420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just started the Spatial Analyst training and got a problem already. I cant start tools in the command line of python. The instruction says "Only tools that are in ArcToolbox can be run from the command line". So, the spatial analyst extension is enabled and the tools work fine in the toolbox, but when I type the tool in the command line he cant find it (for &lt;/SPAN&gt;&lt;STRONG&gt;s&lt;/STRONG&gt;&lt;SPAN&gt;lope e.g. he only finds sys). Do I have to connect Python with my toolbox in some way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I^ve reinstalled ArcInfo allready (my whole system) but nothing changed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope someone could help. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greetings&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;m&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 08:41:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/useing-tools-with-python/m-p/606829#M47420</guid>
      <dc:creator>ManuelBeck</dc:creator>
      <dc:date>2011-03-24T08:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: useing tools with Python</title>
      <link>https://community.esri.com/t5/python-questions/useing-tools-with-python/m-p/606830#M47421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are using version 10 of ArcMap, see the code examples here&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z000000v2000000.htm"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z000000v2000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 09:37:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/useing-tools-with-python/m-p/606830#M47421</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-03-24T09:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: useing tools with Python</title>
      <link>https://community.esri.com/t5/python-questions/useing-tools-with-python/m-p/606831#M47422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the help. I´ve found a free training (Using Python in ArcGIS Desktop 10) ,too. But I totally got no clue about programming and python. Therefore I need some help to find a starting point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; So e.g. I want to slope my input Raster (Elev) into a output (SlpDeg) and the unit is Degree. This is the code from ArcGis10 Help:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy.sa import *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.workspace = "C:/sapyexamples/data"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outSlope = Slope("elevation", "DEGREE", 0.3043)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outSlope.save("C:/sapyexamples/output/outslope01")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I modified it this way&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy.sa import *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.workspace = "Elev"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;outSlope = Slope("elevation", "DEGREE", 0.3043)&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;STRONG&gt;???&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;outSlope.save("SlpDeg")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How to modify the outSlope?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Greetings&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 10:30:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/useing-tools-with-python/m-p/606831#M47422</guid>
      <dc:creator>ManuelBeck</dc:creator>
      <dc:date>2011-03-24T10:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: useing tools with Python</title>
      <link>https://community.esri.com/t5/python-questions/useing-tools-with-python/m-p/606832#M47423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you need to specify a workspace for the grid to go to&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy
from arcpy import env
from arcpy.sa import *
env.workspace = "c:/putYourFolderNameHereAsInTheExample")
outSlope = Slope("Elev","DEGREE", 0.3043)
outSlope.save("c:/putYourFolderNameHereAsInTheExample/SlpDeg")


&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:59:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/useing-tools-with-python/m-p/606832#M47423</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T01:59:53Z</dc:date>
    </item>
  </channel>
</rss>

