I have a feature class that needs to update , name it as big_file, it has a field name 'ID_old' which we will use to do the query. another field is 'Sum_value', which needs to be filled with sum of a field value of another file.
so I have one list (named list_file) that contains many feature classes, name each one as small_file. name of each file already contains the ID (name it 'ID') that we need to locate. each file has a field named 'field_value'. 'ID' is not a field, just name of feature class.
note that 'ID_old' and 'ID' are of different format, since ID does not contain ' ' or '.', for example:
ID_old : New York, St. Louis corresponds to
ID: New_York, St_Louis
now need to : fill the Sum_value field of big_file with the field_value sum of each small_file that has the correspondent ID with each row.
eg. one row of big_file has the ID which is 'New York', so in the list_file there is a file whose name contains 'New_York', after we find that file, say sth_New_York_file, we will get the sum of the field 'field_value' and have a result. then go back to big_file and fill the field Sum_value of thw row (ID is 'New York') with the result.
In other words, i am trying to do the query using the ID of rows in original file , looking for correspondent feature class in the list, in that feature class get the sum of the field I want, and update each row using the sum in original file.
Is there any clues? I suppose I need to use UpdateCursor, but don't know how to query and get values.