Select to view content in your preferred language

Raster Calculator: multiple equations based on multiple rasters in one run

4109
3
05-16-2011 08:39 AM
MayyaGogina
New Contributor
I have recently changed ArcGIS 9.3 to ArcGIS 10.
In the 9.3 it was possibly to enter multiple conditions based on multiple rasters, as well as to enter multiple equations in one run of the tool - so I could with one operation perform e.g.:

tra = Con(([depth] > 13.44 & [DO_sum_mean10] > 6.795 & [DO_win_min10] > 6.81 & [mud] > 0.87), 9, 0)
expo = Con(([depth] > 13.44 & [DO_sum_mean10] > 6.795 & [DO_win_min10] > 6.81 & [mud] < 0.87), 5, 0)
epid = Con(([depth] > 13.44 & [DO_sum_mean10] > 6.795 & [DO_win_min10] < 6.81 & [sal] > 18.58), 4, 0)
epi = Con(([depth] > 13.44 & [DO_sum_mean10] > 6.795 & [DO_win_min10] < 6.81 & [sal] < 18.58), 3, 0)
deep = Con(([depth] > 13.44 & [DO_sum_mean10] < 6.795), 1, 0)
epi2 = Con(([depth] < 13.44 & [maxbed10] > 29.935 & [veg_comv311] == 0 & [veg_comv32] == 0), 3, 0)

In ArcGIS10 this is not the case any more - there is only an option of one output raster at a time in raster calculator (it Builds and executes a single Map Algebra expression).
So my question is what could be the way to quickly execute the set of expressions above in ArcGIS10? Should that be the Python? I have thought of it but since I am not very familiar with it I have not managed to find the way to fully incorporate my expressions into Python.
I would really appreciate any advises and ideas. Thank you in advance!

Mayya
0 Kudos
3 Replies
SarahBreaks1
New Contributor
Hi Mayya,

I am also fairly new to ArcGIS 10; however, one way I have worked around this is by placing multiple instances of the raster calculator in a model builder. Each instance of raster calculator has a single equation. Then I run that.

I hope that helps!
-Sarah
0 Kudos
MayyaGogina
New Contributor
Hi Sarah,

thanks a lot you for your comment - the idea with ModelBuilder works.
Though I still find it was a bit more elegant with Raster Calculator as it was.

Regards,
Mayya
0 Kudos
SarahBreaks1
New Contributor
I agree, it is less elegant, but I'm glad it worked for you 🙂

Cheers,
Sarah
0 Kudos