<?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: error with extract by mask in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-with-extract-by-mask/m-p/487161#M38032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks! just removing the special characters from the name of the DEM fixed it!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Oct 2013 19:43:40 GMT</pubDate>
    <dc:creator>katiemerriman</dc:creator>
    <dc:date>2013-10-29T19:43:40Z</dc:date>
    <item>
      <title>error with extract by mask</title>
      <link>https://community.esri.com/t5/python-questions/error-with-extract-by-mask/m-p/487159#M38030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi I am trying to batch extract by mask several watersheds from a single DEM. I know my DEM exists, however, I keep receiving the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; File "Z:/Sediment/extractbymask_edits.py", line 61, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; subbasinDEM = arcpy.gp.ExtractByMask(arc3_feet, subbasin)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; File "C:\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing\_base.py", line 474, in &amp;lt;lambda&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; return lambda *args: val(*gp_fixargs(args))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000860: Input raster: is not the type of Composite Geodataset, or does not exist.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (ExtractByMask).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure what I am doing wrong here. Is it because I am accessing the DEM from a network server?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks. My code below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Create the Geoprocessor object&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import sys, os, string&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Import arcpy module&lt;/SPAN&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;BR /&gt;&lt;SPAN&gt;# Check out any necessary licenses&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CheckOutExtension("Spatial")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dirpath = "Z:\\Sediment\\" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.workspace = dirpath + "\\DrainageAReas.gdb" #can set as argumment&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outpath = dirpath + "New File Geodatabase.gdb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Raster paths:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arc3_feet = "\\\\Sediment\\all_1-3arc"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# start loop of subbasin feature classes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fcList = arcpy.ListFeatureClasses() # return all features in workspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for subbasin in fcList:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; outfile = outpath + subbasin + "DEM"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; # Extract by mask&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; subbasinDEM = arcpy.gp.ExtractByMask(arc3_feet, subbasin, outfile)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 18:26:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-with-extract-by-mask/m-p/487159#M38030</guid>
      <dc:creator>katiemerriman</dc:creator>
      <dc:date>2013-10-29T18:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: error with extract by mask</title>
      <link>https://community.esri.com/t5/python-questions/error-with-extract-by-mask/m-p/487160#M38031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try converting your DEM from an ESRI GRID to another format, such as a .TIF, using the Copy Raster tool.&amp;nbsp; Also, for rasters, feature classes, shapefiles, etc you should not:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; Have any special characters in the name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; Have any spaces in the name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; Begin the name with a number&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 19:01:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-with-extract-by-mask/m-p/487160#M38031</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2013-10-29T19:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: error with extract by mask</title>
      <link>https://community.esri.com/t5/python-questions/error-with-extract-by-mask/m-p/487161#M38032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks! just removing the special characters from the name of the DEM fixed it!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 19:43:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-with-extract-by-mask/m-p/487161#M38032</guid>
      <dc:creator>katiemerriman</dc:creator>
      <dc:date>2013-10-29T19:43:40Z</dc:date>
    </item>
  </channel>
</rss>

