Fixed t in sws_npz
This commit is contained in:
parent
bec1cd2a89
commit
b73f81c4ea
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue