Python-Field Calculator Expression

3840
10
Jump to solution
10-10-2014 07:00 AM
JakeGalyon
New Contributor III

I'm working on a model to create a field for Flood Risk.  What i'm needing to automate is that after the Flood Risk Field is added, i want to then calculate a risk of High, Moderate, or Low based on values from the Flood Risk Field using calculate field in modelbuilder.  So, I'm needing the statement to say something as listed below.  I'm fairly new to python and would appreciate any help for code to put into my field calculation.

If value in  Flood Zone is A,AE, AH, AO, etc then Flood Risk is High.

If value in Flood Zone is Whatever, then Flood Risk is Moderate.

If value in Flood Zone is X, then Flood Risk is Low.

FLD_ZONE                              FLD_RISK

A                                   

AE

AH

AO

Whatever

X

0 Kudos
10 Replies
JakeGalyon
New Contributor III

Cool thanks.

0 Kudos