arcpy.Clip_analysis(fireLayer,refugeLayer,outLayer) arcpy.AddField_management(outLayer,"Shape_Area", "DOUBLE") updateRows = arcpy.da.UpdateCursor\ (outLayer,["HECTARES","Shape@Area"]) for row in updateRows: #fields --> 0:Hectares, 1:ShapeArea HA = row[1]/10000 #Area in hectares row[0] = HA #assign value to each row of Hectares row[1] = ["Shape@Area"] updateRows.updateRow(row) #save it by using the updateRow function del updateRows # unlock cursor del row #remove cursor pointer
row[1] = ["Shape@Area"]