I have a array as:
[0 1 2 3 4 5 6 7 8 ....] #2560 positions
I'm trying to reshape this 1D array to 3D as:
A = np.arange(2560) #generating example data
B = np.reshape(A,(16,16,10)) # here, i's expect to be 16 rows 16 x columns x 10 "frames"
C = B[:,:,0]
However, the result is giving something like this
C = [[0, 10, 20, 30, .., 150]
[160, 170, 180, ..., 310]
...
[2510,...2550]
The correct would be
print(B[:,:,0])
[[0, 1, 2, 3, .., 15]
[16, 17, 18, ..., 31]
...
[240,241,..., 255]
print(B[:,:,1])
[[256, 257, , .., 271]
...
[496,497,..., 511]
What I'm doing wrong?
The idea is to not use for's in order to make it faster