Select to view content in your preferred language

Python - Complex if/then field calculating

635
1
04-08-2010 10:37 AM
by Anonymous User
Not applicable
Original User: SStrand

I have a line feature with attributes for length and also curve radius. I would like to calculate a third field where these two are combined into a ranking of 1 to 6. Im self taught in python and have not tried anything like this and have not found anything in tutorials that would help me. I believe an if/then statement would be used to complete it but I can't figure it out. Any advice would be much appreciated. Thank you. 🙂
0 Kudos
1 Reply
by Anonymous User
Not applicable
Original User: rdharles

I don't know how you are going to "rank" them but I'd use python and use a CURSOR to read through both fields, "do the ranking", and then write the rank to the 3rd field (for each record).
0 Kudos