Updated projection without breakwater
This commit is contained in:
parent
dbced643ca
commit
0a122f76f3
2 changed files with 5 additions and 3 deletions
|
@ -8,12 +8,13 @@ psize=Psize.dat
|
|||
hires_step=0.5
|
||||
|
||||
[out]
|
||||
margin=0.005
|
||||
no_breakwater=True
|
||||
root=out_nb
|
||||
sub=bathy_sub.npy
|
||||
out=bathy.npy
|
||||
step=1
|
||||
left=0
|
||||
left=-300
|
||||
right=150
|
||||
|
||||
[artha]
|
||||
|
|
|
@ -91,13 +91,14 @@ x_min_hires = x[z_crossing] + (bathy_hires[:, 0].min() - bathy_hires[hires_cross
|
|||
x_max_hires = x[z_crossing] + (bathy_hires[:, 0].max() - bathy_hires[hires_crossing, 0])
|
||||
log.debug(f"Replacing range: [{x_min_hires},{x_max_hires}]")
|
||||
|
||||
flt_x = (x > x_min_hires) & (x < x_max_hires)
|
||||
hstru = np.zeros(z.shape)
|
||||
poro = np.zeros(z.shape)
|
||||
psize = np.zeros(z.shape)
|
||||
if config.getboolean("out", "no_breakwater", fallback=False):
|
||||
z[flt_x] = z[flt_x][-1]
|
||||
flt_x = np.abs(x) < 250
|
||||
z[flt_x] = np.linspace(z[flt_x][0], z[flt_x][-1], flt_x.sum())
|
||||
else:
|
||||
flt_x = (x > x_min_hires) & (x < x_max_hires)
|
||||
z[flt_x] = interpolate.griddata(
|
||||
(bathy_hires[:, 0],),
|
||||
bathy_hires[:, 1],
|
||||
|
|
Loading…
Reference in a new issue