converts 2D into a 3D grid with data files for hydro