<?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: Simple Script for creating contours from a DEM in 3D Questions</title>
    <link>https://community.esri.com/t5/3d-questions/simple-script-for-creating-contours-from-a-dem/m-p/633873#M3771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its actually a complete script with pyscripter. I realize i can use the shell in the arc editor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Apr 2016 16:52:36 GMT</pubDate>
    <dc:creator>SaviourGidi</dc:creator>
    <dc:date>2016-04-12T16:52:36Z</dc:date>
    <item>
      <title>Simple Script for creating contours from a DEM</title>
      <link>https://community.esri.com/t5/3d-questions/simple-script-for-creating-contours-from-a-dem/m-p/633871#M3769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to Python and need to write a simple script (stand alone) for creating contours from a DEM. I have been looking at the syntax on this page&amp;nbsp; &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//009z000000ts000000" title="http://resources.arcgis.com/en/help/main/10.1/index.html#//009z000000ts000000"&gt;ArcGIS Help 10.1&lt;/A&gt; but am not quite sure how to understand it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know what a good starting place might be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-email-small" href="mailto:nmichelg@gmail.com"&gt;nmichelg@gmail.com&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I start with a #comment and go from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Natasha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 15:02:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/simple-script-for-creating-contours-from-a-dem/m-p/633871#M3769</guid>
      <dc:creator>natashaGregory-Michelman</dc:creator>
      <dc:date>2015-09-24T15:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Script for creating contours from a DEM</title>
      <link>https://community.esri.com/t5/3d-questions/simple-script-for-creating-contours-from-a-dem/m-p/633872#M3770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Between the help page and the examples at the bottom of it for a standalone script creating contours, I'm confused why you are having issues.&amp;nbsp; Could you be a little more clear about what you are having trouble with in regards to the tool syntax or python in general?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I further commented the standalone example script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# Name: Contour_Ex_02.py
# Description: Creates contours or isolines from a raster surface.
# Requirements: Spatial Analyst Extension


# Import system modules - Don't Change
import arcpy
from arcpy import env
from arcpy.sa import *


# Set environment settings
#This is the folder where your DEM is located, set your own
env.workspace = "C:/sapyexamples/data"


# Set local variables
#This is the name of your DEM file, set your own
inRaster = "elevation"
#This is the amount of elevation between contours(current you would get contours at 0, 200, 400 etc.)&amp;nbsp; It can be changed to any float value
contourInterval = 200
#Leave this one 0
baseContour = 0
#This is the output name and location of the contour shapefile to be created, set your own
outContours = "C:/sapyexamples/output/outcontours02.shp"


# Check out the ArcGIS Spatial Analyst extension license - Don't Change
arcpy.CheckOutExtension("Spatial")


# Execute Contour - Don't Change
Contour(inRaster, outContours, contourInterval, baseContour)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:58:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/simple-script-for-creating-contours-from-a-dem/m-p/633872#M3770</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2021-12-12T02:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Script for creating contours from a DEM</title>
      <link>https://community.esri.com/t5/3d-questions/simple-script-for-creating-contours-from-a-dem/m-p/633873#M3771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its actually a complete script with pyscripter. I realize i can use the shell in the arc editor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 16:52:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/simple-script-for-creating-contours-from-a-dem/m-p/633873#M3771</guid>
      <dc:creator>SaviourGidi</dc:creator>
      <dc:date>2016-04-12T16:52:36Z</dc:date>
    </item>
  </channel>
</rss>

