<?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 Batch Process Slope Tool in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/batch-process-slope-tool/m-p/410372#M32353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a large collection of DEM's which I want to run through Arc's slope tool to create a slope data layer.&amp;nbsp; Anybody out there done this before?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jun 2011 20:20:08 GMT</pubDate>
    <dc:creator>DerrickFrese</dc:creator>
    <dc:date>2011-06-06T20:20:08Z</dc:date>
    <item>
      <title>Batch Process Slope Tool</title>
      <link>https://community.esri.com/t5/python-questions/batch-process-slope-tool/m-p/410372#M32353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a large collection of DEM's which I want to run through Arc's slope tool to create a slope data layer.&amp;nbsp; Anybody out there done this before?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 20:20:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-process-slope-tool/m-p/410372#M32353</guid>
      <dc:creator>DerrickFrese</dc:creator>
      <dc:date>2011-06-06T20:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Process Slope Tool</title>
      <link>https://community.esri.com/t5/python-questions/batch-process-slope-tool/m-p/410373#M32354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is an example on how to run the Slope tool from Spatial Analyst on a collection of individual DEMs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
from arcpy import env
from arcpy import sa
from arcpy.sa import *

arcpy.CheckOutExtension("Spatial")

env.workspace = r"C:\DATA\DEM"

lstRasters = arcpy.ListRasters("*")

for raster in lstRasters:&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; outSlope = Slope(raster, "DEGREE", .3048)
&amp;nbsp;&amp;nbsp;&amp;nbsp; outSlope.save(r"C:\DATA\DEM" + "\\" + str(raster) + "_slope.tif")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:38:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-process-slope-tool/m-p/410373#M32354</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-11T18:38:47Z</dc:date>
    </item>
  </channel>
</rss>

