Raster analysis - Single Output Map Algebra function

Discussion created by gih on Nov 30, 2010
Latest reply on Dec 8, 2010 by gih
Hi, hoping someone can help me.

I'm trying to use the max and min values of two raster layers (layer_temp and layer_prec) to analyse two other layers (layer_temp_an and layer_prec_an). The result of which will be a new raster layer detailing where in layer_temp_an and layer_prec_an the case is true or false. I've achieved this so far by using a con statement in single output map algebra function:

layer_temp: Max value - 100, Min value - 30
layer_prec: Max value - 90, Min value - 20

con(layer_temp_an <= 100 & layer_temp_an >= 30 & layer_prec_an <= 90 & layer_prec_an >= 20,1,0)

The con statement above works fine. But I would at some point like to create a model to represent this process, as such, I am wondering if it is possible to replace the max and min values in the single output map algebra function with references, such as:

100 becomes: [layer_temp]Max and 30 becomes: [layer_temp]Min
90 becomes: [layer_prec]Max and 20 becomes: [layer_prec]Min

Can anyone tell me if statements such as "[layer_temp]Max" or "[layer_temp]Min" work in single output map algebra and if so, the correct format?

Any help would be appreciated. Many thanks.