Hey, I keep getting this error every time I try to run the Stream Reach and Catchments tool. Does anyone know how to fix this? Thanks.
Traceback (most recent call last):
File "Z:\Schilling_Streeter\INRC_Ponds_2021\GIS\ACPF\ACPF_V3Pro_09142021\Scripts\StreamReachAndCatchments.py", line 250, in <module>
StreamNetworkAndCatchments(reach, D8FlowDir, DEMFill)
File "Z:\Schilling_Streeter\INRC_Ponds_2021\GIS\ACPF\ACPF_V3Pro_09142021\Scripts\StreamReachAndCatchments.py", line 152, in StreamNetworkAndCatchments
TDWatersheds = arcpy.CalculateStatistics_management(TDProcDir + "\\TDWatersheds.tif")
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 21381, in CalculateStatistics
raise e
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 21378, 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 512, in <lambda>
return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Input Raster Dataset: Dataset Z:\Schilling_Streeter\INRC_Ponds_2021\GIS\ACPF\ACPF_V3Pro_09142021\Scripts\TDProcDir\TDWatersheds.tif does not exist or is not supported
Failed to execute (CalculateStatistics).
Failed script c. Stream Reach and Catchments...Failed to execute (StreamReachAndCatchments).
Valerie