Postprocessing swash
This commit is contained in:
parent
c4bad56faf
commit
4ab8973bec
2 changed files with 15 additions and 5 deletions
|
@ -15,4 +15,4 @@ root=cache
|
||||||
[swash]
|
[swash]
|
||||||
input=sws/INPUT.sws
|
input=sws/INPUT.sws
|
||||||
swashrun=/opt/swash/swash/swashrun
|
swashrun=/opt/swash/swash/swashrun
|
||||||
out=out
|
out=out.long
|
||||||
|
|
|
@ -17,10 +17,20 @@ root = pathlib.Path(config.get("swash", "out"))
|
||||||
bathy = pd.read_hdf(cache.joinpath("bathy.h5"), "bathy")
|
bathy = pd.read_hdf(cache.joinpath("bathy.h5"), "bathy")
|
||||||
n = bathy.index.size
|
n = bathy.index.size
|
||||||
|
|
||||||
|
# xp = read_nohead_scalar(root.joinpath("xp.dat"), n)
|
||||||
botl = read_nohead_scalar(root.joinpath("botl.dat"), n)
|
botl = read_nohead_scalar(root.joinpath("botl.dat"), n)
|
||||||
dep = read_nohead_scalar(root.joinpath("dep.dat"), n)
|
dep = np.maximum(0, read_nohead_scalar(root.joinpath("dep.dat"), n))
|
||||||
watl = read_nohead_scalar(root.joinpath("watl.dat"), n)
|
# watl = read_nohead_scalar(root.joinpath("watl.dat"), n)
|
||||||
|
|
||||||
plt.plot(dep.T - botl.T, label="dep")
|
plt.plot((dep.T - botl.T)[:, 4000], label="dep", color="#0066ff")
|
||||||
plt.plot(-botl.T[:, 0], label="botl")
|
plt.plot(-botl.T[:, 0], label="botl", color="k")
|
||||||
|
plt.fill_between(
|
||||||
|
np.arange(n),
|
||||||
|
-botl.T[:, 0],
|
||||||
|
bathy.hstru.values - botl.T[:, 0],
|
||||||
|
label="hstru",
|
||||||
|
color="k",
|
||||||
|
alpha=0.1,
|
||||||
|
)
|
||||||
|
plt.legend()
|
||||||
plt.show(block=True)
|
plt.show(block=True)
|
||||||
|
|
Reference in a new issue