sotha

Raster calculator too many values to unpack

Discussion created by sotha on Apr 2, 2012
Latest reply on Apr 3, 2012 by curtvprice
I'm trying to use raster calculator to create a new raster from my flow accumulation data. I've changed the data range to two intervals so only the main channels are shown. What I want to do is create a new raster with this information. I am trying to alter this DEM to make it compatible with the CAESAR landscape evolution model, and this is one of the steps required.

The instructions tell me to put the following calculation into raster calculator: [mainChannel]  = [flowAcc]  > 500

As it is only an example I changed the equation to the following: [mainChannel]  = ["brdaflowacc"]  > 45000

It makes sense in theory since the main channels are all above 45000 however I get the following error when I try to make this calculation work


ERROR 000539: Error running expression: rcexec() <type 'exceptions.ValueError'>: too many values to unpack.


As I am relatively inexperienced with arcgis I cannot figure out why it is doing this.

Outcomes