I have two multi-dimensional arrays and I would like to evaluate and assign values for those matching and non-matching values.
array_1 = array([[1,2,2], [1,2,3],[1,2,1]])
array_2 = array([[1,1,2], [2,2,3],[3,1,1]])
The idea is that for each member of array 1, if the value is the same, I want to assign 0 and it doesn't, I want to assign a different value. The logic is something like this.
(array_1 ==1 and array_2 ==1) = 0
(array_1 ==1 and array_2 ==2) = 10
(array_1 ==1 and array_2 ==3) = 15
(array_1 ==2 and array_2 ==1) = 5
(array_1 ==2 and array_2 ==2) = 0
(array_1 ==2 and array_2 ==3) = 15
(array_1 ==3 and array_2 ==1) = 5
(array_1 ==3 and array_2 ==2) = 10
(array_1 ==3 and array_3 ==3) = 0
The over all goal is to detect a change. A brief description of this methodology is available on
https://www.e-education.psu.edu/geog883/node/496