<?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: arcpy.Clip_management -&amp;gt; Error: Floating point division by zero. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-clip-management-gt-error-floating-point/m-p/282172#M21779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have checked the projections in ArcMap of the raster and the .shp and they are both correct, they have the same projection. Do not know where the problem is:(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Sep 2014 10:16:46 GMT</pubDate>
    <dc:creator>MarcGoetzke</dc:creator>
    <dc:date>2014-09-02T10:16:46Z</dc:date>
    <item>
      <title>arcpy.Clip_management -&gt; Error: Floating point division by zero.</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-clip-management-gt-error-floating-point/m-p/282171#M21778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am using the arcpy.Clip_management tool with python and i always get the error: Floating point division by zero. In the past it worked. Has somebody an idea?&lt;/P&gt;&lt;P&gt;i have one raster map: test (folder)&lt;/P&gt;&lt;P&gt;and one clipping file: schab.shp&lt;/P&gt;&lt;P&gt;my Python code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def main():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace = r'F:/2007/test_rastered'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Clip_management('test', "#", 'F:/2007/test_clipped/test', 'F:/Schablone/schab.shp' , "0", "ClippingGeometry", "NO_MAINTAIN_EXTENT")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if __name__ == '__main__':&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 10:14:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-clip-management-gt-error-floating-point/m-p/282171#M21778</guid>
      <dc:creator>MarcGoetzke</dc:creator>
      <dc:date>2014-09-02T10:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Clip_management -&gt; Error: Floating point division by zero.</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-clip-management-gt-error-floating-point/m-p/282172#M21779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have checked the projections in ArcMap of the raster and the .shp and they are both correct, they have the same projection. Do not know where the problem is:(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 10:16:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-clip-management-gt-error-floating-point/m-p/282172#M21779</guid>
      <dc:creator>MarcGoetzke</dc:creator>
      <dc:date>2014-09-02T10:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Clip_management -&gt; Error: Floating point division by zero.</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-clip-management-gt-error-floating-point/m-p/282173#M21780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange..., try setting some more environments settings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in_raster = r'c:\path\to\the\raster'&lt;/P&gt;&lt;P&gt;arcpy.env.snapRaster = in_raster&lt;/P&gt;&lt;P&gt;arcpy.env.extent = arcpy.Describe(in_raster).extent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider also arcpy.env.cellSize and other environment settings listed towards the end of the Tool's help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I think the tool may fail if the polygon you are trying to clip the raster with is too small (relative to the raster cell size). Does your polygon cover more than just a few cells?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 10:37:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-clip-management-gt-error-floating-point/m-p/282173#M21780</guid>
      <dc:creator>FilipKrál</dc:creator>
      <dc:date>2014-09-02T10:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Clip_management -&gt; Error: Floating point division by zero.</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-clip-management-gt-error-floating-point/m-p/282174#M21781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx Filip. Good idea but it did not help. I still get the error: Floating point division by zero. My polygon for clipping is not small, it is 1/9 of the size of Germany. I want to clip a state of Germany. In did a new polygon who doesnt overlap but it didnt help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the error since i ran ccleaner. perhaps it deleted important temporary files.&lt;/P&gt;&lt;H6&gt;&lt;/H6&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i put these in front of the calculation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.env.snapRaster = in_raster&lt;/P&gt;&lt;P&gt;arcpy.env.extent = arcpy.Describe(in_raster).extent&lt;/P&gt;&lt;P&gt;arcpy.env.cellSize= in_raster&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.Clip_management(in_raster, "#", out_raster, shapef, "0", "ClippingGeometry", "NO_MAINTAIN_EXTENT")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 11:23:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-clip-management-gt-error-floating-point/m-p/282174#M21781</guid>
      <dc:creator>MarcGoetzke</dc:creator>
      <dc:date>2014-09-02T11:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Clip_management -&gt; Error: Floating point division by zero.</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-clip-management-gt-error-floating-point/m-p/282175#M21782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the error info: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exception class: EZeroDivide&lt;/P&gt;&lt;P&gt;Exception message: Floating point division by zero.&lt;/P&gt;&lt;P&gt;Exception address: 00007FFE5C004C5D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 11:36:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-clip-management-gt-error-floating-point/m-p/282175#M21782</guid>
      <dc:creator>MarcGoetzke</dc:creator>
      <dc:date>2014-09-02T11:36:33Z</dc:date>
    </item>
  </channel>
</rss>

