Select to view content in your preferred language

Error Running Generate CN Raster Tool

414
2
Jump to solution
01-24-2025 10:03 AM
Labels (2)
John_Herrera
Occasional Contributor

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

0 Kudos
1 Solution

Accepted Solutions
DeanDjokic
Esri Contributor

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

View solution in original post

2 Replies
DeanDjokic
Esri Contributor

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_Herrera
Occasional Contributor

Thank you, Dean!  I greatly appreciate your time!

0 Kudos