1

I have a problem with Map Algebra in ArcMap 10 to convert some codes made by VB, so I need to convert it to python to work in ArcMap 10 without problem.

How do I deal with map algebra in ArcMap 10?

the code:

con([Direction to univer] > 0 & [Direction to univer] <= 180,[Direction to univer] + 180,[Direction to univer] - 180) 
PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Feb 16, 2011 at 5:52

1 Answer 1

4

You should be able to do the processing directly in python without much fuss:

import arcpy
from arcpy.sa import *
direction = Raster("direction-to-univer.tif")
output = con((direction > 0) & (direction <= 180), direction + 180, direction)
output.save("conned.tif")
answered Feb 16, 2011 at 6:04
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.