write float data into a table

Discussion created by thanos_cp78 on Nov 21, 2012
Latest reply on Nov 28, 2012 by GSCUser85
Hi guys,

I seem to be having issues populating a field with the Get Cell Value tool. Hope you can help me out a bit. Cheers

import arcpy

inRas = r"RasterData"

inFC = r"PointShape"

rows = arcpy.UpdateCursor(inFC)

for row in rows:
    Location = str(row.POINT_X) + " " + str(row.POINT_Y)
    celVal = arcpy.GetCellValue_management(inRas, Location, "")
    fVal = float(celVal.getOutput(0))   
    row.setValue(row.RasVal, int(fVal))

del row, rows