AnsweredAssumed Answered

Performing if else condition on two raster layers

Question asked by lsekaluvu on Aug 26, 2014
Latest reply on Sep 4, 2014 by lsekaluvu

Hi,

I am working on a project and i am writing my scripts in python. However, i am experiencing an obstacle that might make me quit this project for good. Here is is the problem. I want to perform a if else condition on two raster layers that have constant values across all there grid. Initially, i create two raster layers, each with a constant value within each cell. However, when i perform a loop on these two raster layers, one of them at the end will have cells with different values and i need to loop in again to compare it with the other raster with a constant value. I tried using the "Con" tool but things have not worked at all.  Any clues please?

Outcomes