<?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: Using ArcHydro 2.0 in a python script in Water Resources Questions</title>
    <link>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610182#M3156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Christine&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the following and all the best for 2013.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jan 2013 03:12:31 GMT</pubDate>
    <dc:creator>PeterWilson</dc:creator>
    <dc:date>2013-01-09T03:12:31Z</dc:date>
    <item>
      <title>Using ArcHydro 2.0 in a python script</title>
      <link>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610178#M3152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've used ArcHydro quite a bit over the years, done a lot of python geoprocessing too, but this is the first time I've tried to script ArcHydro in python.&amp;nbsp; I just don't seem to be able to run any ArcHydro tools from my python script, there's no explicit error as to why, just a generic script failure.&amp;nbsp; If I do ListToolboxes within the script, ArcHydro is there, if I do ListTools, the ArcHydro tools that I'm calling are there.&amp;nbsp; But when I try to run any of the tools, the script just fails.&amp;nbsp; This is with ArcGIS 10 and ArcHydro 2.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since it looks like Arc already knows about ArcHydro (from being able to list the toolbox and tools), I'd think that I wouldn't need to use ImportToolbox (and would rather not have to, since I'm making a tool to provide to others so don't want to hard-code or ask for paths), but I tried that anyway and the script just hangs on this command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.ImportToolbox("C:\Program Files (x86)\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Arc Hydro Tools.tbx")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I don't try to import, the first thing the script was doing is a Flow Direction:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;workspace = arcpy.GetParameterAsText(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DEM = arcpy.GetParameterAsText(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;interws = workspace + os.sep + "Intermediate" + os.sep&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sshed_gdb = interws + "ssheds.gdb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;flow_dir = interws + "flow_dir"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.FlowDirection_archydro(DEM, flow_dir)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe it doesn't like the flow_dir setting the whole path, since AH has its own default locations set, so try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.FlowDirection_archydro(DEM, "flow_dir")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Doesn't work.&amp;nbsp; Maybe it doesn't have its own default locations set, so try setting them:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.SetTargetLocations_archydro("HydroConfig", "Layers", interws, sshed_gdb)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Doesn't work, still no explicit error.&amp;nbsp; Try creating the gdb first, doesn't help.&amp;nbsp; Checked the XML Vector Location Type, it's set to 1 (gdb), Raster to 2 (can't find doc on that, but the RasterLocation is set to a folder by default, so I'm hoping 2 means folder.)&amp;nbsp; All of this works fine using these folders, file names and file types when I run the ArcToolbox tools manually outside of the script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Put this through a debugger and get this error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AttributeError: 'module' object has no attribute 'FlowDirection_archydro'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I must be missing something basic.&amp;nbsp; Any clues as to what are greatly appreciated...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;~ Stacie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 20:28:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610178#M3152</guid>
      <dc:creator>StacieWolny</dc:creator>
      <dc:date>2012-08-21T20:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcHydro 2.0 in a python script</title>
      <link>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610179#M3153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm extremely interested in this too...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 14:34:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610179#M3153</guid>
      <dc:creator>MarkBoucher</dc:creator>
      <dc:date>2012-08-22T14:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcHydro 2.0 in a python script</title>
      <link>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610180#M3154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi all -&lt;BR /&gt;&lt;BR /&gt;I've used ArcHydro quite a bit over the years, done a lot of python geoprocessing too, but this is the first time I've tried to script ArcHydro in python.&amp;nbsp; I just don't seem to be able to run any ArcHydro tools from my python script, there's no explicit error as to why, just a generic script failure.&amp;nbsp; If I do ListToolboxes within the script, ArcHydro is there, if I do ListTools, the ArcHydro tools that I'm calling are there.&amp;nbsp; But when I try to run any of the tools, the script just fails.&amp;nbsp; This is with ArcGIS 10 and ArcHydro 2.0.&lt;BR /&gt;&lt;BR /&gt;Since it looks like Arc already knows about ArcHydro (from being able to list the toolbox and tools), I'd think that I wouldn't need to use ImportToolbox (and would rather not have to, since I'm making a tool to provide to others so don't want to hard-code or ask for paths), but I tried that anyway and the script just hangs on this command:&lt;BR /&gt;&lt;BR /&gt;arcpy.ImportToolbox("C:\Program Files (x86)\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Arc Hydro Tools.tbx")&lt;BR /&gt;&lt;BR /&gt;If I don't try to import, the first thing the script was doing is a Flow Direction:&lt;BR /&gt;&lt;BR /&gt;workspace = arcpy.GetParameterAsText(0)&lt;BR /&gt;DEM = arcpy.GetParameterAsText(1)&lt;BR /&gt;&lt;BR /&gt;interws = workspace + os.sep + "Intermediate" + os.sep&lt;BR /&gt;sshed_gdb = interws + "ssheds.gdb"&lt;BR /&gt;flow_dir = interws + "flow_dir"&lt;BR /&gt;&lt;BR /&gt;arcpy.FlowDirection_archydro(DEM, flow_dir)&lt;BR /&gt;&lt;BR /&gt;Maybe it doesn't like the flow_dir setting the whole path, since AH has its own default locations set, so try this:&lt;BR /&gt;arcpy.FlowDirection_archydro(DEM, "flow_dir")&lt;BR /&gt;&lt;BR /&gt;Doesn't work.&amp;nbsp; Maybe it doesn't have its own default locations set, so try setting them:&lt;BR /&gt;arcpy.SetTargetLocations_archydro("HydroConfig", "Layers", interws, sshed_gdb)&lt;BR /&gt;&lt;BR /&gt;Doesn't work, still no explicit error.&amp;nbsp; Try creating the gdb first, doesn't help.&amp;nbsp; Checked the XML Vector Location Type, it's set to 1 (gdb), Raster to 2 (can't find doc on that, but the RasterLocation is set to a folder by default, so I'm hoping 2 means folder.)&amp;nbsp; All of this works fine using these folders, file names and file types when I run the ArcToolbox tools manually outside of the script.&lt;BR /&gt;&lt;BR /&gt;Put this through a debugger and get this error message:&lt;BR /&gt;AttributeError: 'module' object has no attribute 'FlowDirection_archydro'&lt;BR /&gt;&lt;BR /&gt;I must be missing something basic.&amp;nbsp; Any clues as to what are greatly appreciated...&lt;BR /&gt;&lt;BR /&gt;~ Stacie&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Stacie&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wondering if you ever resolved this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 11:44:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610180#M3154</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2012-10-19T11:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcHydro 2.0 in a python script</title>
      <link>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610181#M3155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1. First I would recommend upgrading to Arc Hydro 2.1. We did some cleanup for Python in there and you will also get some python scripts in the AH toolbox (see download instructions below).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. We have precompiled the tools from the toolbox in a module called ArcHydroTools so that you do not have to redo the import each time which takes a long time... Then in your script you will need to add:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import ArcHydroTools&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and call the tools with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcHydroTools.AssignHydroID(tmpPolyFC, "OVERWRITE_YES")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Christine Dartiguenave&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Esri Water Resources Team&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Connection instructions for water resources applications&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Location for latest development code for water resources applications developed by the ESRI�??s Professional Services group:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;address:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="https://mft.esri.com"&gt;https://mft.esri.com&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;user:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADSRiverHydraulics&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;password:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADSRiver.2012&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;port:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Make sure you correctly login (case sensitive). You have 3 options to connect to the ftp site:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Web Client&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Site link:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="https://mft.esri.com"&gt;https://mft.esri.com&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; (Video tutorials available on the main page, prior to log in)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Third party SFTP client &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; ** Download a preconfigured client&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://mft.esri.com/EFTClient/Account/mft.zip"&gt;https://mft.esri.com/EFTClient/Account/mft.zip&lt;/A&gt;&lt;SPAN&gt; **&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. FTP address to configure a third party SFTP client of your choice. There are plenty of good free ones �?? I personally like �??Filezilla�?�.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Site address:&amp;nbsp; mft.esri.com&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Username: ADSRiverHydraulics&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Password: ADSRiver.2012&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Port:&amp;nbsp; 22&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 22:05:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610181#M3155</guid>
      <dc:creator>ChristineDartiguenave</dc:creator>
      <dc:date>2013-01-08T22:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcHydro 2.0 in a python script</title>
      <link>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610182#M3156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Christine&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the following and all the best for 2013.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 03:12:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610182#M3156</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2013-01-09T03:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcHydro 2.0 in a python script</title>
      <link>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610183#M3157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Woohoo!&amp;nbsp; That helped - I can now call ArcHydro tools within the python script.&amp;nbsp; Thanks, Christine!&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far, most tools that I've tried ran fine (I'm working up to creating watersheds and sub-watersheds), except AdjointCatchment, where I got this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Geoprocessing.GeoProcessorClass.Execute(String Name, IVariantArray ipValues, ITrackCancel pTrackCancel)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at ESRI.APWR.ApHydro.ArcHydroOp.AdjointCatchmentProcessing(ApLayers apLayers, Int32 debug, ITrackCancel&amp;amp; trackcancel, IGPMessages&amp;amp; messages, String&amp;amp; exMessage, String&amp;amp; tempwkdir) in C:\Builds\HydroSolutions\10.0_ArcHydro\Sources\ArcHydroTools\src\ApHydro\ArcHydroOp.vb:line 48825&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (AdjointCatchment).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Catchment polygons and Drainage lines ran fine (although some of the resulting columns contain all zeroes like DrainID and NextDownID) and the adjoint catchment shapefile was created but only contains column names.&amp;nbsp; Any idea what's happening?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can provide additional info if necessary, just let me know what's helpful.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;~ Stacie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 01:58:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610183#M3157</guid>
      <dc:creator>StacieWolny</dc:creator>
      <dc:date>2013-01-11T01:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcHydro 2.0 in a python script</title>
      <link>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610184#M3158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Christine reminded me that we cannot use shapefiles for either input or output.&amp;nbsp; So I just got past the AdjointCatchment error by directing everything to a geodatabase, and the whole script works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;~ Stacie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 02:45:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610184#M3158</guid>
      <dc:creator>StacieWolny</dc:creator>
      <dc:date>2013-01-15T02:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcHydro 2.0 in a python script</title>
      <link>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610185#M3159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Stacie&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the update, I'm about to write a python script to automate the entire terrain preprocessing steps and some additional analysis from HEC-GeoHMS that I had in a ModelBuilder. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 18:22:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610185#M3159</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2013-02-08T18:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcHydro 2.0 in a python script</title>
      <link>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610186#M3160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Peter -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got a basic working version of my script that goes from DEM to watersheds, including formatting a user's outlet point shapefile to have the fields required for batch points.&amp;nbsp; Attaching it here in case it's of use...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;~ Stacie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 18:29:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610186#M3160</guid>
      <dc:creator>StacieWolny</dc:creator>
      <dc:date>2013-02-08T18:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcHydro 2.0 in a python script</title>
      <link>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610187#M3161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Stacie&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the following, this is going to help greatly. I upload my final script once completed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2013 16:28:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610187#M3161</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2013-02-09T16:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcHydro 2.0 in a python script</title>
      <link>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610188#M3162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hello i need help&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a proplem with arc hydro in arcpy,i want to create a simple script where automated some tools from archydro in arcpy.. I use arcmap 10.1 and python 2.7,my import is one dem and my export is a 6 raster file (fill,fdr,fac,cat,str,strlink) and run ok without proplem but if I add one more tool cachmented to polygon that converts a raster file to polygon feature class then show me error&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ADDING AUTPUTS TO MAP FAILED TO EXECUTE SCRIPT&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i import this python script on arcmap&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.ImportToolbox("C:\Program Files (x86)\ArcGIS\Desktop10.1\ArcToolbox\Toolboxes\Arc Hydro Tools.tbx", "archydrotools")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#Set Ouput Names&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fill=arcpy.GetParameterAsText(0) + '\\fill'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fdr=arcpy.GetParameterAsText(0) + '\\fdr'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fac=arcpy.GetParameterAsText(0) + '\\fac'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Str=arcpy.GetParameterAsText(0) + '\\Str'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;StrLnk=arcpy.GetParameterAsText(0) + '\\StrLnk'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cat=arcpy.GetParameterAsText(0) + '\\Cat'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Catchment=arcpy.GetParameterAsText(0) + '\\Catchment'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Local variables:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CheckOutExtension("spatial")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.overwriteOutput = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.workspace = arcpy.GetParameterAsText(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dem = arcpy.GetParameterAsText(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: Fill Sinks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.FillSinks_archydrotools(dem, fill, "", "", "ISSINK_YES")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: Flow Direction&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.FlowDirection_archydrotools(fill, Fdr, "")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: Flow Accumulation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.FlowAccumulation_archydrotools(Fdr, Fac)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: Stream Definition&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.StreamDefinition_archydrotools(Fac, "", Str, "1")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: Stream Segmentation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.StreamSegmentation_archydrotools(Str, Fdr, StrLnk, "", "")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: Catchment Grid Delineation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CatchmentGridDelineation_archydrotools(Fdr, StrLnk, Cat)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: Catchment Polygon Processing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CatchmentPolyProcessing_archydrotools(Cat, Catchment)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ANY IDEA ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 13:40:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610188#M3162</guid>
      <dc:creator>xristosxristou</dc:creator>
      <dc:date>2014-03-17T13:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcHydro 2.0 in a python script</title>
      <link>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610189#M3163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wonderfully written script! Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 22:44:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/using-archydro-2-0-in-a-python-script/m-p/610189#M3163</guid>
      <dc:creator>CaseyBox</dc:creator>
      <dc:date>2017-12-20T22:44:17Z</dc:date>
    </item>
  </channel>
</rss>

