Watershed delineation issues in ArcAPEX

82 views
Skip to first unread message

Mahesh Maskey

unread,
Jun 23, 2022, 5:39:06 PM6/23/22
to EPIC / APEX Modeling Forum

Dear Luca and others,

I am a new user for arcAPEX and trying to set up the APEX model with ArcGIS 10.3.1. As the first step, I am trying to delineate the watershed using 3m or 10m DEM from USGS via https://apps.nationalmap.gov/downloader/. First, I tried with 3m DEM and then 10m one. However, both became unsuccessful. 

In both cases, I collected several DEMs and merged them into one using Mosaic to New Raster in ArcGIS. Then, I clipped the entire DEM into the desired portion covering the study area. Regarding 3m DEM, I made an effort to delineate the watershed covering the entire study area, but it took longer than I expected (more than a day). Then, I killed the program. 


Later I tried to mask the DEM. At this time, I could perform the task till subarea outlets selection and definitions. At this stage, it pops out with a series of error dialog boxes: 

  1. Error Number: -2147467259; Error Message: Error HRESULT E_FAIL has been returned from a call to a COM component; Module name: mAgutol; Function name: dissolveGP; Procedure (line or description): blank
  2. Error Number: -2147220973; Error Message: Exception from HRESULT: 0x80040213; Module name: mSWOutlet; Function name: SetPointIDfromStreamArcID2; Procedure (line or description): blank
  3. Error Number: -2147220973; ; Error Message: Exception from HRESULT: 0x80040213; Module name: watershed delineaation; Function name: Delineate watershed; Procedure (line or description): 2
  4. Finally, Watershed delineation is failed.

Then I realized the DEM was too big (>8GB), so I compressed the DEM into 100 times less by reducing the number of rows and columns while exporting the raster file into another. It shows another error message with an error number: 010151: No features found in <value>. Possible empty feature class and pointed out ArcHydroBasin is not identified. 


At this moment, I was trying with 10m DEM after clipping as described above, still, I got the following error messages:

  1. Object reference not set to an instance of an object. Curr Sub Grid Code: 5
  2. The watershed with GRID CODE = 5 does not have an outlet within it. This is likely because the outlet fails on the edge of the watershed boundary. Please redefine the outlet for the watershed with GRIDCODE=5 by moving it slightly upstream of its current location.

As it also asked to redefine the outlet, I tried several times, but it didn't solve. 

I am not sure why such failure is repeated again and again. I guessed that DEMs from USGS are inappropriate as they lack some features, or I am using a different version of ArcGIS. Please note that 10m DEMs from USGS are only in tif format. 

I really appreciate you could help in this regard. I would also like to know how big DEM can be dealt with the ArcAPEX. 

I also appreciate it if someone is willing to collaborate and fix the issues.


I look forward to hearing from you. 

Best

Mahesh

Luca

unread,
Jun 24, 2022, 2:43:59 AM6/24/22
to EPIC / APEX Modeling Forum
Dear Mahesh,

The first thing I can think of is that the problems might be created by a compatibility issue between ArcGIS and ArcAPEX. In fact, the latest version of ArcAPEX requires ArcGIS 10.7.1.
To see if this is the case, please open ArcGIS and from the ArcAPEX tab "APEX Project Setup" select "About ArcAPEX". It will open a window with information about the ArcAPEX version you have installed. At the bottom of it you should see the ArcMAP version required.

Let us know what you find.
Luca

Mahesh Maskey

unread,
Jun 27, 2022, 3:17:16 PM6/27/22
to EPIC / APEX Modeling Forum

Dear Luca,
Thank you for the response. You are right; the version of ArcGIS on my computer was 10.3.1, and the version of APEX is also 1501 but 32-bit compatible.

We just loaded our computer with ArcGIS 10.7.1 with 64-bit APEX. I was also successful in completing the March workshop tutorial.

Then I moved to complete my project with 3m DEM but 100 times coarser, as mentioned in my previous thread. In the watershed delineation model, I succeeded in defining and selecting a subarea outlet. However, the final step to calculate the subarea parameters went unsuccessful (shown below screenshots). One interesting thing is that area calculated by flow direction ad accumulation is pretty small (2.77E-06). It is also important to note that the size of input DEM is only 91 MB, while the original DEM  is 8.8GB.

Figure_1_06272022.pngFigure_2_06272022.pngFigure_3_06272022.png


I would like to know the reason behind this and how to handle larger DEM with a finer resolution like 3m DEM.

Thank you.

Luca

unread,
Jun 28, 2022, 2:18:26 AM6/28/22
to EPIC / APEX Modeling Forum
I am sorry, but I think I cannot help you more. I have never seen this error, and I do not have access to the code of the interface. The only thing I can do is to report this issue to the developers of the ArcAPEX interface.

Sorry for not being able to help you more.
Luca

Mahesh Maskey

unread,
Jun 28, 2022, 8:51:24 AM6/28/22
to EPIC / APEX Modeling Forum
Thank  you Dr. Luca, I really appreciate if you send this error to the developer. Otherwise, we won't be able to delineate watershed in finer resolution.
Cheers
Mahesh

Mahesh Maskey

unread,
Jun 28, 2022, 2:45:34 PM6/28/22
to EPIC / APEX Modeling Forum
Dear Dr. Luca,
Now I tried with smaller dem with a manually drawn mask. But still, it comes with error 91 (below) while defining subarea outlets. Do you hav any further solution for such kind of problem?
Figure_1_06282022.PNG
Thanks
Reply all
Reply to author
Forward
0 new messages