I have field that includes 2500 records with name RASTERVALU
and type Double. I want to add another field with name Qi
. My expression for Qi
is equal to RASTERVALU
but I don't know correct syntax.
infc = "E:/gis payannameh/Pychram_tabu/extractVP/net1.shp"
arcpy.AddField_management(infc, "Qi", "DOUBLE")
exp = "Qi" == "!RATERVALU!"
arcpy.CalculateField_management(infc,"Qi", exp)
exprrsion
is set toFalse
, and then use undefined variableexp
, which ought to be a Python syntax error. Please remember to include the error in your question.