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

tool 2c error: cell size is less than zero #8

Open dnrwaterqualitymodeling opened 9 years ago

dnrwaterqualitymodeling commented 9 years ago

The issue is on line 540 where the cell size to the polygon to raster function is denoted by a layer rather than a number. To fix, replace line 540 with:

cs = arcpy.Describe('conditioned_dem').children[0].meanCellHeight arcpy.PolygonToRaster_conversion(nonContribFiltered, colNm \ , nonContribUngrouped, 'CELL_CENTER', '', cs)

oeresearch commented 9 years ago

I also had this problem in step 5a.

dnrwaterqualitymodeling commented 9 years ago

Hello Lindsay,

I fixed the code for step 5a in the same way I did for step 2c. Apologies for the bug and thank you for pointing it out. You can download the latest version of the tool on the dev branch.

Please let us know if you have any further issues.

Cheers,

Aaron Ruesch