clclark

Need Help with Math Operand Error

Discussion created by clclark on Apr 25, 2013
Latest reply on Apr 25, 2013 by clclark
Okay I have the following code
 with arcpy.da.UpdateCursor(fc, fields) as rows:
                    for row in rows:
                        row[2] = row[0] * (32.82010551 * 32.82010551) * (0.000000092903)
                        row[3] = (row[1] *(32.82010551 * 32.82010551) * 25)/(row[0] * (32.82010551 * 32.82010551))
                        rows.updateRow(row)


Where I get this error:

PYTHON ERRORS:
Traceback info:
File "G:\Scripts\Threshold_IP_Scripts\GetStreamStatsA.py", line 32, in StreamStatistics
row[2] = row[0] * (32.82010551 * 32.82010551) * (0.000000092903)

Error Info:
unsupported operand type(s) for *: 'NoneType' and 'float'

ArcPy ERRORS:

Any ideas? I am stuck!

Outcomes