Fixed sws_ola

This commit is contained in:
Edgar P. Burkhart 2022-03-28 10:27:38 +02:00
parent ba675fb763
commit a335f2f5ce
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
19 changed files with 311413 additions and 33 deletions

View file

@ -20,8 +20,9 @@ log.info("Starting sws -> olaFlow converter")
config = configparser.ConfigParser()
config.read("config.ini")
bathy = np.loadtxt(config.get("bathy", "bathy"))
poro = bathy + np.loadtxt(config.get("bathy", "hstru"))
bathy = np.loadtxt(config.get("bathy", "bathy"))[::-1]
hstru = np.loadtxt(config.get("bathy", "hstru"))[::-1]
poro = bathy + np.where(hstru == 0, -5, hstru)
out = pathlib.Path(config.get("bathy", "out"))
out.mkdir(exist_ok=True)