dnrwaterqualitymodeling / EVAAL

Erosion Vulnerability Assessment for Agricultural Lands - Python scripts for identifying areas vulnerable to soil erosion using LiDAR elevation data
6 stars 3 forks source link

Step 6. Calculate erosion vulnerability index error when same output names are specified #10

Open tmpnelson opened 9 years ago

tmpnelson commented 9 years ago

In Step 6, if the user specifies a zonal boundary, and then specifies the same name for the output raster and output table (last two fields of tool), it gives the following error: Executing: erosionScore SoilLoss SPI fields OBJECTID DEM_cond2 D:\EVAAL_Example\Example_Data\Example_Outputs.gdb\evi9 D:\EVAAL_Example\Example_Data\Example_Outputs.gdb\evi9 Start Time: Tue May 05 12:00:25 2015 Running script erosionScore...

Cleaning scratch space... Deleting zonalRaster...

Converting zones to raster... Calculating summary statistics of soil loss and stream power index... Calculating Z-scores... Calculating erosion vulnerability index... Summarizing erosion vulnerability index within zonal statistics feature class boundaries...

Traceback (most recent call last): File "", line 1957, in execute File "", line 1000, in calculateErosionScore File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\sa\Functions.py", line 5836, in ZonalStatisticsAsTable statistics_type) File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\sa\Utils.py", line 47, in swapper result = wrapper(_args, *_kwargs) File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\sa\Functions.py", line 5828, in wrapper statistics_type) File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\geoprocessing_base.py", line 498, in return lambda _args: val(_gp_fixargs(args, True)) ExecuteError: ERROR 999999: Error executing function. The table was not found. The table was not found. [fras_blk_evi9] ERROR 010213: Error in reading raster D:\EVAAL_Example\Example_Data\Example_Outputs.gdb\evi9. Zonal statistics program failed ERROR 010067: Error in executing grid expression. Failed to execute (ZonalStatisticsAsTable).

Failed to execute (erosionScore). Failed at Tue May 05 12:00:39 2015 (Elapsed Time: 14.00 seconds)