removal_data = {'Field Beans':[11.0,11.0,12.0,12.0]}
def get_val(dname,key,col_idx): d_cols = dname[key] return d_cols[col_idx]
J29 = 10 #some number provided by user input or derived from some other process in your code J28 = 'Field Beans' #again, how this is supplied is a matter of how the overall program will work - user input or from some other process inside the program, this could be based on a list of the keys in a given dictionary for instance result = J29 * (get_val(removal_data,J28,2))
rows = arcpy.UpdateCursor(FeatureClass,'','','updateField') for row in rows: if row.updateField == 1: row.updateField = *some calculation* rows.updateRow(row) elif row.updateField == 2: row.updateField = *some calculation* rows.updateRow(row) elif ...another condition to test for..
if row.updateField in (1,5,10,11) :
can you provide an example of a formula that is being used and the look up tables?
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.