split datastruct to data1d and data3d