katze01

Python calculation in field calculator

Discussion created by katze01 on Oct 17, 2011
Latest reply on Oct 20, 2011 by katze01
Hello,

I'm trying to do some simple calculation within the field calculator using Python instead of VB and keep on getting error messages.

Pre-logic script code:
def rad (value):
  return math.sqrt(value / math.pi( ) )


Expression:
AEQU_RAD= rad (!area!)

I get the error message, that "float object is not callable". Field type is double.

Outcomes