diff --git a/swash/processing/sws_npz.py b/swash/processing/sws_npz.py index c79d4c5..1274732 100644 --- a/swash/processing/sws_npz.py +++ b/swash/processing/sws_npz.py @@ -28,7 +28,7 @@ bathy = pd.read_hdf(data_out.joinpath("bathy.h5"), "bathy") n_x = bathy.index.size log.info(f"Reading swash output from '{sws_out}'") -botl = read_nohead_scalar(sws_out.joinpath("botl.dat"), n_x)[0, :] +botl = read_nohead_scalar(sws_out.joinpath("botl.dat"), n_x) dep = np.maximum(0, read_nohead_scalar(sws_out.joinpath("dep.dat"), n_x)) vel = read_nohead_vect(sws_out.joinpath("vel.dat"), n_x) @@ -39,5 +39,5 @@ t = np.arange(0, n_t * dt, dt) log.info(f"Writing npz file in '{inp}'") inp.mkdir(exist_ok=True) np.savez_compressed( - inp.joinpath("sws"), x=bathy.index, t=t, botl=botl, dep=dep, vel=vel + inp.joinpath("sws"), x=bathy.index, t=t, botl=botl[0, :], dep=dep, vel=vel )