Using python to do a interpolation on field calculator

المشرف العام

Administrator
طاقم الإدارة
I need to increment a row in attribute table:

def func (w,v,pot): return pot + ((pot+1 - pot)/(v+1 - v))*(w-v)The "+1" is not the addition of number one to the variable, is the intention to increment + 1 row in that column of that variable. This is because I need to calculate the actual record using records from the next line.

How can I do that? I know this is basic, but I realy don't know python.



أكثر...
 
أعلى