Select to view content in your preferred language

Map Algebra: Conditional Statement

416
0
04-29-2013 12:48 PM
PeterWilson
Frequent Contributor
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.

Regards
0 Kudos
0 Replies