I have quite a few hundred rasters that I am looking to generate contour lines off. I have successfully run the Contour tool on individual rasters located in the 3D Analyst Tools -> Raster Surface -> toolkit but can anyone advise if there is a script or other tool that I can point to a series of directories to process quite a few hundred sets of contour lines off?
I've seen the script in the help file which is below but is there a fileobject algorithm that can be run over a directory with to extract filenames with many files in it?
Contour (3D Analyst)
<SPAN class=""># Name: Contour_3d_Ex_02.py</SPAN><SPAN class=""># Description: Creates contours or isolines from a raster surface.</SPAN><SPAN class=""># Requirements: 3D Analyst Extension</SPAN><SPAN class=""># Import system modules</SPAN><SPAN class="">import</SPAN> <SPAN class="">arcpy</SPAN><SPAN class="">from</SPAN> <SPAN class="">arcpy</SPAN> <SPAN class="">import</SPAN> <SPAN class="">env</SPAN><SPAN class=""># Set environment settings</SPAN><SPAN class="">env</SPAN><SPAN class="">.</SPAN><SPAN class="">workspace</SPAN> <SPAN class="">=</SPAN> <SPAN class="">"C:/data"</SPAN><SPAN class=""># Set local variables</SPAN><SPAN class="">inRaster</SPAN> <SPAN class="">=</SPAN> <SPAN class="">"elevation"</SPAN><SPAN class="">contourInterval</SPAN> <SPAN class="">=</SPAN> <SPAN class="">200</SPAN><SPAN class="">baseContour</SPAN> <SPAN class="">=</SPAN> <SPAN class="">0</SPAN><SPAN class="">outContours</SPAN> <SPAN class="">=</SPAN> <SPAN class="">"C:/sapyexamples/output/outcontours02.shp"</SPAN><SPAN class=""># Check out the ArcGIS 3D Analyst extension license</SPAN><SPAN class="">arcpy</SPAN><SPAN class="">.</SPAN><SPAN class="">CheckOutExtension</SPAN><SPAN class="">(</SPAN><SPAN class="">"3D"</SPAN><SPAN class="">)</SPAN><SPAN class=""># Execute Contour</SPAN><SPAN class="">arcpy</SPAN><SPAN class="">.</SPAN><SPAN class="">Contour_3d</SPAN><SPAN class="">(</SPAN><SPAN class="">inRaster</SPAN><SPAN class="">,</SPAN> <SPAN class="">outContours</SPAN><SPAN class="">,</SPAN> <SPAN class="">contourInterval</SPAN><SPAN class="">,</SPAN> <SPAN class="">baseContour</SPAN><SPAN class="">)</SPAN>