1D data to 2/3D nexus conversion