I have two arrays of size 4,1,2
array1 [[[ 1. 2.]]
[[ 3. 4.]]
[[ 5. 6.]]
[[ 7. 8.]]]
array2 [[[ 8. 4.]]
[[ 7. 3.]]
[[ 6. 2.]]
[[ 5. 1.]]]
I need to put them into an array that looks like
merged [[[ 1. 2.]]
[[ 3. 4.]]
[[ 5. 6.]]
[[ 7. 8.]]
[[ 8. 4.]]
[[ 7. 3.]]
[[ 6. 2.]]
[[ 5. 1.]]]
I then need to find the min and max of column1 and column2. I had this, but it does not appear to be doing what I think it should be.
mergedArray = concatenate((array1,array2),axis=1)
x_min = np.amin(mergedArray[:,0])
x_max = np.amax(mergedArray[:,0])
y_min = np.amin(mergedArray[:,1])
y_max = np.amax(mergedArray[:,1])
Is there a better way to do this?