0

I have a conditional statement that runs through multiple rasters. It produces the correct output in Raster Calculator but not when I run the code. I don't get any errors, it just creates blank rasters.It's definitely not reading the three AND conditions but not sure why. I tried many combinations with and without parentheses but haven't solved it.

angle =  Con((indirpath < 295) & (absminusbear > 180) & (angminus >0), 360- absangminus, Con((indirpath < 295) & (absminusbear> 180) & (angminus<0), absangminus))
angle.save (name)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.