split datastruct into data1d and data3d