Arc Python for Arc Hydro

4503
5
02-25-2015 03:40 PM
Labels (1)
MarkBoucher
Occasional Contributor III

I'm interested in learning how to use Arc Python for Arc Hydro. Can anyone suggest a stream in GeoNet that might be good for that?

Tags (2)
0 Kudos
5 Replies
DanPatterson_Retired
MVP Emeritus

Does ArcHydro have their own Python routines?

0 Kudos
MarkBoucher
Occasional Contributor III

Not sure. I believe the tools can be called from Arc Python, but I'd like to see some Arc Hydro specific code so I can make an easier transition from Model Builder to Arc Python.

0 Kudos
DanPatterson_Retired
MVP Emeritus

Just did a web search using Archydro and Python and there are a number of threads, including one with you in it, It appears that things are largely a shell around the spatial analyst tools.  In any event, you might want to do a search there, if there is nothing in the Archydro place  ...

Using ArcHydro 2.0 in a python script

0 Kudos
MarkBoucher
Occasional Contributor III

Thanks! I looks like that was a while ago. I'll look into it.

0 Kudos
ChristineDartiguenave
Esri Contributor

Basically you need to add "import ArcHydroTools" a the beginning of your script.

Then you can access the tools using ArcHydroTools.DrainageLineProcessing()

You can test it in the Python window in ArcMap.

>>> import ArcHydroTools

>>> ArcHydroTools.DrainageLineProcessing(

Christine Dartiguenave

Esri Water Resources Team

0 Kudos