Hello! I'm generating an error message when running the Generate CN Raster tool. I've prepared the datasets according to the tool's documentation. Reading the error message, not sure if this is my environment or an issue with the Python code. I've zipped up a Project Package containing the datasets (soil poly, DEM, curve number lookup table). Also attached is the error message. I'm running ArcGIS Pro v3.3. A portion of the error message is below. Any assistance is greatly appreciated!
Calling c:\program files\arcgis\pro\Resources\ArcToolbox\Scripts\archydro\generatecnraster.GenerateCNRaster.executeAH(arg1, arg2)
1. Process configuration.
---- Using -- C:\CGIS\GISDATA\RUNOFF_MODELLING\SOIL -- as workspace for final data structures
Completed, 1. Process configuration, ddt=0.034s
2. Calculating weighted CN field.
---- Reading CN lookup table as dictionary
---- Calculating weighted CN value and saving to CN field in SAC_soil_LU_raster_Union FC
('line 283', 'c:\\program files\\arcgis\\pro\\Resources\\ArcToolbox\\Scripts\\archydro\\generatecnraster.py', "TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'")
Cleanning ...
('line 283', 'c:\\program files\\arcgis\\pro\\Resources\\ArcToolbox\\Scripts\\archydro\\generatecnraster.py', "TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'")
Best regards,
John
Solved! Go to Solution.
John,
Please check the spatial reference between your vector and raster data. I quickly looked at your package and it seems that they are different. They should be the same.
Dean
John,
Please check the spatial reference between your vector and raster data. I quickly looked at your package and it seems that they are different. They should be the same.
Dean
Thank you, Dean! I greatly appreciate your time!