<?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 - Calculate volume using CutFill tool in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737180#M57035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/cut-fill.htm"&gt;Cut - Fill&lt;/A&gt;&amp;nbsp;and &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/how-cut-fill-works.htm"&gt;how cut fill works &lt;/A&gt;&amp;nbsp;When you say the results aren't right, then that raises the questions&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;are the data in projected coordinates?&lt;/LI&gt;&lt;LI&gt;is the z-factor correct?&lt;/LI&gt;&lt;LI&gt;in a perfect example, your results would be in meters cubed&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In your example, you used a z-factor of 1, which should mean that your projected coordinate system is in meters because the X,Y values are so... or all 3 are in feet which would be less likely.&lt;/P&gt;&lt;P&gt;Information on the coordinate system and the values you got would be useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Feb 2017 06:40:26 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2017-02-10T06:40:26Z</dc:date>
    <item>
      <title>Arcpy - Calculate volume using CutFill tool</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737179#M57034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;Currently i'm implementing a function to calculate volume &amp;nbsp;of &amp;nbsp;a polygon using CutFill tool. Here is my step:&lt;/P&gt;&lt;P&gt;# I clip the raster with polygon&lt;/P&gt;&lt;P&gt;arcpy.Clip_management(Elevation_Raster, "#", clipped_raster ,Input_Polygon_Shp, "0", "ClippingGeometry")&lt;/P&gt;&lt;P&gt;# I convert the clipped raster to multipoint in order to create TIN&lt;/P&gt;&lt;P&gt;arcpy.RasterToMultipoint_3d(clipped_raster, points, "", "KERNEL", "MEAN", "", "")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# I create TIN from multipoint since it then convert it back to raster to "flatten" the surface&lt;/P&gt;&lt;P&gt;arcpy.CreateTin_3d(tin, sr, points, "Delaunay")&lt;/P&gt;&lt;P&gt;arcpy.TinRaster_3d(tin, raster_tin, "FLOAT", "NATURAL_NEIGHBORS", TinRastCellSize, "")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Finally i run the CutFill tool&lt;/P&gt;&lt;P&gt;outCutFill = CutFill(clipped_raster, &lt;SPAN&gt;raster_tin&lt;/SPAN&gt;, 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the result is not correct. Did i miss something or can you guys show me the way to get volume using CutFill tool? Thank you alot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 02:25:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737179#M57034</guid>
      <dc:creator>neolab</dc:creator>
      <dc:date>2017-02-10T02:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - Calculate volume using CutFill tool</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737180#M57035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/cut-fill.htm"&gt;Cut - Fill&lt;/A&gt;&amp;nbsp;and &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/how-cut-fill-works.htm"&gt;how cut fill works &lt;/A&gt;&amp;nbsp;When you say the results aren't right, then that raises the questions&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;are the data in projected coordinates?&lt;/LI&gt;&lt;LI&gt;is the z-factor correct?&lt;/LI&gt;&lt;LI&gt;in a perfect example, your results would be in meters cubed&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In your example, you used a z-factor of 1, which should mean that your projected coordinate system is in meters because the X,Y values are so... or all 3 are in feet which would be less likely.&lt;/P&gt;&lt;P&gt;Information on the coordinate system and the values you got would be useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 06:40:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737180#M57035</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-02-10T06:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - Calculate volume using CutFill tool</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737181#M57036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you alot Mr Patterson&lt;/P&gt;&lt;P&gt;1/ Yes all my raster is in projected coordinate (WGS 1984 UTM Zone 54N) and using meter unit&lt;/P&gt;&lt;P&gt;2/ The result is not correct because the surface after my processing and the original one is slightly different&amp;nbsp;and i don't know why?&lt;/P&gt;&lt;P&gt;In fact, i used the&amp;nbsp;FeatureVerticesToPoints_management and then&amp;nbsp;ExtractValuesToPoints to produce the point feature which will be used to create TIN at the beginning and it give me good result, but unluckily&amp;nbsp;&lt;SPAN&gt;FeatureVerticesToPoints_management is just exist in ADVANCE plan of Argis Pro and i can't afford it, so i try to use the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;RasterToMultipoint_3d instead but the result is not correct.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 07:02:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737181#M57036</guid>
      <dc:creator>neolab</dc:creator>
      <dc:date>2017-02-10T07:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - Calculate volume using CutFill tool</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737182#M57037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why the hoops?&amp;nbsp; both the 3D and spatial analyst make use of the same algorithm and you should be using rasters as inputs, I suspect that the extra things you are doing is causing an issue with cell size issues/differences.&amp;nbsp; Assess the raster results for the correct values, not some conversion to TIN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 07:13:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737182#M57037</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-02-10T07:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - Calculate volume using CutFill tool</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737183#M57038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, i use the same raster for the input and the Cell size is not change.&lt;/P&gt;&lt;P&gt;In fact i know the CutFill tool is calculate volume base on the different between 2 surface, so i try to flatten the surface and then use it with the original one. Am i wrong ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or we have another way to work with CutFill tool ?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 07:20:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737183#M57038</guid>
      <dc:creator>neolab</dc:creator>
      <dc:date>2017-02-10T07:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - Calculate volume using CutFill tool</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737184#M57039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The help topic links describe the methodology, anything deviating that will potentially produce unexpected results as you have found&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 07:46:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737184#M57039</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-02-10T07:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - Calculate volume using CutFill tool</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737185#M57040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see,&lt;/P&gt;&lt;P&gt;But it doesn't concern on how to produce the in_after_surface and i'm in trouble with it. As my research&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 13px;"&gt;Create TIN from points feature will&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 13px;"&gt;l fill the hole with Tin triangles - spanning the gap – making a generally very flat surface&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 13px;"&gt;And c&lt;SPAN&gt;onvert Tin back to raster which should return a new DEM with again the flatten and tilted surface&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 13px;"&gt;&lt;SPAN&gt;So we can use it as the in_after_surface to make the CutFill tool work.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 13px;"&gt;&lt;SPAN&gt;You have any idea about how to flatten the surface Mr Patterson?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 09:09:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737185#M57040</guid>
      <dc:creator>neolab</dc:creator>
      <dc:date>2017-02-10T09:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - Calculate volume using CutFill tool</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737186#M57041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the hole were a complete void, then the tin might work, but in reality, it would simply give a tin representation of the hole.&amp;nbsp; If you can convert the hole to a mask, then you examine &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/generalizing-zones-with-nibble-shrink-and-expand.htm#GUID-D85AFF2B-CB03-4E1C-89B1-0E4CEDA4D2D1"&gt;Nibble&lt;/A&gt; to fill the hole with the surrounding values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 11:17:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737186#M57041</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-02-10T11:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - Calculate volume using CutFill tool</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737187#M57042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Mr Patterson,&lt;/P&gt;&lt;P&gt;So if in case my surface contains not only holes but also some dune, do we have another method to produce the in_after_surface that can be use in CutFill tools?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 02:23:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737187#M57042</guid>
      <dc:creator>neolab</dc:creator>
      <dc:date>2017-02-13T02:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - Calculate volume using CutFill tool</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737188#M57043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sounds like you have an area that you want to have certain elevation characteristics... the easiest method is to delineate the area, convert it to a raster and use a Con function to assign the original elevations outside the area and the area within to whatever you want.&amp;nbsp; ArcMap isn't amenable to bulldozing or smoothing terrain out you might have better luck using cad-based tools that are used in pits and quarries or to show the before/after plans for road excavation and the like.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 02:44:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737188#M57043</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-02-13T02:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy - Calculate volume using CutFill tool</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737189#M57044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Mr.Patterson,&lt;/P&gt;&lt;P&gt;I will try to find another way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 03:15:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-calculate-volume-using-cutfill-tool/m-p/737189#M57044</guid>
      <dc:creator>neolab</dc:creator>
      <dc:date>2017-02-13T03:15:17Z</dc:date>
    </item>
  </channel>
</rss>

