Arcgis Hydro Tools

8 views
Skip to first unread message

Aide Broeckel

unread,
Jul 24, 2024, 6:52:56 AM7/24/24
to chuckmobisu

I am trying to run a function from Arc Hydro tools in ArcMap 10.1; Sink evaluation. But before it can finish it returns an error message, that, frankly, I don't understand at all. It goes System.runtime.interopservices.comexception (0x80004005): error hresult e_fail .

arcgis hydro tools


Download ✸✸✸ https://geags.com/2zJAbO



Can anyone help me solve this? I have tried all I can think of. Run the function from the toolbox instead of dropdown menus, shorten paths, restart ArcMap, reinstall AHT, open new map documents, restart my computer, wait till next day and see if it automagically have fixed itself...

I think I have narrowed it down a bit, still not clear what's wrong though. Sink evaluation uses a series of functions in Arcmap, of which one is Zonal statistics as table. That's the one it gets stuck on. The input raster somehow does not exist, path unknown. I guess this is some intermediary raster.

After consulting the Arc Hydro team, I got the advice not to use grids stored in a gdb (which I didn't). I have also tried to change target locations, thanks to @G.Oxsen. Unfortunately neither of those solved the issue. According to the Arc Hydro team, GPL0 that I asked about earlier is an in-memory grid, so probably no problem there.

By reducing the number of sinks in need of processing I managed to get Sink evaluation running. Having the files not stored in a gdb seem to help as well, as mentioned earlier, and using integer grids. Changing the "Maximum number of unique values to render" in ArcMap Options (Customize menu), tab Raster --> Raster dataset is another tip that I got (from the Arc Hydro Team). Restarting ArcMap after running every one or two functions also helps keeping things stable.

I had a similar problem with archydro tools in ArcGIS 10.0 Try going to the archydro tool bar and go to ApUtilities>Set Target Location. Go into each section in that list and edit the Raster Data target locations. Make sure the location is targeted to a standard folder and not a .gdb or .mdb (in the selection window make sure the "Show of type:" field is set to "Shapefile/Raster Workspace" and not "Personal/File Geodatabase"). You may be able to accomplish the same goal through the environment options (Geoprocessing drop down menu ) by changing the workspace environment to a regular folder and not a .gdb or .mdb,but I would not mess with the workspace environment unless I had to. Changing the workspace environment will affect all of the processes not just the raster environment for archydro tools. Let me know if this helps.

To fix this I implemented the steps mentioned above and I did not change the output destinations of any files on any operation starting from (Preprocessing) so by default it stored them in a folder called (Layers). The error didn't happen again due to me "going with the flow".

Now if you're interested in what I was doing wrong, I deliberately changed the output destination to the file geodatabase I was working on (I did that as a work-around a previous error, little did I know I was making things worse). The "RawDEM" file was gone and couldn't be selected or found so I had to use the original DEM I had-That was a sure sign that something was wrong-. It was a huge mess. Anyways the HRESULT error is no more.

I had this HRESULT error once. It was happening because I used to change the output destination manually each time ( starting from the operations inside the Preprocessing menu ) instead of letting the program decide by default. So simply go with the suggestions mentioned above - especially the ones about vector and raster files output destinations - and just go with the flow and don't change anything.

The database is the main problem. If you want to solve this problem create a new geodatabase or copy the original geodatabase from your document folder to your currently working on project folder. Then set the copied geodatabase as default geodatabase and start sinking.notice:

I would like to do some watershed delineation research/development (at the County level) with our LIDAR generated DEM, after it is corrected, but am wondering what, if any, differences might result from using the hydrology toolbox to generate watersheds or the ArcHydro suite of tools? I will probably try both toolboxs but am curious if anyone has done anything similar? The tools and workflow between both seem similar, at first blush, so I am wondering what the differences would be between the tools...algorithms? Am using ArcInfo 10.0.

The ArcHydro extension helps with the overall workflow of building a hydrologically correct elevation surface amongst other things. It has nice menus organized in order of how most hydrology projects would start to finish, so it helps you keep track of the processing flow.

A great example, the core Hydrology tools include a "Fill" function, but that only does one iteration of filling sinks -- the next step is often run 'Sink' again to find if there are still sinks to Fill and so on and so on. Fill often requires iterative processing until all sinks are filled and the ArcHydro tools are a big help here b/c you just run it and let it finish and it will figure out the iterations for you.

The following tools are provided to assist in the use of USGS Hydrography Datasets. Any problems encountered when using these tools should be reported to National Hydrography Support.

Hydrographic addressing, also referred to as linear referencing, indexing, or linking, is a means to align data features relevant to the stream network to be coincident with National Hydrography Dataset (NHD) features. Addressing data to the NHD enables it to be used as a base for analysis and knowledge. Any kind of hydro-related observations can be addressed to the NHD such as observations relating to hydrology, geomorphology, water quality, biology, regulations, etc.

The Hydrography Addressing Tool, or HydroAdd, is a web-based tool that allows users to address data to the National Hydrography Dataset (NHD). The addressing process also spatially joins some NHD flowline attributes to data features being addressed. Because HydroAdd is a web-based tool, multiple users can collaborate on shared projects.

The NHD Utilities is a suite of stand-alone software functions that were designed to help users manipulate National Hydrography Dataset (NHD) data. These tools are not necessarily part of the maintenance/update process for NHD, but are very useful to those performing different sorts of data manipulation and analysis with NHD data. This suite of tools includes; Network Builder, Build Flow, M-Value Utility, Geodatabase to Shapefile (GDB2Shp), Shapefile to Geodatabase (Shp2GDB), Subset by Polygon, and NHD Merge. The USGS NGTOC maintains on one version of these NHD Utilities usually for the current version of the ESRI ArcGIS application.

Several hydrology tools are part of the basic ArcGIS Spatial Analyst Extension. The University of Texas at Austin Hydrology program under Professor David Mainment has produced an extenion to ArcGIS which incorporates these tools into a GUI. They commands are also accessible through the Raster Calculator.

To see all of the hydrology functionality in ArcGIS, find it in the on-line help. Open up help (ArcMap's Help menu >> ArcGIS Desktop Help) and go to the Contents tab. Go to Extensions >> Spatial Analyst >> Spatial Analyst Functional Reference. There is a section called Hydrologic Surface Analysis. There is also tools for groundwater modeling.

Click on Add from File. This allows you to add a DLL that has been register with Windows and with ArcGIS. The DLL was written to interact directly with ArcGIS. You need to navigate to D:\ArcGIS\bin and click on esrihydrology_v2.dll and then click on open:

Sinkholes occur naturally in certain types of landscapes, such as karst (limestone) where the rock is soluble. Outside of these areas you will find sinks in your DEM data which are simple errors in the data, due to a typo, a place where the scale of the data does not adequately represent an existing drainage channel, or some other source. Generally, hydrology tools is GIS do not deal easily with sinks, whether natural or an error in the data. You will need to remove the sinks before you look at flow direction and flow accumulation.

Now create a flow direction grid (again, available from the toolbar's drop down menu). You should use the corrected (filled) DEM and save the resulting grid to the same folder as above. The flow direction grid is very similar to the aspect grid you created in the last lab except the values in the grid are much more limited.

This illustration shows how the values are set. If the flow of water would flow to the east, the value for the cell would be 1, to the southeast, the value would be 2, etc. This is the required format of data for input for creating flow accumulation grids. The Flow Direction grid is created from the command of the same name under the Terrain Processing menu. Be sure to use the filled DEM (with no sinks) as the input.

Now that you have the flow direction grid, find the flow accumulation grid. The cell values in this grid depend on how much area above the cell in the watershed flow into this cell. The cells at the edge of the watershed will have a value of 0. The water of these cells flow into downslope cells, which then would have a value of 1, or more if more than 1 cell flowed downslope into this cell. This process is compounded, using the flow direction grid as a guide. Use the new Flow Direction Grid as the input.

You can now find the stream network that are identified in your model. Use the drop down menu to find this feature. You will again need to identify your flow direction grid. You will also have to set a number of cells that are required to contribute to flow to create a stream using this form:

This is variable for different climates. Remember that a cell represents an area of 30 by 30 meters or 900 square meters. It is approximately 400 cells for the climate and vegetation of New England. It might be 300 cells for the Pacific Northwest. The values for desert regions might be lower since water may flow fast over land without vegetation. You may want to see a 1:24,000 contour map of the area you are working in to compare the value that you are using and the results that you are seeing to what the USGS uses. You may also want to visit the area with a GPS to check your values in person.

ff7609af8f
Reply all
Reply to author
Forward
0 new messages