-
Notifications
You must be signed in to change notification settings - Fork 0
/
modelbouw.ipynb old
1482 lines (1482 loc) · 73.1 KB
/
modelbouw.ipynb old
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# D-Hydro De Dellen V1\n",
"\n",
"## Introductie\n",
"\n",
"Met dit notebook bouw je een 1D D-hydromodel voor Stroomgebied De Dellen in het beheergebied van waterschap Hunze en Aa's.\n",
"\n",
"Zorg dat je beschikt over een werkende Python installatie en <a href=\"https://github.com/openearth/delft3dfmpy#installation\">D-HYDAMO omgeving</a>. Het resulterende model moet geimporteerd kunnen worden in D-HYDRO versie 0.9.7.52006 of hoger.\n",
"\n",
"De verwijzing naar bestanden is geschreven in het Nederlands. De rest van de code is geschreven in het Engels. Elk code-blok is voorzien van uitleg boven het desbetreffende blok, geschreven in het Nederlands.\n",
"\n",
"Werkwijze:\n",
"- Download alle projectbestanden van deze Git en plaats ze in een projectmap op de schijf.\n",
"- Download de bestanden met gegevens uit het <a href=\"https://www.dropbox.com/s/rm5dxar9lvqjfsh/beheerregister.zip?dl=0\">beheerregister</a> en zet deze in de folder .\\beheerregister binnen het project\n",
"- Download de bestanden met <a href=\"https://www.dropbox.com/s/k9dqouu62mqz9bu/data.zip?dl=0\">boundaries en laterale instroming</a> en zet deze in de folder .\\data binnen het project\n",
"- Zorg voor de werkende Delft3DFMPY-omgeving zoals in de aanhef omschreven.\n",
"- Activeer de Delft3DFMPY-omgeving als volgt: start een Anaconda Prompt via het startmenu (een console-window)\n",
"- Navigeer naar het project met de 'good old' DOS-commando's cd (change directory)\n",
"- Voer het commando conda activate delft3dfmpy uit\n",
"- Om straks de XLSX-bestanden (boundaries) te kunnen uitlezen is openpyxl nodig: conda install openpyxl. Dit commando moet uitgevoerd worden binnen de delft3dfmpy-environment. Vandaar dat deze stap hier komt.\n",
"- Start nu het Jupyter Notebook met het commando Jupyter notebook.\n",
"- In de webbrowser verschijnt nu een pagina met een overzicht van de projectbestanden. Klik nu op modelbouw.ipynb om dit notebook te openen."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Controle bestanden\n",
"\n",
"Alle bestanden die gebruikt worden in deze tutorial staan in het code-blok hieronder. Wanneer je dit codeblok uitvoert wordt de aanwezigheid van deze bestanden gecontroleerd.\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"scrolled": true
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Paden succesvol ingesteld.\n"
]
}
],
"source": [
"from pathlib import Path\n",
"\n",
"data_path = Path(r\".\\data\").absolute().resolve()\n",
"excelbestanden = data_path.joinpath(\"xlsx\")\n",
"\n",
"beheerregister = Path(r\".\\beheerregister\").absolute().resolve()\n",
"\n",
"modelbestanden = {\"randvoorwaarden\":\"randvoorwaarden.xlsx\"}\n",
"\n",
"invoerbestanden = {\"modelgebied\": \"DeDellen_gebiedsgrens.shp\",\n",
" \"branches\": \"Hoofdwatergang_Dellen_singlepart.shp\",\n",
" \"profielpunten\": \"profielpunten_Dellen.shp\",\n",
" \"bruggen\": \"Brug_Dellen.shp\",\n",
" \"duikers\": \"Duiker_Dellen.shp\",\n",
" \"sifons\": \"Syphon_Dellen.shp\",\n",
" \"stuwen\": \"Stuw_Dellen.shp\",\n",
" \"inlaten\": \"Inlaat.shp\",\n",
" \"gemalen\": \"Gemaal.shp\",\n",
" \"peilgebieden\": \"Peilgebied_Dellen.shp\"}\n",
"\n",
"vorm_mapping = dict(rond=1,\n",
" driehoekig=1,\n",
" rechthoekig=3,\n",
" eivormig=1,\n",
" ellips=1,\n",
" Paraboolvormig=1,\n",
" trapeziumvormig=1,\n",
" heul=1,\n",
" muil=3,\n",
" langwerpig=1,\n",
" scherp=1,\n",
" onbekend=99,\n",
" overig=99)\n",
"\n",
"ruwheid_mapping = {\"A1\": 0.03,\n",
" \"A2\": 0.03,\n",
" \"A2 Boot\": 0.03,\n",
" \"A3\": 0.03,\n",
" \"B1\": 0.02,\n",
" \"B2\": 0.022,\n",
" \"C1\": 0.02,\n",
" \"C2b\": 0.022,\n",
" \"DERDEN\": 0.03,\n",
" \"GEEN\": 0.07}\n",
"\n",
"for key, item in invoerbestanden.items():\n",
" if not beheerregister.joinpath(item).exists():\n",
" print(f\"bestand voor {key} bestaat niet: {beheerregister.joinpath(item)}\")\n",
" \n",
"for key, item in modelbestanden.items():\n",
" if not excelbestanden.joinpath(item).exists():\n",
" print(f\"bestand voor {key} bestaat niet: {excelbestanden.joinpath(item)}\")\n",
" \n",
"print(\"Paden succesvol ingesteld.\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Inlezen beheerregister in HyDAMO\n",
"\n",
"### Aanmaken HyDAMO object\n",
"\n",
"Alle benodigde modules worden geimporteerd en het HYDAMO object wordt aangemaakt bij het uitvoeren van onderstaand code-blok"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"from delft3dfmpy import DFlowFMModel, HyDAMO, Rectangular, DFlowFMWriter\n",
"from delft3dfmpy import DFlowRRModel, DFlowRRWriter\n",
"from delft3dfmpy.datamodels.common import ExtendedGeoDataFrame\n",
"import hydrotools\n",
"import geopandas as gpd\n",
"import pandas as pd\n",
"from shapely.geometry import LineString\n",
"\n",
"hydamo = HyDAMO(extent_file=str(beheerregister.joinpath(invoerbestanden[\"modelgebied\"])))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Toevoegen waterlopen\n",
"\n",
"De waterlopen (branches) worden toegevoegd met volgend code-blok:\n",
"* de branches worden toegekend aan het hydamo-object\n",
"* een HyDAMO ruwheidscode (4 = manning) wordt toegekend\n",
"* de eindpunten van de branches worden gesnapped binnen een tolerantie van 1m. De coordinaten worden ook afgerond op 1m."
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"# gdf = gpd.read_file(beheerregister.joinpath(invoerbestanden[\"branches\"]))\n",
"# gdf.columns = gdf.columns.str.lower()\n",
"# print(gdf.columns)\n",
"\n",
"gdf = hydrotools.read_file(beheerregister.joinpath(invoerbestanden[\"branches\"]),\n",
" hydamo_attribute=\"branches\",\n",
" index_col=\"ovkident\",\n",
" keep_columns=[\"code\",\n",
" \"bodembreedte\",\n",
" \"bodemhoogte_bov\",\n",
" \"bodemhoogte_ben\",\n",
" \"bovenbreedte\",\n",
" \"taludhellinglinkerzijde\",\n",
" \"avvtalur\",\n",
" \"taludhellingrechterzijde\",\n",
" \"werkcode\",\n",
" \"objectid\"],\n",
" column_mapping={\"ovkident\": \"code\",\n",
" \"avvboddr\": \"bodembreedte\",\n",
" \"avvhobos\": \"bodemhoogte_bov\",\n",
" \"avvhobes\": \"bodemhoogte_ben\",\n",
" \"iws_bovenb\": \"bovenbreedte\",\n",
" \"avvtalul\": \"taludhellinglinkerzijde\",\n",
" \"avvtalur\": \"taludhellingrechterzijde\"}\n",
" )\n",
"\n",
"gdf.loc[:, \"ruwheidstypecode\"] = 2\n",
"gdf.loc[:, \"ruwheidswaarde\"] = gdf.apply((lambda x: ruwheid_mapping[x[\"werkcode\"]]), axis=1)\n",
"\n",
"#print(beheerregister.joinpath(invoerbestanden[\"branches\"]))\n",
"#print(\"kolommen in geodataframe: \" + gdf.columns)\n",
"\n",
"#hydamo.branches = hydrotools.snap_ends(hydamo.branches, tolerance=1, digits=1)\n",
"\n",
"# verplaatsen eindpunten\n",
"#move_lines_gdf = gpd.read_file(data_path.joinpath(\"shp\",\"verplaats_eind_nodes.shp\"))\n",
"#gdf = hydrotools.move_end_nodes(gdf, move_lines_gdf, threshold=1)\n",
"\n",
"hydamo.branches.set_data(gdf, index_col=\"code\", check_columns=True, check_geotype=True)\n",
"\n",
"#hydamo.branches = hydrotools.snap_ends(hydamo.branches, tolerance=1, digits=1)\n",
"\n",
"#hydamo.branches = hydamo.branches.loc[~hydamo.branches.index.isin([\"OAF016902\",\n",
" # \"OAF016901\"])]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Aanmaken principeprofielen\n",
"Als terugvaloptie voor branches zonder profielen schrijven we principeprofielen weg die we later in deze notebook gebruiken"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"principe_profielen_bov_df = hydrotools.get_trapeziums(gdf,\n",
" \"code\",\n",
" \"bodembreedte\",\n",
" \"bodemhoogte_bov\",\n",
" \"bovenbreedte\",\n",
" \"taludhellinglinkerzijde\",\n",
" \"taludhellingrechterzijde\",\n",
" \"ruwheidstypecode\",\n",
" \"ruwheidswaarde\")\n",
"\n",
"principe_profielen_ben_df = hydrotools.get_trapeziums(gdf,\n",
" \"code\",\n",
" \"bodembreedte\",\n",
" \"bodemhoogte_ben\",\n",
" \"bovenbreedte\",\n",
" \"taludhellinglinkerzijde\",\n",
" \"taludhellingrechterzijde\",\n",
" \"ruwheidstypecode\",\n",
" \"ruwheidswaarde\")\n",
"\n",
"principe_profielen_bov_df.to_csv(excelbestanden.joinpath(\"principe_profielen_bovenstrooms.csv\"))\n",
"principe_profielen_ben_df.to_csv(excelbestanden.joinpath(\"principe_profielen_benedenstrooms.csv\"))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Aanmaken laterale instroompunten RR"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"hydamo.laterals.read_shp(beheerregister.joinpath(data_path,'shp/1DLateralInflowPoints.shp'),\n",
" column_mapping={\"OBJECTID\":\"code\",\n",
" \"X\":\"X\",\n",
" \"Y\":\"Y\"})\n",
"hydamo.laterals.snap_to_branch(hydamo.branches, snap_method='overal', maxdist=500)\n",
"hydamo.laterals.dropna(axis=0, inplace=True, subset=['branch_offset'])\n",
" "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Toevoegen yz-profielen\n",
"De yz-profielen worden ingeladen:\n",
"* De profielpunten worden geopend\n",
"* de punten worden geordend en geconverteerd naar polylinen met een xyz coordinaten\n",
"* toekennen ruwheid (manning = 35)\n",
"* lijnen langer dan 500m worden weggegooid, omdat er soms kademuren PRO_TYPE = PRO hebben gekregen\n",
"* lijnen worden toegekend aan het HyDAMO object\n",
"* lijnen die niet snappen met de branches, worden weggegooid\n",
"\n",
"ToDo:\n",
"* verbeteren toekenning ruwheid"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"0 20030408-7\n",
"5 20030404-5\n",
"7 20030312-7\n",
"8 20030310-9\n",
"9 20030211-3\n",
" ... \n",
"3980 DP20151028-11\n",
"3982 DP20151028-15\n",
"3985 DP20151028-12\n",
"3986 DP20151028-11\n",
"3987 DP20151028-11\n",
"Name: code, Length: 2371, dtype: object\n",
"Waarschuwing: 20060329-1372 bevat slechts één punt\n",
"Waarschuwing: 20060329-1373 bevat slechts één punt\n",
"Waarschuwing: DP20130329-36 bevat slechts één punt\n",
"Waarschuwing: DP20140224-06 bevat slechts één punt\n",
"Waarschuwing: DP20151026-21 bevat slechts één punt\n",
"Waarschuwing: LT0196180904113302 bevat slechts één punt\n"
]
}
],
"source": [
"gdf = hydrotools.read_file(beheerregister.joinpath(invoerbestanden[\"profielpunten\"]),\n",
" \"crosssections\",\n",
" attribute_filter={\"osmomsch\": [\"Z1\"]}, #we nemen alleen profielen van het type Z1 (vaste bodem) \n",
" column_mapping={\"CODE\": \"code\",\n",
" \"IWS_VOLGNR\": \"order\",\n",
" \"OSMOMSCH\": \"category\",\n",
" \"iws_hoogte\": \"z\"},\n",
" z_coord=True\n",
" )\n",
"print(gdf[\"code\"])\n",
"grouper = gdf.groupby(\"code\")\n",
"profiles = dict()\n",
"\n",
"for code, prof_gdf in grouper:\n",
" if len(prof_gdf) > 1: \n",
" prof_gdf = prof_gdf.sort_values(\"order\") #Staan ook punten met zelfde order\n",
" first_point = prof_gdf.iloc[0][\"geometry\"]\n",
" cum_dist = -1\n",
" line = []\n",
" for idx, (_, row) in enumerate(prof_gdf.iterrows()):\n",
" geom = row[\"geometry\"]\n",
" distance = geom.distance(first_point)\n",
" if distance > cum_dist:\n",
" cum_dist = distance\n",
" line += [(geom.x, geom.y, row[\"z\"])]\n",
"\n",
" profiles[code] = [code, LineString(line)]\n",
" else:\n",
" print(f\"Waarschuwing: {code} bevat slechts één punt\")\n",
"profiles_gdf = gpd.GeoDataFrame.from_dict(profiles,\n",
" orient=\"index\",\n",
" columns=[\"code\",\n",
" \"geometry\"]\n",
" )\n",
"\n",
"profiles_gdf[\"ruwheidstypecode\"] = 4\n",
"profiles_gdf[\"ruwheidswaarde\"] = 35\n",
"profiles_gdf[\"codegerelateerdobject\"] = None\n",
"\n",
"profiles_gdf = profiles_gdf.loc[profiles_gdf[\"geometry\"].length < 500]\n",
"\n",
"hydamo.crosssections.set_data(profiles_gdf,\n",
" index_col=\"code\",\n",
" check_columns=True,\n",
" check_geotype=True)\n",
"\n",
"hydamo.crosssections.snap_to_branch(hydamo.branches, snap_method=\"intersecting\")\n",
"hydamo.crosssections.dropna(axis=0, inplace=True, subset=[\"branch_offset\"])"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Toevoegen geparameteriseerde profielen\n",
"\n",
"Per brug moet er een profiel worden toegevoegd"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"code_folding": []
},
"outputs": [],
"source": [
"gdf = hydrotools.read_file(beheerregister.joinpath(invoerbestanden[\"bruggen\"]),\n",
" \"parametrised_profiles\",\n",
" column_mapping={\n",
" \"KBRIDENT\":\"code\",\n",
" \"KBRBHBO\": \"bodemhoogtebovenstrooms\",\n",
" \"KBRBHBE\": \"bodemhoogtebenedenstrooms\",\n",
" \"KBRBREED\": \"bodembreedte\",\n",
" \"KBRHOBO\": \"hoogteinsteeklinkerzijde\",\n",
" })\n",
"\n",
"grouper = gdf.groupby(\"code\")\n",
"data = {\"code\": [code for code, frame in grouper],\n",
" \"bodemhoogtebovenstrooms\": [frame[\"bodemhoogtebovenstrooms\"].values[0]\n",
" for code, frame in grouper],\n",
" \"bodemhoogtebenedenstrooms\": [frame[\"bodemhoogtebenedenstrooms\"].values[0]\n",
" for code, frame in grouper],\n",
" \"bodembreedte\": [frame[\"bodembreedte\"].values[0]\n",
" for code, frame in grouper],\n",
" \"hoogteinsteeklinkerzijde\": [frame[\"hoogteinsteeklinkerzijde\"].values[0]\n",
" for code, frame in grouper],\n",
" \"geometry\": [frame[\"geometry\"].values[0] for code, frame in grouper]\n",
" }\n",
"\n",
"gdf = gpd.GeoDataFrame(data)\n",
"gdf[\"geometry\"] = gdf.apply((lambda x: LineString([[x[\"geometry\"].x,\n",
" x[\"geometry\"].y],\n",
" [x[\"geometry\"].x+1,\n",
" x[\"geometry\"].y+1]])),\n",
" axis=1)\n",
"\n",
"gdf[\"codegerelateerdobject\"] = gdf[\"code\"].copy()\n",
"gdf[\"code\"] = [f\"PRO_{code}\" for code in gdf[\"code\"]]\n",
"gdf[\"hoogteinsteekrechterzijde\"] = gdf[\"hoogteinsteeklinkerzijde\"]\n",
"gdf[\"ruwheidswaarde\"] = 15\n",
"gdf[\"ruwheidstypecode\"] = 4\n",
"gdf[\"taludhellinglinkerzijde\"] = 1\n",
"gdf[\"taludhellingrechterzijde\"] = 1\n",
"\n",
"#vervang nan-waarde voor bodembreedte door defaultwaarde 1\n",
"gdf.loc[gdf[\"bodembreedte\"].isna(), \"bodembreedte\"] = 1\n",
"\n",
"hydamo.parametrised_profiles.set_data(gdf,\n",
" index_col=\"code\",\n",
" check_columns=True,\n",
" check_geotype=False)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Toevoegen bruggen\n",
"Per brug moet er een profiel worden toegevoegd"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Aantal bruggen binnen snapping distance: 7\n",
"Aantal bruggen toegevoegd aan het model: 2\n"
]
}
],
"source": [
"gdf = hydrotools.read_file(beheerregister.joinpath(invoerbestanden[\"bruggen\"]),\n",
" \"bridges\",\n",
" column_mapping={\n",
" \"KBRIDENT\":\"code\",\n",
" \"KBRLENGT\": \"lengte\",\n",
" \"KBRHOBO\": \"hoogteonderzijde\"})\n",
"\n",
"grouper = gdf.groupby(\"code\")\n",
"data = {\"code\": [code for code, frame in grouper],\n",
" \"hoogteonderzijde\": [frame[\"hoogteonderzijde\"].values[0] for code,\n",
" frame in grouper],\n",
" \"lengte\": [frame[\"lengte\"].values[0] for code, frame in grouper],\n",
" \"geometry\": [frame[\"geometry\"].values[0] for code, frame in grouper]\n",
" }\n",
"gdf = gpd.GeoDataFrame(data)\n",
"\n",
"gdf[\"hoogtebovenzijde\"] = gdf[\"hoogteonderzijde\"] + 1\n",
"\n",
"gdf[\"dwarsprofielcode\"] = gdf[\"code\"]\n",
"gdf[\"intreeverlies\"] = 0.7\n",
"gdf[\"uittreeverlies\"] = 0.7\n",
"gdf[\"ruwheidstypecode\"] = 4\n",
"gdf[\"ruwheidswaarde\"] = 70\n",
"\n",
"hydamo.bridges.set_data(gdf, index_col=\"code\", check_columns=True, check_geotype=False)\n",
"hydamo.bridges.snap_to_branch(hydamo.branches, snap_method=\"overal\", maxdist=5)\n",
"hydamo.bridges.dropna(axis=0, inplace=True, subset=[\"branch_offset\"])\n",
"print(\"Aantal bruggen binnen snapping distance: \" + str(len(hydamo.bridges)))\n",
"hydamo.bridges.dropna(axis=0, inplace=True, subset=[\"hoogteonderzijde\"])\n",
"print(\"Aantal bruggen toegevoegd aan het model: \" + str(len(hydamo.bridges)))\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Toevoegen duikers en siphons\n",
"duikers en sifons worden als cuverts aan het HyDAMO object toegekend\n",
"\n",
"ToDo\n",
"* vorm moet naar HyDAMO codering worden omgeschreven"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Number of culverts in datasource is 528\n",
"Number of culverts withing snapping range is 193\n",
"Number of culverts written to model is 150\n"
]
}
],
"source": [
"culverts_gdf = hydrotools.read_file(beheerregister.joinpath(invoerbestanden[\"duikers\"]),\n",
" \"culverts\",\n",
" column_mapping={\n",
" \"KDUIDENT\": \"code\",\n",
" \"KDULENGT\": \"lengte\",\n",
" \"KDUHGA1\": \"hoogteopening\",\n",
" \"KDUBREED\": \"breedteopening\",\n",
" \"KDUBOKBE\": \"hoogtebinnenonderkantbenedenstrooms\",\n",
" \"KDUBOKBO\": \"hoogtebinnenonderkantbovenstrooms\",\n",
" \"KDUVORM\": \"vormcode\"})\n",
"\n",
"siphons_gdf = hydrotools.read_file(beheerregister.joinpath(invoerbestanden[\"sifons\"]),\n",
" \"culverts\",\n",
" column_mapping={\n",
" \"KSYIDENT\": \"code\",\n",
" \"IWS_LENGTE\": \"lengte\",\n",
" \"KSYHGA1\": \"hoogteopening\",\n",
" \"KSYBREED\": \"breedteopening\",\n",
" \"IWS_HBOKBE\":\"hoogtebinnenonderkantbenedenstrooms\",\n",
" \"IWS_HBOKBO\":\"hoogtebinnenonderkantbovenstrooms\",\n",
" \"KSYVORM\":\"vormcode\"})\n",
"\n",
"gdf = gpd.GeoDataFrame(pd.concat([culverts_gdf,siphons_gdf], ignore_index=True))\n",
"\n",
"gdf.loc[gdf['vormcode'].isnull(), 'vormcode'] = 'onbekend'\n",
"gdf.loc[:, 'vormcode'] = gdf.apply((lambda x: vorm_mapping[x['vormcode'].lower()]), axis=1)\n",
"\n",
"gdf[\"intreeverlies\"] = 0.7\n",
"gdf[\"uittreeverlies\"] = 0.7\n",
"gdf[\"ruwheidswaarde\"] = 70\n",
"gdf[\"ruwheidstypecode\"] = 4\n",
"\n",
"hydamo.culverts.set_data(gdf, index_col=\"code\", check_columns=True, check_geotype=True)\n",
"hydamo.culverts.snap_to_branch(hydamo.branches, snap_method=\"ends\", maxdist=5)\n",
"\n",
"print(\"Number of culverts in datasource is \" + str(len(hydamo.culverts)))\n",
"hydamo.culverts.dropna(axis=0, inplace=True, subset=[\"branch_offset\"])\n",
"print(\"Number of culverts withing snapping range is \" + str(len(hydamo.culverts)))\n",
"hydamo.culverts.dropna(axis=0, inplace=True, subset=[\"hoogtebinnenonderkantbovenstrooms\"])\n",
"hydamo.culverts.dropna(axis=0, inplace=True, subset=[\"hoogtebinnenonderkantbenedenstrooms\"])\n",
"print(\"Number of culverts written to model is \" + str(len(hydamo.culverts)))\n",
"\n",
"hydamo.culverts.loc[hydamo.culverts[\"hoogteopening\"].isna(), \"hoogteopening\"] = 0.5\n",
"hydamo.culverts.loc[hydamo.culverts[\"breedteopening\"].isna(), \"breedteopening\"] = 0.5\n",
"hydamo.culverts.loc[hydamo.culverts[\"lengte\"].isna(), \"lengte\"] = 20\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Toevoegen stuwen"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
"gdf = hydrotools.read_file(beheerregister.joinpath(invoerbestanden[\"stuwen\"]),\n",
" \"weirs\",\n",
" column_mapping={\"kstident\": \"code\",\n",
" \"kstsoort\": \"soortstuwcode\",\n",
" \"kstkrubr\": \"laagstedoorstroombreedte\",\n",
" \"kstmikho\": \"laagstedoorstroomhoogte\",\n",
" \"kstregel\": \"soortregelbaarheidcode\"})\n",
"\n",
"gdf[\"afvoercoefficient\"] = 1\n",
"\n",
"hydamo.weirs.set_data(gdf, index_col=\"code\", check_columns=True, check_geotype=True)\n",
"hydamo.weirs.snap_to_branch(hydamo.branches, snap_method=\"overal\", maxdist=10)\n",
"hydamo.weirs.dropna(axis=0, inplace=True, subset=[\"branch_offset\"])"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Toevoegen gemalen"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
"pumps_gdf = hydrotools.read_file(beheerregister.joinpath(invoerbestanden[\"gemalen\"]),\n",
" \"pumps\",\n",
" column_mapping={\n",
" \"KGMIDENT\": \"code\",\n",
" \"KGMMACAP\": \"maximalecapaciteit\"})\n",
"\n",
"gemalen_gdf = pumps_gdf.copy()\n",
"pumps_gdf[\"codegerelateerdobject\"] = pumps_gdf[\"code\"].copy()\n",
"pumps_gdf[\"code\"] = [f\"PMP_{code}\" for code in pumps_gdf[\"code\"]]\n",
"hydamo.gemalen.set_data(gemalen_gdf,\n",
" index_col=\"code\",\n",
" check_columns=True,\n",
" check_geotype=True)\n",
"hydamo.gemalen.snap_to_branch(hydamo.branches, snap_method=\"overal\", maxdist=5)\n",
"hydamo.gemalen.dropna(axis=0, inplace=True, subset=[\"branch_offset\"])\n",
"hydamo.pumps.set_data(pumps_gdf,\n",
" index_col=\"code\",\n",
" check_columns=True,\n",
" check_geotype=True)\n",
"hydamo.pumps.snap_to_branch(hydamo.branches, snap_method=\"overal\", maxdist=5)\n",
"hydamo.pumps.dropna(axis=0, inplace=True, subset=[\"branch_offset\"])"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Toevoegen afsluitmiddelen"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [],
"source": [
"gdf = pd.DataFrame({\"code\": [],\n",
" \"soortafsluitmiddelcode\": [],\n",
" \"codegerelateerdobject\": []})\n",
"\n",
"hydamo.afsluitmiddel.set_data(gdf, index_col=\"code\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Toevoegen sturing"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {},
"outputs": [],
"source": [
"gpg_gdf = hydrotools.read_file(beheerregister.joinpath(invoerbestanden[\"peilgebieden\"]),\n",
" \"sturing\",\n",
" column_mapping={\"GPGIDENT\": \"code\",\n",
" \"GPGZMRPL\": \"streefwaarde\"\n",
" })\n",
"\n",
"gpg_gdf[\"codegerelateerdobject\"] = [code.replace(\"GPG\", \"\") for code in gpg_gdf[\"code\"]]\n",
"gpg_gdf = gpg_gdf[gpg_gdf[\"codegerelateerdobject\"].isin(hydamo.gemalen[\"code\"])]\n",
"con_gdf = hydamo.gemalen[~hydamo.gemalen[\"code\"].isin(gpg_gdf[\"codegerelateerdobject\"])]\n",
"con_gdf = gpd.GeoDataFrame(data={\"code\": con_gdf[\"code\"].values,\n",
" \"geometry\": con_gdf[\"geometry\"].values})\n",
"con_gdf[\"codegerelateerdobject\"] = con_gdf[\"code\"]\n",
"con_gdf[\"streefwaarde\"] = -999\n",
"\n",
"gdf = gpd.GeoDataFrame(pd.concat([gpg_gdf, con_gdf], ignore_index=True))\n",
"\n",
"gdf[\"bovenmarge\"] = gdf[\"streefwaarde\"] + 0.05\n",
"gdf[\"ondermarge\"] = gdf[\"streefwaarde\"] - 0.05\n",
"gdf[\"doelvariabelecode\"] = 1\n",
"\n",
"hydamo.sturing.set_data(gdf, index_col=\"code\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Filteren\n",
"\n",
"We maken een subset van branches op basis van waarden uit een gegeven veld. In dit geval worden alle takken waarvoor geldt OBJECTID = 1 opgenomen in de modelschematisatie. Idem voor alle kunstwerken + profielen die naar deze branches zijn gesnapped. Om het resultaat te beoordelen exporteren we alles naar shape-files. We slaan het hydamo object ook op als \"pickle\", zodat we bovenstaande stappen niet elke keer hoeven te herhalen"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
"hydamo = hydrotools.filter_model(hydamo, attribute_filter={\"OBJECTID\": 1})\n",
"#hydrotools.export_shapes(hydamo, path=Path(r\"./hydamo_shp/dellen\"))\n",
"hydrotools.save_model(hydamo, file_name=Path(r\"./hydamo_model/dellen.pickle\"))\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Converteren naar DFM\n",
"\n",
"### Aanmaken dfm-klassen"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [],
"source": [
"dfmmodel = DFlowFMModel()\n",
"drrmodel = DFlowRRModel()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Inlezen kunstwerken en laterale instromingen"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"2021-06-22 14:08:46,955 - delft3dfmpy.converters.hydamo_to_dflowfm - hydamo_to_dflowfm - INFO - Currently only simple weirs can be applied. From Hydamo the attributes 'laagstedoorstroomhoogte' and 'kruinbreedte' are used to define the weir dimensions.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"INFO:delft3dfmpy.converters.hydamo_to_dflowfm:Currently only simple weirs can be applied. From Hydamo the attributes 'laagstedoorstroomhoogte' and 'kruinbreedte' are used to define the weir dimensions.\n"
]
}
],
"source": [
"dfmmodel.structures.io.weirs_from_hydamo(hydamo.weirs,\n",
" yz_profiles=hydamo.crosssections,\n",
" parametrised_profiles=hydamo.parametrised_profiles)\n",
"\n",
"dfmmodel.structures.io.culverts_from_hydamo(hydamo.culverts,\n",
" hydamo.afsluitmiddel)\n",
"\n",
"dfmmodel.structures.io.bridges_from_hydamo(hydamo.bridges,\n",
" yz_profiles=hydamo.crosssections,\n",
" parametrised_profiles=hydamo.parametrised_profiles)\n",
"\n",
"for lateral in hydamo.laterals.itertuples():\n",
" dfmmodel.external_forcings.laterals[lateral.code] = {\n",
" 'branchid': lateral.branch_id,\n",
" 'branch_offset':str(lateral.branch_offset)\n",
" }\n",
" drrmodel.external_forcings.add_boundary_node(lateral.code, lateral.X, lateral.Y)\n",
"\n",
"\n",
"dfmmodel.structures.io.orifices_from_hydamo(hydamo.orifices)\n",
"\n",
"dfmmodel.structures.io.pumps_from_hydamo(pompen=hydamo.pumps,\n",
" sturing=hydamo.sturing,\n",
" gemalen=hydamo.gemalen)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Aanmaken 1d netwerk"
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"2021-06-22 14:08:47,110 - delft3dfmpy.core.dfm - dfm - WARNING - Some structures are not linked to a branch.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING:delft3dfmpy.core.dfm:Some structures are not linked to a branch.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"2021-06-22 14:08:47,112 - delft3dfmpy.core.dfm - dfm - INFO - Added 1d mesh nodes on branch OAF-O-00002 at: [0.0, 44.941500000000005, 71.82240223650987], due to the structures at [-0.001, 22.061, 67.822, 71.82340223650988].\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"INFO:delft3dfmpy.core.dfm:Added 1d mesh nodes on branch OAF-O-00002 at: [0.0, 44.941500000000005, 71.82240223650987], due to the structures at [-0.001, 22.061, 67.822, 71.82340223650988].\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"2021-06-22 14:08:47,115 - delft3dfmpy.core.dfm - dfm - INFO - Added 1d mesh nodes on branch OAF-O-00059 at: [0.0, 985.2394999999999, 1046.7060000000001, 1083.9012346060038], due to the structures at [-0.001, 202.42, 317.606, 532.454, 949.228, 1021.251, 1072.161, 1083.9022346060037].\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"INFO:delft3dfmpy.core.dfm:Added 1d mesh nodes on branch OAF-O-00059 at: [0.0, 985.2394999999999, 1046.7060000000001, 1083.9012346060038], due to the structures at [-0.001, 202.42, 317.606, 532.454, 949.228, 1021.251, 1072.161, 1083.9022346060037].\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"2021-06-22 14:08:47,117 - delft3dfmpy.core.dfm - dfm - INFO - Added 1d mesh nodes on branch OAF-O-00074 at: [0.0, 332.925, 384.41801394242833], due to the structures at [-0.001, 115.536, 296.141, 369.709, 384.4190139424283].\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"INFO:delft3dfmpy.core.dfm:Added 1d mesh nodes on branch OAF-O-00074 at: [0.0, 332.925, 384.41801394242833], due to the structures at [-0.001, 115.536, 296.141, 369.709, 384.4190139424283].\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"2021-06-22 14:08:47,120 - delft3dfmpy.core.dfm - dfm - INFO - Added 1d mesh nodes on branch OAF-O-00076 at: [0.0, 457.21000000000004, 497.3560484101556], due to the structures at [-0.001, 427.504, 486.916, 497.3570484101556].\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"INFO:delft3dfmpy.core.dfm:Added 1d mesh nodes on branch OAF-O-00076 at: [0.0, 457.21000000000004, 497.3560484101556], due to the structures at [-0.001, 427.504, 486.916, 497.3570484101556].\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"2021-06-22 14:08:47,121 - delft3dfmpy.core.dfm - dfm - INFO - Added 1d mesh nodes on branch OAF-O-00078 at: [0.0, 48.5755, 331.1517882252236], due to the structures at [-0.001, 0.1, 97.051, 300.442, 331.15278822522356].\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"INFO:delft3dfmpy.core.dfm:Added 1d mesh nodes on branch OAF-O-00078 at: [0.0, 48.5755, 331.1517882252236], due to the structures at [-0.001, 0.1, 97.051, 300.442, 331.15278822522356].\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"2021-06-22 14:08:47,123 - delft3dfmpy.core.dfm - dfm - INFO - Added 1d mesh nodes on branch OAF-O-00080 at: [0.0, 223.986, 254.11065075130597], due to the structures at [-0.001, 31.621, 201.491, 246.481, 254.11165075130597].\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"INFO:delft3dfmpy.core.dfm:Added 1d mesh nodes on branch OAF-O-00080 at: [0.0, 223.986, 254.11065075130597], due to the structures at [-0.001, 31.621, 201.491, 246.481, 254.11165075130597].\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"2021-06-22 14:08:47,125 - delft3dfmpy.core.dfm - dfm - INFO - Added 1d mesh nodes on branch OAF-O-00081 at: [0.0, 826.1179999999999, 874.6875598644649], due to the structures at [-0.001, 30.192, 818.007, 834.229, 874.6885598644649].\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"INFO:delft3dfmpy.core.dfm:Added 1d mesh nodes on branch OAF-O-00081 at: [0.0, 826.1179999999999, 874.6875598644649], due to the structures at [-0.001, 30.192, 818.007, 834.229, 874.6885598644649].\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"2021-06-22 14:08:47,127 - delft3dfmpy.core.dfm - dfm - INFO - Added 1d mesh nodes on branch OAF-O-00084 at: [0.0, 2.6395, 10.358564872092254], due to the structures at [-0.001, 0.1, 5.179, 10.359564872092253].\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"INFO:delft3dfmpy.core.dfm:Added 1d mesh nodes on branch OAF-O-00084 at: [0.0, 2.6395, 10.358564872092254], due to the structures at [-0.001, 0.1, 5.179, 10.359564872092253].\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"2021-06-22 14:08:47,129 - delft3dfmpy.core.dfm - dfm - INFO - Added 1d mesh nodes on branch OAF-O-00088 at: [0.0, 120.00900000000001, 279.3984293405456], due to the structures at [-0.001, 93.712, 146.306, 279.39942934054557].\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"INFO:delft3dfmpy.core.dfm:Added 1d mesh nodes on branch OAF-O-00088 at: [0.0, 120.00900000000001, 279.3984293405456], due to the structures at [-0.001, 93.712, 146.306, 279.39942934054557].\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"2021-06-22 14:08:47,133 - delft3dfmpy.core.dfm - dfm - INFO - Added 1d mesh nodes on branch OAF-O-00102 at: [0.0, 187.022, 246.46230576615983, 271.19161153231965], due to the structures at [-0.001, 152.211, 221.833, 271.09161153231963, 271.19261153231963].\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"INFO:delft3dfmpy.core.dfm:Added 1d mesh nodes on branch OAF-O-00102 at: [0.0, 187.022, 246.46230576615983, 271.19161153231965], due to the structures at [-0.001, 152.211, 221.833, 271.09161153231963, 271.19261153231963].\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"2021-06-22 14:08:47,135 - delft3dfmpy.core.dfm - dfm - INFO - Added 1d mesh nodes on branch OAF-O-00104 at: [0.0, 253.41000000000003, 305.951, 478.99049111882493], due to the structures at [-0.001, 6.0, 247.405, 259.415, 352.487, 470.99, 478.9914911188249].\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"INFO:delft3dfmpy.core.dfm:Added 1d mesh nodes on branch OAF-O-00104 at: [0.0, 253.41000000000003, 305.951, 478.99049111882493], due to the structures at [-0.001, 6.0, 247.405, 259.415, 352.487, 470.99, 478.9914911188249].\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"2021-06-22 14:08:47,141 - delft3dfmpy.core.dfm - dfm - INFO - Added 1d mesh nodes on branch OAF-O-00123 at: [0.0, 621.5620527261544, 628.1131054523089], due to the structures at [-0.001, 615.111, 628.0131054523089, 628.1141054523089].\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"INFO:delft3dfmpy.core.dfm:Added 1d mesh nodes on branch OAF-O-00123 at: [0.0, 621.5620527261544, 628.1131054523089], due to the structures at [-0.001, 615.111, 628.0131054523089, 628.1141054523089].\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"2021-06-22 14:08:47,153 - delft3dfmpy.core.dfm - dfm - INFO - Added 1d mesh nodes on branch OAF-O-00815 at: [0.0, 58.845, 128.09005177900627], due to the structures at [-0.001, 0.1, 117.59, 128.09105177900628].\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"INFO:delft3dfmpy.core.dfm:Added 1d mesh nodes on branch OAF-O-00815 at: [0.0, 58.845, 128.09005177900627], due to the structures at [-0.001, 0.1, 117.59, 128.09105177900628].\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"2021-06-22 14:08:47,154 - delft3dfmpy.core.dfm - dfm - INFO - Added 1d mesh nodes on branch OAF-O-00834 at: [0.0, 4.3975, 245.77393731499748], due to the structures at [-0.001, 2.0, 6.795, 245.7749373149975].\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"INFO:delft3dfmpy.core.dfm:Added 1d mesh nodes on branch OAF-O-00834 at: [0.0, 4.3975, 245.77393731499748], due to the structures at [-0.001, 2.0, 6.795, 245.7749373149975].\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"2021-06-22 14:08:47,159 - delft3dfmpy.core.dfm - dfm - INFO - Added 1d mesh nodes on branch OAF-O-00902 at: [0.0, 30.04, 90.7165, 160.369, 223.2095, 286.572, 355.62850000000003, 518.337, 554.1638833912862], due to the structures at [-0.001, 10.522, 49.558, 131.875, 188.863, 257.556, 315.588, 395.669, 494.01, 542.664, 554.1648833912861].\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [