Stream Reach and Catchment Error

95 views
Skip to first unread message

matthew romanko

unread,
Jun 23, 2020, 11:14:44 AM6/23/20
to ACPF Forum
Hello,

I am using arcgis pro 2.5.1 to run an acpf assessment for a HUC12 watershed (Kyle Prairie Creek 041000070602) in North-west Ohio. I am getting an error when running the Stream Reach and Catchment tool. I have recently updated the acpf toolbox as of 6-16-2020. I used the tool before with no problem, but I am not sure what the problem is this time around. Failed to execute (CalculateStatistics). I reclassified the perennial streams to 1, saved the edits, and made sure there were no features selected before running the tool.

Error:
Traceback (most recent call last):
  File "C:\Data\ACPF\DL_6-16-2020\ACPF_V3_Pro_distribution_06092020\Scripts\StreamReachAndCatchments.py", line 249, in <module>
    StreamNetworkAndCatchments(reach, D8FlowDir, DEMFill)
  File "C:\Data\ACPF\DL_6-16-2020\ACPF_V3_Pro_distribution_06092020\Scripts\StreamReachAndCatchments.py", line 153, in StreamNetworkAndCatchments
    TDStreamReach = arcpy.CalculateStatistics_management(TDProcDir + "\\TDStreamReach.shp")
  File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\management.py", line 18601, in CalculateStatistics
    raise e
  File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\management.py", line 18598, in CalculateStatistics
    retval = convertArcObjectToPythonObject(gp.CalculateStatistics_management(*gp_fixargs((in_raster_dataset, x_skip_factor, y_skip_factor, ignore_values, skip_existing, area_of_interest), True)))
  File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\geoprocessing\_base.py", line 511, in <lambda>
    return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError:  ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds.
Failed to execute (CalculateStatistics).
 Failed to execute (StreamReachAndCatchments).

Parameters:
Input Flow Network (polyline) AreaFlowNet041000070602
Input D8 Flow Direction raster C:\Data\ACPFprocessing\KylePrairieCreek\acpf041000070602.gdb\D8FlowDir041000070602
Input Filled DEM C:\Data\ACPFprocessing\KylePrairieCreek\acpf041000070602.gdb\DEMFill041000070602
Create stream reach and catchments from a subset of flow segments? (field name) StreamType
Classification value 1
Input Pour Point(s) pp04100007060
Output Stream Reach (polyline) C:\Data\ACPFprocessing\KylePrairieCreek\acpf041000070602.gdb\StreamReach041000070602
Output Catchments C:\Data\ACPFprocessing\KylePrairieCreek\acpf041000070602.gdb\Catchments041000070602


I get the same error when running the PDFlowNet output as well.
Any ideas what I am missing here?

Thanks,
Matthew

James, David

unread,
Jun 23, 2020, 11:55:25 AM6/23/20
to matthew romanko, ACPF Forum
Hi Matthew
A failure on the calculate statistics following a TauDEM command suggests that the output does not exist. Please the the TDProcDir that is in the scripts folder under the ACPF toolbox location. You may benefit from a new ArcGIS Pro project being used and/or a reboot.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

David James

USDA/ARS National Laboratory for Agriculture

   and the Environment

1015 N. University Blvd., Ames, Iowa 50011

Work: (515) 294-6858 Cell: (515) 451-5304

davide...@usda.gov

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 


From: acpf-...@umn.edu <acpf-...@umn.edu> on behalf of matthew romanko <matthew...@gmail.com>
Sent: Tuesday, June 23, 2020 10:14 AM
To: ACPF Forum <acpf-...@umn.edu>
Subject: [ACPF Forum] Stream Reach and Catchment Error
 
--
The ACPF Forum is an online group for discussing technical issues related to using the ACPF tools. Anyone can view the discussions at https://groups.google.com/a/umn.edu/d/forum/acpf-group. Only members can participate in discussions. Join the group by sending an email to acpf-group...@umn.edu
---
You received this message because you are subscribed to the Google Groups "ACPF Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to acpf-group+...@umn.edu.
To view this discussion on the web visit https://groups.google.com/a/umn.edu/d/msgid/acpf-group/6d82a5d5-2216-43e7-b502-4ef0ac55e1bao%40umn.edu.




This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.

matthew romanko

unread,
Jul 1, 2020, 1:11:41 PM7/1/20
to ACPF Forum
replacing the part of the script that was trying to calculate statistics on the shapefile worked.

#TDStreamReach = arcpy.CalculateStatistics_management(TDProcDir + "\\TDStreamReach.shp")
TDStreamReach = TDProcDir + "\\TDStreamReach.shp"


Thanks,
Matthew

Reply all
Reply to author
Forward
0 new messages