AnsweredAssumed Answered

Difficulty in executing code in Raster Calculator

Question asked by pbanerjee on Sep 9, 2016
Latest reply on Sep 9, 2016 by Dan_Patterson

Hi

 

I am tring to execute an expression in Raster Calculator. It's rather a long piece of code:

 

Con("LULCyear2005_2006_500m_Raster" == 1 & "soilRaster_reclass" == 1 & "slope_reclass" == 1, 0.5, Con("LULCyear2005_2006_500m_Raster" == 1 & "soilRaster_reclass" == 1 & "slope_reclass" == 2, 0.55, Con("LULCyear2005_2006_500m_Raster" == 1 & "soilRaster_reclass" == 1 & "slope_reclass" == 3, 0.6, Con("LULCyear2005_2006_500m_Raster" ==28 &  "soilRaster_reclass" == 1 & "slope_reclass" == 1, 0.4,  Con("LULCyear2005_2006_500m_Raster" == 28 & "soilRaster_reclass" == 1 & "slope_reclass" == 2, 0.7, Con("LULCyear2005_2006_500m_Raster" == 28 & "soilRaster_reclass" == 1 & "slope_reclass" == 3, 0.82, Con("LULCyear2005_2006_500m_Raster" == 28 & "soilRaster_reclass" == 2 & "slope_reclass" == 1, 0.3, Con("LULCyear2005_2006_500m_Raster" == 28 & "soilRaster_reclass" == 2 & "slope_reclass" == 2, 0.4, Con("LULCyear2005_2006_500m_Raster" == 28 & "soilRaster_reclass" == 2 & "slope_reclass" == 3, 0.52, Con("LULCyear2005_2006_500m_Raster" == 71, 0.33, Con("LULCyear2005_2006_500m_Raster" == 77 & "soilRaster_reclass" == 1 & "slope_reclass" == 1, 0.4, Con("LULCyear2005_2006_500m_Raster" == 78 & "soilRaster_reclass" == 1 & "slope_reclass" == 2, 0.5, Con("LULCyear2005_2006_500m_Raster" == 78 & "soilRaster_reclass" == 1 & "slope_reclass" == 3, 0.6, Con("LULCyear2005_2006_500m_Raster" == 78 & "soilRaster_reclass" == 2 & "slope_reclass" == 1, 0.1, Con("LULCyear2005_2006_500m_Raster" == 78 & "soilRaster_reclass" == 2 & "slope_reclass" == 3, 0.25, Con("LULCyear2005_2006_500m_Raster" == 78 & "soilRaster_reclass" == 2 & "slope_reclass" == 3, 0.3, Con("LULCyear2005_2006_500m_Raster" == 109, 0.41, Con("LULCyear2005_2006_500m_Raster" == 141,1))))))))))))))))))

 

Its for preparing a map with appropriate Runoff coefficient value based on Landuse, Slope and Soil type. Unfortunately, each time I run it I come accross this error message: Screenshot of error message

 

Please Help

Outcomes