I dont see an error here. You described: I would obtain a third raster (rasterC) where if rasterA contain the value 1 and the rasterB contain the value 0 (for the same cell position) rasterC must contain the value 1. If the previous condition is false the value for the rasterC will be the same of rasterB. which translates to this pseudocode (C#): if ( rasterA == 1 && rasterB == 0) { rasterC = 1; } else { rasterC = rasterB; } if rasterB is null it is not 0 therefore rasterC will be filled with rasterB value (null). Which brings me to this question: What value do you want to get inserted in rasterC if rasterB has a null value?
... View more