I have a table as like below:
I want to generate python script to calculate the value Low, Medium and High into a single layer.
I tried using this script:
Parser:
Python
Expression:
Reclass( Flood_Severity )
Code Block:
def Reclass ( Flood_Severity ):
if ( FAT = 1 and FV = 1 and FD < 3):
return "Low"
elif ( FAT = 1 and FV = 1 and FD >= 3):
return "Medium"
elif ( FAT = 1 and FV = 2 and FD = 1):
return "Low"
elif ( FAT = 1 and FV = 2 and FD > 1 and FD < 4):
return "Medium"
elif ( FAT = 1 and FV = 2 and FD=4):
return "High"
But it failed. May I know how to fix the script?