Re-ordering of 3D to 2D arrays for EOF mapping