I have an array of 2d indices.
indices = [[2,4], [6,77], [102,554]]
Now, I have a different 4-dimensional array, arr, and I want to only extrac
Try using the take function of numpy arrays. Your code should be something like:
outputarray= np.take(arr,indices)