Map Algebra: Conditional Statement

Discussion created by Playa on Apr 29, 2013
I'm looking for advice in how to construct a conditional statement using Map Algebra in Python that I can include in my script. I want to use a Mosaic Dataset as an input and generate a polygon (simplified i.e. through the centre of the cell) the following statement:

OutRas = Con(InRas >= 0 and InRas <= 5, InRas)

Any help will be appreciated.