I have a 2D array like below, where 1,2,3...6 are rows(6) and Alphabets are columns(4).
1 - A,B,C,D
2 - E,F,G,H
3 - I,J,K,L
4 - M,N,O,P
5 - Q,R,S,T
6 - U,V,W,X
I need to reshape this array to 2X3 array as mentioned below in a way that if I access "1" it should return alphabets A,B,C,D
1, 2, 3
4, 5, 6
after reshaping I will save the array as multi-band tiff.
I know it's a very simple task and I can do it by creating an empty array and filling it using for loops, but I want to do it with reshape function or any simple method.
Kindly help me guys.