<?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: Python scripting for Arc Hydro in Water Resources Questions</title>
    <link>https://community.esri.com/t5/water-resources-questions/python-scripting-for-arc-hydro/m-p/595697#M3062</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/docs/DOC-14254"&gt;Arc Hydro - Calling Arc Hydro Tools in Python.pdf&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;In Arc Hydro GeoNet under "Recent Content".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Nov 2019 20:12:10 GMT</pubDate>
    <dc:creator>DeanDjokic</dc:creator>
    <dc:date>2019-11-20T20:12:10Z</dc:date>
    <item>
      <title>Python scripting for Arc Hydro</title>
      <link>https://community.esri.com/t5/water-resources-questions/python-scripting-for-arc-hydro/m-p/595692#M3057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've seen a few threads referencing Python scripting for automating Arc Hydro processes, but I haven't seen much focused on the DEM Reconditioning step. I have seen this presentation (&lt;A class="link-titled" href="https://prezi.com/ueopyqx7kb2d/automating-arc-hydro-with-python/" title="https://prezi.com/ueopyqx7kb2d/automating-arc-hydro-with-python/"&gt;Automating Arc Hydro with Python by Philip Griffith on Prezi&lt;/A&gt;&amp;nbsp;), which is the only script example I've seen that attempts the reconditioning step; however, there's a great deal about Philip's script that I do not understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I've tried:&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;import arcpy&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;import ArcHydroTools&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#I did not try to set Target Locations as Philip did in his script. I set those through ApUtilities in the ArcMap window, in the hopes of simplifying my script. I also did not check out the Spatial Analyst license because it is already checked out to me.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;raster_dem = "G:/Python/ScriptTests/ArcHydro/ArcHydroTestScripts.gdb/r36002225PAS"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;geomorph_stream = "G:/Python/ScriptTests/ArcHydro/ArcHydroTestScripts.gdb/geomorph_36002225PAS"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;output = "G:/Python/ScriptTests/ArcHydro/DEM_tiles/out"&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ArcHydroTools.DEMReconditioning(raster_dem, geomorph_stream, "5", "10", "10", output)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use this script, it takes far too long to process and the Agree DEM produced is clearly not accurate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions? There are just so few examples online, I'm really struggling here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any recommendations for resources would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2019 15:23:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/python-scripting-for-arc-hydro/m-p/595692#M3057</guid>
      <dc:creator>EllenFehrs</dc:creator>
      <dc:date>2019-11-07T15:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripting for Arc Hydro</title>
      <link>https://community.esri.com/t5/water-resources-questions/python-scripting-for-arc-hydro/m-p/595693#M3058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could this help you? Maybe you could test&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;CODE&gt;arcpy.gp.DEMReconditioning_archydro&lt;/CODE&gt; (tested with ArcGIS 10.5)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gis.stackexchange.com/questions/188165/how-to-call-archydro-tools-in-stand-alone-python-script" title="https://gis.stackexchange.com/questions/188165/how-to-call-archydro-tools-in-stand-alone-python-script"&gt;raster - How to Call ArcHydro Tools in Stand Alone Python Script - Geographic Information Systems Stack Exchange&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2019 16:04:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/python-scripting-for-arc-hydro/m-p/595693#M3058</guid>
      <dc:creator>JohannesBierer</dc:creator>
      <dc:date>2019-11-07T16:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripting for Arc Hydro</title>
      <link>https://community.esri.com/t5/water-resources-questions/python-scripting-for-arc-hydro/m-p/595694#M3059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same issue. Processing takes forever compared to manual Arc Hydro processing (as opposed to scripted automation), and the output is not what it should be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2019 16:15:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/python-scripting-for-arc-hydro/m-p/595694#M3059</guid>
      <dc:creator>EllenFehrs</dc:creator>
      <dc:date>2019-11-07T16:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripting for Arc Hydro</title>
      <link>https://community.esri.com/t5/water-resources-questions/python-scripting-for-arc-hydro/m-p/595695#M3060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have just posted a document "Arc Hydro - Calling Arc Hydro Tools in Python" that presents the recommended approach to calling Arc Hydro functions in your Python script.&amp;nbsp; Please review the doc and see if that helps.&amp;nbsp; You would be importing "demreconditioning" and would be using "execute" method approach.&amp;nbsp; The sequence of parameters is (in_dem_raster, in_stream_raster, num_cells_buff, zsmooth, zsharp, out_agree_dem, raise_negative).&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;raise_negative should be False.&amp;nbsp; I suggest that you first run it on the ArcMap/Pro Python command line.&amp;nbsp; Then once you get it working, move it into your code.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2019 19:39:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/python-scripting-for-arc-hydro/m-p/595695#M3060</guid>
      <dc:creator>DeanDjokic</dc:creator>
      <dc:date>2019-11-20T19:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripting for Arc Hydro</title>
      <link>https://community.esri.com/t5/water-resources-questions/python-scripting-for-arc-hydro/m-p/595696#M3061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you please link to the document? I'm having a little trouble finding it. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2019 19:44:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/python-scripting-for-arc-hydro/m-p/595696#M3061</guid>
      <dc:creator>EllenFehrs</dc:creator>
      <dc:date>2019-11-20T19:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripting for Arc Hydro</title>
      <link>https://community.esri.com/t5/water-resources-questions/python-scripting-for-arc-hydro/m-p/595697#M3062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/docs/DOC-14254"&gt;Arc Hydro - Calling Arc Hydro Tools in Python.pdf&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;In Arc Hydro GeoNet under "Recent Content".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2019 20:12:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/python-scripting-for-arc-hydro/m-p/595697#M3062</guid>
      <dc:creator>DeanDjokic</dc:creator>
      <dc:date>2019-11-20T20:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripting for Arc Hydro</title>
      <link>https://community.esri.com/t5/water-resources-questions/python-scripting-for-arc-hydro/m-p/595698#M3063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks great, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2019 20:34:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/python-scripting-for-arc-hydro/m-p/595698#M3063</guid>
      <dc:creator>EllenFehrs</dc:creator>
      <dc:date>2019-11-20T20:34:27Z</dc:date>
    </item>
  </channel>
</rss>

