lkincy

Python and Field Calculator

Discussion created by lkincy on Jun 18, 2014
Latest reply on Jun 20, 2014 by lkincy
I am trying to run the following Python script through Field Calculator

Parser:
Python

Expression:
calctemp(!Value!)

Code Block

def calctemp(newValue):

if newValue > 0:
   tempF = (newValue - 273.15)* 1.8000 + 32.00
return tempF

I get a syntax error invalid syntax(<expression>, line 1)

Any suggestions

Outcomes