Open valdemetriades opened 2 years ago
Kan je de foutmelding hier posten? Zou helpen om te weten waar het script vastloopt.
Fixed something for a small extent when no bathymetry is present in extent. Was that the issue?
See f3b4f81fc37e87c75b7648751b4991f910787ecf
There is also an error when using a small extent when there is bathymetry info available. For instance for the extent: extent = [134200, 137600, 469800, 473000.] # Kortenhoef (also tested for larger area with batymetry)
In surface_water.waterinfo_to_ghb(....) --> No large surface water in extent?
Error(s):
Building DRN spd: 100%|███████████████████████████████████████████████████████████████| 49/49 [00:00<00:00, 320.25it/s]
Traceback (most recent call last):
File "01_create_model_local_kortenhoef.py", line 638, in
Can you check if this change solves the isssue? 11259539a4cbed5d2c1c155398421612225874c5
I added a check whether there is any large surface water present, if so, then it creates the GHB file, otherwise it continues the script.
Seems to work now. But crashes on the plotting part. Commenting out the line were the GHB boundary condition is plotted solves this for now.
Hopefully also fixed with latest commit c9c5193798b85780e03d8502f9969cd2d14c3d23
Opbouw van een deelmodel gaat niet altijd goed: alle watertypen moeten binnen de model extent vallen, anders krijg je een foutmelding.