Merge branch 'swash'
This commit is contained in:
commit
35ca912380
1 changed files with 4 additions and 6 deletions
|
@ -34,9 +34,9 @@ poro = np.loadtxt(root.joinpath(config.get("data", "poro")))
|
|||
psize = np.loadtxt(root.joinpath(config.get("data", "psize")))
|
||||
|
||||
log.info("Generating grid")
|
||||
x_hires = np.arange(-0.5 * bathy_hires.size, 0, 0.5)
|
||||
x_lores = np.arange(-1 * bathy_lores.size, 0, 1)
|
||||
x_hstru = np.arange(-0.5 * hstru.size, 0, 0.5)
|
||||
x_hires = -np.arange(0, 0.5 * bathy_hires.size, 0.5)[::-1]
|
||||
x_lores = -np.arange(0, 1 * bathy_lores.size, 1)[::-1]
|
||||
x_hstru = -np.arange(0, 0.5 * hstru.size, 0.5)[::-1]
|
||||
|
||||
log.info("Generating output data")
|
||||
bathy_hires_pd = pd.Series(bathy_hires.copy(), index=x_hires)
|
||||
|
@ -84,9 +84,7 @@ if config.getboolean("proc", "plot", fallback=False):
|
|||
ax.plot(x_hires, bathy_hires, label="High-res")
|
||||
ax.plot(x_lores, bathy_lores, label="Low-res")
|
||||
ax.plot(bathy.index, bathy.z, ls="-.", c="k", label="Combined")
|
||||
ax.plot(bathy.index, bathy.hstru, label="Hstru")
|
||||
ax.plot(bathy.index, bathy.poro, label="Poro")
|
||||
ax.plot(bathy.index, bathy.psize, label="Psize")
|
||||
ax.plot(bathy.index, bathy.z + bathy.hstru, label="Hstru")
|
||||
|
||||
ax.grid()
|
||||
ax.legend()
|
||||
|
|
Loading…
Reference in a new issue