pydra-core 0.0.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (389) hide show
  1. pydra_core/__init__.py +32 -0
  2. pydra_core/common/__init__.py +0 -0
  3. pydra_core/common/common.py +98 -0
  4. pydra_core/common/enum.py +63 -0
  5. pydra_core/common/interpolate.py +345 -0
  6. pydra_core/common/probability.py +293 -0
  7. pydra_core/core/__init__.py +0 -0
  8. pydra_core/core/calculation.py +51 -0
  9. pydra_core/core/datamodels/__init__.py +0 -0
  10. pydra_core/core/datamodels/frequency_line.py +60 -0
  11. pydra_core/core/exceedance_frequency_line.py +224 -0
  12. pydra_core/core/exceedance_frequency_line_experimental.py +163 -0
  13. pydra_core/core/hbn.py +226 -0
  14. pydra_core/data/settings/calculation_settings.sqlite +0 -0
  15. pydra_core/data/settings/lower_river_settings.cpg +1 -0
  16. pydra_core/data/settings/lower_river_settings.dbf +0 -0
  17. pydra_core/data/settings/lower_river_settings.prj +1 -0
  18. pydra_core/data/settings/lower_river_settings.shp +0 -0
  19. pydra_core/data/settings/lower_river_settings.shx +0 -0
  20. pydra_core/data/statistics/Afvoer/Borgharen/Ovkans_Borgharen_piekafvoer_2017.txt +37 -0
  21. pydra_core/data/statistics/Afvoer/Borgharen/Ovkans_Borgharen_piekafvoer_2017_metOnzHeid.txt +46 -0
  22. pydra_core/data/statistics/Afvoer/Borgharen/Ovkans_Borgharen_piekafvoer_OI2014_G_2015_metOnzHeid_v02.txt +50 -0
  23. pydra_core/data/statistics/Afvoer/Borgharen/Ovkans_Borgharen_piekafvoer_OI2014_G_2015_v02.txt +42 -0
  24. pydra_core/data/statistics/Afvoer/Borgharen/Ovkans_Borgharen_piekafvoer_OI2014_G_2050_metOnzHeid_v02.txt +56 -0
  25. pydra_core/data/statistics/Afvoer/Borgharen/Ovkans_Borgharen_piekafvoer_OI2014_G_2050_v02.txt +48 -0
  26. pydra_core/data/statistics/Afvoer/Borgharen/Ovkans_Borgharen_piekafvoer_OI2014_G_2100_metOnzHeid_v02.txt +56 -0
  27. pydra_core/data/statistics/Afvoer/Borgharen/Ovkans_Borgharen_piekafvoer_OI2014_G_2100_v02.txt +48 -0
  28. pydra_core/data/statistics/Afvoer/Borgharen/Ovkans_Borgharen_piekafvoer_OI2014_W_2015_metOnzHeid_v02.txt +50 -0
  29. pydra_core/data/statistics/Afvoer/Borgharen/Ovkans_Borgharen_piekafvoer_OI2014_W_2015_v02.txt +42 -0
  30. pydra_core/data/statistics/Afvoer/Borgharen/Ovkans_Borgharen_piekafvoer_OI2014_W_2050_metOnzHeid_v02.txt +56 -0
  31. pydra_core/data/statistics/Afvoer/Borgharen/Ovkans_Borgharen_piekafvoer_OI2014_W_2050_v02.txt +48 -0
  32. pydra_core/data/statistics/Afvoer/Borgharen/Ovkans_Borgharen_piekafvoer_OI2014_W_2100_metOnzHeid_v02.txt +51 -0
  33. pydra_core/data/statistics/Afvoer/Borgharen/Ovkans_Borgharen_piekafvoer_OI2014_W_2100_v02.txt +44 -0
  34. pydra_core/data/statistics/Afvoer/Borgharen/Ovkans_Borgharen_piekafvoer_Ref.txt +28 -0
  35. pydra_core/data/statistics/Afvoer/Dalfsen/Ovkans_Dalfsen_piekafvoer_2017.txt +31 -0
  36. pydra_core/data/statistics/Afvoer/Dalfsen/Ovkans_Dalfsen_piekafvoer_2017_metOnzHeid.txt +33 -0
  37. pydra_core/data/statistics/Afvoer/Dalfsen/Ovkans_Dalfsen_piekafvoer_OI2014_G_2015.txt +44 -0
  38. pydra_core/data/statistics/Afvoer/Dalfsen/Ovkans_Dalfsen_piekafvoer_OI2014_G_2015_metOnzHeid.txt +34 -0
  39. pydra_core/data/statistics/Afvoer/Dalfsen/Ovkans_Dalfsen_piekafvoer_OI2014_G_2050.txt +44 -0
  40. pydra_core/data/statistics/Afvoer/Dalfsen/Ovkans_Dalfsen_piekafvoer_OI2014_G_2050_metOnzHeid.txt +34 -0
  41. pydra_core/data/statistics/Afvoer/Dalfsen/Ovkans_Dalfsen_piekafvoer_OI2014_G_2100.txt +44 -0
  42. pydra_core/data/statistics/Afvoer/Dalfsen/Ovkans_Dalfsen_piekafvoer_OI2014_G_2100_metOnzHeid.txt +39 -0
  43. pydra_core/data/statistics/Afvoer/Dalfsen/Ovkans_Dalfsen_piekafvoer_OI2014_W_2015.txt +44 -0
  44. pydra_core/data/statistics/Afvoer/Dalfsen/Ovkans_Dalfsen_piekafvoer_OI2014_W_2015_metOnzHeid.txt +34 -0
  45. pydra_core/data/statistics/Afvoer/Dalfsen/Ovkans_Dalfsen_piekafvoer_OI2014_W_2050.txt +44 -0
  46. pydra_core/data/statistics/Afvoer/Dalfsen/Ovkans_Dalfsen_piekafvoer_OI2014_W_2050_metOnzHeid.txt +34 -0
  47. pydra_core/data/statistics/Afvoer/Dalfsen/Ovkans_Dalfsen_piekafvoer_OI2014_W_2100.txt +44 -0
  48. pydra_core/data/statistics/Afvoer/Dalfsen/Ovkans_Dalfsen_piekafvoer_OI2014_W_2100_metOnzHeid.txt +34 -0
  49. pydra_core/data/statistics/Afvoer/Dalfsen/Ovkans_Dalfsen_piekafvoer_Ref.txt +14 -0
  50. pydra_core/data/statistics/Afvoer/Lith/Ovkans_Lith_piekafvoer_2017.txt +47 -0
  51. pydra_core/data/statistics/Afvoer/Lith/Ovkans_Lith_piekafvoer_2017_metOnzHeid.txt +47 -0
  52. pydra_core/data/statistics/Afvoer/Lith/Ovkans_Lith_piekafvoer_OI2014_G_2015.txt +49 -0
  53. pydra_core/data/statistics/Afvoer/Lith/Ovkans_Lith_piekafvoer_OI2014_G_2015_metOnzHeid.txt +59 -0
  54. pydra_core/data/statistics/Afvoer/Lith/Ovkans_Lith_piekafvoer_OI2014_G_2050.txt +49 -0
  55. pydra_core/data/statistics/Afvoer/Lith/Ovkans_Lith_piekafvoer_OI2014_G_2050_metOnzHeid.txt +59 -0
  56. pydra_core/data/statistics/Afvoer/Lith/Ovkans_Lith_piekafvoer_OI2014_G_2100.txt +49 -0
  57. pydra_core/data/statistics/Afvoer/Lith/Ovkans_Lith_piekafvoer_OI2014_G_2100_metOnzHeid.txt +59 -0
  58. pydra_core/data/statistics/Afvoer/Lith/Ovkans_Lith_piekafvoer_OI2014_W_2015.txt +49 -0
  59. pydra_core/data/statistics/Afvoer/Lith/Ovkans_Lith_piekafvoer_OI2014_W_2015_metOnzHeid.txt +59 -0
  60. pydra_core/data/statistics/Afvoer/Lith/Ovkans_Lith_piekafvoer_OI2014_W_2050.txt +49 -0
  61. pydra_core/data/statistics/Afvoer/Lith/Ovkans_Lith_piekafvoer_OI2014_W_2050_metOnzHeid.txt +59 -0
  62. pydra_core/data/statistics/Afvoer/Lith/Ovkans_Lith_piekafvoer_OI2014_W_2100.txt +49 -0
  63. pydra_core/data/statistics/Afvoer/Lith/Ovkans_Lith_piekafvoer_OI2014_W_2100_metOnzHeid.txt +59 -0
  64. pydra_core/data/statistics/Afvoer/Lith/Ovkans_Lith_piekafvoer_Ref.txt +21 -0
  65. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_2017.txt +33 -0
  66. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_2017_metOnzHeid.txt +60 -0
  67. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_G_2015.txt +49 -0
  68. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_G_2015_BenedenRijn.txt +50 -0
  69. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_G_2015_metOnzHeid.txt +63 -0
  70. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_G_2015_metOnzHeid_BenedenRijn.txt +65 -0
  71. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_G_2050.txt +49 -0
  72. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_G_2050_BenedenRijn.txt +50 -0
  73. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_G_2050_metOnzHeid.txt +63 -0
  74. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_G_2050_metOnzHeid_BenedenRijn.txt +65 -0
  75. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_G_2100.txt +49 -0
  76. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_G_2100_BenedenRijn.txt +50 -0
  77. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_G_2100_metOnzHeid.txt +63 -0
  78. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_G_2100_metOnzHeid_BenedenRijn.txt +65 -0
  79. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_W_2015.txt +50 -0
  80. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_W_2015_BenedenRijn.txt +51 -0
  81. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_W_2015_metOnzHeid.txt +63 -0
  82. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_W_2015_metOnzHeid_BenedenRijn.txt +65 -0
  83. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_W_2050.txt +50 -0
  84. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_W_2050_BenedenRijn.txt +51 -0
  85. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_W_2050_metOnzHeid.txt +63 -0
  86. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_W_2050_metOnzHeid_BenedenRijn.txt +65 -0
  87. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_W_2100.txt +50 -0
  88. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_W_2100_BenedenRijn.txt +51 -0
  89. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_W_2100_metOnzHeid.txt +63 -0
  90. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_OI2014_W_2100_metOnzHeid_BenedenRijn.txt +65 -0
  91. pydra_core/data/statistics/Afvoer/Lobith/Ovkans_Lobith_piekafvoer_Ref.txt +23 -0
  92. pydra_core/data/statistics/Afvoer/Olst/Ovkans_Olst_piekafvoer_2017.txt +55 -0
  93. pydra_core/data/statistics/Afvoer/Olst/Ovkans_Olst_piekafvoer_2017_metOnzHeid.txt +55 -0
  94. pydra_core/data/statistics/Afvoer/Olst/Ovkans_Olst_piekafvoer_OI2014_G_2015.txt +46 -0
  95. pydra_core/data/statistics/Afvoer/Olst/Ovkans_Olst_piekafvoer_OI2014_G_2015_metOnzHeid.txt +65 -0
  96. pydra_core/data/statistics/Afvoer/Olst/Ovkans_Olst_piekafvoer_OI2014_G_2050.txt +46 -0
  97. pydra_core/data/statistics/Afvoer/Olst/Ovkans_Olst_piekafvoer_OI2014_G_2050_metOnzHeid.txt +65 -0
  98. pydra_core/data/statistics/Afvoer/Olst/Ovkans_Olst_piekafvoer_OI2014_G_2100.txt +46 -0
  99. pydra_core/data/statistics/Afvoer/Olst/Ovkans_Olst_piekafvoer_OI2014_G_2100_metOnzHeid.txt +65 -0
  100. pydra_core/data/statistics/Afvoer/Olst/Ovkans_Olst_piekafvoer_OI2014_W_2015.txt +47 -0
  101. pydra_core/data/statistics/Afvoer/Olst/Ovkans_Olst_piekafvoer_OI2014_W_2015_metOnzHeid.txt +65 -0
  102. pydra_core/data/statistics/Afvoer/Olst/Ovkans_Olst_piekafvoer_OI2014_W_2050.txt +47 -0
  103. pydra_core/data/statistics/Afvoer/Olst/Ovkans_Olst_piekafvoer_OI2014_W_2050_metOnzHeid.txt +65 -0
  104. pydra_core/data/statistics/Afvoer/Olst/Ovkans_Olst_piekafvoer_OI2014_W_2100.txt +47 -0
  105. pydra_core/data/statistics/Afvoer/Olst/Ovkans_Olst_piekafvoer_OI2014_W_2100_metOnzHeid.txt +65 -0
  106. pydra_core/data/statistics/Afvoer/Olst/Ovkans_Olst_piekafvoer_Ref.txt +15 -0
  107. pydra_core/data/statistics/Golfvorm/Borgharen/Golfvormen_Borgharen.txt +76 -0
  108. pydra_core/data/statistics/Golfvorm/Dalfsen/Golfvormen_Dalfsen.txt +83 -0
  109. pydra_core/data/statistics/Golfvorm/Grevelingenmeer/Golfvormen_Grevelingenmeer.txt +34 -0
  110. pydra_core/data/statistics/Golfvorm/IJsselmeer/Golfvormen_IJsselmeer.txt +83 -0
  111. pydra_core/data/statistics/Golfvorm/Lith/Golfvormen_Lith.txt +76 -0
  112. pydra_core/data/statistics/Golfvorm/Lobith/Golfvormen_Lobith.txt +76 -0
  113. pydra_core/data/statistics/Golfvorm/Markermeer/Golfvormen_Markermeer.txt +140 -0
  114. pydra_core/data/statistics/Golfvorm/Olst/Golfvormen_Olst.txt +83 -0
  115. pydra_core/data/statistics/Golfvorm/Veerse Meer/Golfvormen_Veersemeer.txt +54 -0
  116. pydra_core/data/statistics/Golfvorm/Veluwerandmeer/Golfvormen_Veluwerandmeer.txt +140 -0
  117. pydra_core/data/statistics/Golfvorm/Volkerak-Zoommeer/Golfvormen_Volkerakzoommeer.txt +74 -0
  118. pydra_core/data/statistics/Meerpeil/Grevelingenmeer/Ovkans_Grevelingenmeer_piekmeerpeil_2017.txt +13 -0
  119. pydra_core/data/statistics/Meerpeil/Grevelingenmeer/Ovkans_Grevelingenmeer_piekmeerpeil_2017_metOnzHeid.txt +25 -0
  120. pydra_core/data/statistics/Meerpeil/Grevelingenmeer/Ovkans_Grevelingenmeer_piekmeerpeil_v01.txt +13 -0
  121. pydra_core/data/statistics/Meerpeil/IJsselmeer/Ovkans_IJsselmeer_piekmeerpeil_2017.txt +26 -0
  122. pydra_core/data/statistics/Meerpeil/IJsselmeer/Ovkans_IJsselmeer_piekmeerpeil_2017_metOnzHeid.txt +40 -0
  123. pydra_core/data/statistics/Meerpeil/IJsselmeer/Ovkans_IJsselmeer_piekmeerpeil_v01.txt +15 -0
  124. pydra_core/data/statistics/Meerpeil/Markermeer/Ovkans_Markermeer_piekmeerpeil_2017.txt +19 -0
  125. pydra_core/data/statistics/Meerpeil/Markermeer/Ovkans_Markermeer_piekmeerpeil_2017_metOnzHeid.txt +38 -0
  126. pydra_core/data/statistics/Meerpeil/Markermeer/Ovkans_Markermeer_piekmeerpeil_v01.txt +11 -0
  127. pydra_core/data/statistics/Meerpeil/Veerse Meer/Ovkans_Veersemeer_piekmeerpeil_excl_peilverhoging.txt +14 -0
  128. pydra_core/data/statistics/Meerpeil/Veerse Meer/Ovkans_Veersemeer_piekmeerpeil_v01.txt +16 -0
  129. pydra_core/data/statistics/Meerpeil/Veluwerandmeer/Ovkans_Veluwerandmeer_piekmeerpeil_2017.txt +14 -0
  130. pydra_core/data/statistics/Meerpeil/Veluwerandmeer/Ovkans_Veluwerandmeer_piekmeerpeil_2017_metOnzHeid.txt +37 -0
  131. pydra_core/data/statistics/Meerpeil/Veluwerandmeer/Ovkans_Veluwerandmeer_piekmeerpeil_v01.txt +14 -0
  132. pydra_core/data/statistics/Meerpeil/Volkerak-Zoommeer/Ovkans_VZM_piekmeerpeil_BER-VZM.txt +18 -0
  133. pydra_core/data/statistics/Meerpeil/Volkerak-Zoommeer/Ovkans_VZM_piekmeerpeil_BER-VZM_metOnzHeid.txt +43 -0
  134. pydra_core/data/statistics/Restant/Oosterschelde/BesliskansenOSKering.txt +525 -0
  135. pydra_core/data/statistics/Restant/Oosterschelde/KansenFaseverschil_2023.txt +8 -0
  136. pydra_core/data/statistics/Restant/Oosterschelde/KansenFaseverschil_OS.txt +13 -0
  137. pydra_core/data/statistics/Restant/Oosterschelde/KansenStormduur_OS.txt +15 -0
  138. pydra_core/data/statistics/Restant/Oosterschelde/KansenStormduur_OS_40_60_80uur_2023.txt +17 -0
  139. pydra_core/data/statistics/Restant/Oosterschelde/ScenariokansenOSKering_2008.txt +24 -0
  140. pydra_core/data/statistics/Restant/Oosterschelde/ScenariokansenOSKering_2013.txt +19 -0
  141. pydra_core/data/statistics/Restant/Oosterschelde/ScenariokansenOSKering_2017.txt +19 -0
  142. pydra_core/data/statistics/Restant/Oosterschelde/ScenariokansenOSKering_2023.txt +14 -0
  143. pydra_core/data/statistics/Restant/Up2U/Up2U10.dat +59 -0
  144. pydra_core/data/statistics/Restant/Up2U/Up2Up.dat +59 -0
  145. pydra_core/data/statistics/Restant/Up2U/Up2Ustar.dat +59 -0
  146. pydra_core/data/statistics/Restant/hulpdijken.txt +60 -0
  147. pydra_core/data/statistics/Restant/hulpgolfhoogtes.txt +24 -0
  148. pydra_core/data/statistics/Restant/hulpgolfperiodes.txt +39 -0
  149. pydra_core/data/statistics/Restant/kansstormduur.txt +8 -0
  150. pydra_core/data/statistics/Restant/pwind_west.txt +34 -0
  151. pydra_core/data/statistics/Restant/pwind_west_met_Volkerfactor.txt +34 -0
  152. pydra_core/data/statistics/Restant/pwind_west_zonder_Volkerfactor.txt +34 -0
  153. pydra_core/data/statistics/Sigmafunctie/Hollandse Kust Midden/VS_sigmafunctie_Kust_Midden.txt +19 -0
  154. pydra_core/data/statistics/Sigmafunctie/Hollandse Kust Midden/VS_sigmafunctie_Kust_Midden_2017.txt +23 -0
  155. pydra_core/data/statistics/Sigmafunctie/Hollandse Kust Noord/VS_sigmafunctie_Kust_Noord.txt +19 -0
  156. pydra_core/data/statistics/Sigmafunctie/Hollandse Kust Noord/VS_sigmafunctie_Kust_Noord_2017.txt +23 -0
  157. pydra_core/data/statistics/Sigmafunctie/Hollandse Kust Zuid/VS_sigmafunctie_Kust_Zuid.txt +19 -0
  158. pydra_core/data/statistics/Sigmafunctie/Hollandse Kust Zuid/VS_sigmafunctie_Kust_Zuid_2017.txt +23 -0
  159. pydra_core/data/statistics/Sigmafunctie/Oosterschelde/VS_sigmafunctie_OS.txt +22 -0
  160. pydra_core/data/statistics/Sigmafunctie/Oosterschelde/VS_sigmafunctie_OS_16sectoren_2023.txt +24 -0
  161. pydra_core/data/statistics/Sigmafunctie/Oosterschelde/VS_sigmafunctie_OS_2017.txt +22 -0
  162. pydra_core/data/statistics/Sigmafunctie/Waddenzee Oost/VS_sigmafunctie_WZ_oost.txt +19 -0
  163. pydra_core/data/statistics/Sigmafunctie/Waddenzee Oost/VS_sigmafunctie_WZ_oost_2017.txt +23 -0
  164. pydra_core/data/statistics/Sigmafunctie/Waddenzee West/VS_sigmafunctie_WZ_west.txt +19 -0
  165. pydra_core/data/statistics/Sigmafunctie/Waddenzee West/VS_sigmafunctie_WZ_west_2017.txt +23 -0
  166. pydra_core/data/statistics/Sigmafunctie/Westerschelde/VS_sigmafunctie_WS.txt +19 -0
  167. pydra_core/data/statistics/Sigmafunctie/Westerschelde/VS_sigmafunctie_WS_2017.txt +23 -0
  168. pydra_core/data/statistics/Sluitpeilen/Sluitfunctie Europoortkering Maas 2017.csv +631 -0
  169. pydra_core/data/statistics/Sluitpeilen/Sluitfunctie Europoortkering Rijn 2017.csv +631 -0
  170. pydra_core/data/statistics/Sluitpeilen/Sluitfunctie Hollandsche IJsselkering.csv +757 -0
  171. pydra_core/data/statistics/Sluitpeilen/Sluitfunctie Oosterscheldekering 2017.csv +55081 -0
  172. pydra_core/data/statistics/Topduur/Borgharen/Topduur_Borgharen_2017.txt +19 -0
  173. pydra_core/data/statistics/Topduur/Borgharen/Topduur_Borgharen_v00.txt +14 -0
  174. pydra_core/data/statistics/Topduur/Dalfsen/Topduur_Dalfsen_2017.txt +20 -0
  175. pydra_core/data/statistics/Topduur/Dalfsen/Topduur_Dalfsen_v01.txt +16 -0
  176. pydra_core/data/statistics/Topduur/Grevelingenmeer/Topduur_Grevelingenmeer_2017.txt +14 -0
  177. pydra_core/data/statistics/Topduur/Grevelingenmeer/Topduur_Grevelingenmeer_v01.txt +14 -0
  178. pydra_core/data/statistics/Topduur/IJsselmeer/Topduur_IJsselmeer_2017.txt +20 -0
  179. pydra_core/data/statistics/Topduur/IJsselmeer/Topduur_IJsselmeer_v01.txt +15 -0
  180. pydra_core/data/statistics/Topduur/Lith/Topduur_Lith_2017.txt +19 -0
  181. pydra_core/data/statistics/Topduur/Lith/Topduur_Lith_v01.txt +17 -0
  182. pydra_core/data/statistics/Topduur/Lobith/Topduur_Lobith_2017.txt +19 -0
  183. pydra_core/data/statistics/Topduur/Lobith/Topduur_Lobith_v01.txt +17 -0
  184. pydra_core/data/statistics/Topduur/Markermeer/Topduur_Markermeer_2017.txt +20 -0
  185. pydra_core/data/statistics/Topduur/Markermeer/Topduur_Markermeer_v01.txt +12 -0
  186. pydra_core/data/statistics/Topduur/Olst/Topduur_Olst_2017.txt +20 -0
  187. pydra_core/data/statistics/Topduur/Olst/Topduur_Olst_v01.txt +16 -0
  188. pydra_core/data/statistics/Topduur/Veerse Meer/Topduur_Veersemeer_excl_peilverhoging.txt +13 -0
  189. pydra_core/data/statistics/Topduur/Veerse Meer/Topduur_Veersemeer_v01.txt +16 -0
  190. pydra_core/data/statistics/Topduur/Veluwerandmeer/Topduur_Veluwerandmeer_2017.txt +12 -0
  191. pydra_core/data/statistics/Topduur/Veluwerandmeer/Topduur_Veluwerandmeer_v01.txt +12 -0
  192. pydra_core/data/statistics/Topduur/Volkerak-Zoommeer/Topduur_Volkerakzoommeer_BER-VZM.txt +18 -0
  193. pydra_core/data/statistics/Windrichting/Deelen/Richtingskansen_Deelen_2017.txt +28 -0
  194. pydra_core/data/statistics/Windrichting/Hollandse Kust/KansenWindrichting_Kust.txt +17 -0
  195. pydra_core/data/statistics/Windrichting/Hollandse Kust/KansenWindrichting_Kust_2017.txt +24 -0
  196. pydra_core/data/statistics/Windrichting/Oosterschelde/KansenWindrichting_16sectoren_OS_2023.txt +31 -0
  197. pydra_core/data/statistics/Windrichting/Oosterschelde/KansenWindrichting_OS.txt +20 -0
  198. pydra_core/data/statistics/Windrichting/Oosterschelde/KansenWindrichting_OS_2017.txt +24 -0
  199. pydra_core/data/statistics/Windrichting/Schiphol/Richtingskansen_Schiphol_12sectoren.txt +20 -0
  200. pydra_core/data/statistics/Windrichting/Schiphol/Richtingskansen_Schiphol_12sectoren_2017.txt +20 -0
  201. pydra_core/data/statistics/Windrichting/Schiphol/Richtingskansen_Schiphol_2017.txt +28 -0
  202. pydra_core/data/statistics/Windrichting/Schiphol/kanswindrichting_v01.txt +28 -0
  203. pydra_core/data/statistics/Windrichting/Waddenzee/KansenWindrichting_WZ.txt +17 -0
  204. pydra_core/data/statistics/Windrichting/Waddenzee/KansenWindrichting_WZ_2017.txt +24 -0
  205. pydra_core/data/statistics/Windrichting/Westerschelde/KansenWindrichting_WS.txt +17 -0
  206. pydra_core/data/statistics/Windrichting/Westerschelde/KansenWindrichting_WS_2017.txt +24 -0
  207. pydra_core/data/statistics/Windsnelheid/De Kooy/OvkansWindsnelheid_Texel.txt +70 -0
  208. pydra_core/data/statistics/Windsnelheid/De Kooy/Ovkanswind_de Kooy_2017.txt +92 -0
  209. pydra_core/data/statistics/Windsnelheid/De Kooy/Ovkanswind_de Kooy_2017_metOnzHeid.txt +92 -0
  210. pydra_core/data/statistics/Windsnelheid/Deelen/Ovkanswind_Deelen_2017.txt +90 -0
  211. pydra_core/data/statistics/Windsnelheid/Deelen/Ovkanswind_Deelen_2017_metOnzHeid.txt +90 -0
  212. pydra_core/data/statistics/Windsnelheid/Hoek van Holland/OvkansWindsnelheid_Hoek van Holland.txt +70 -0
  213. pydra_core/data/statistics/Windsnelheid/Hoek van Holland/Ovkanswind_Hoek van Holland_2017.txt +92 -0
  214. pydra_core/data/statistics/Windsnelheid/Hoek van Holland/Ovkanswind_Hoek van Holland_2017_metOnzHeid.txt +92 -0
  215. pydra_core/data/statistics/Windsnelheid/IJmuiden/OvkansWindsnelheid_IJmuiden.txt +70 -0
  216. pydra_core/data/statistics/Windsnelheid/IJmuiden/Ovkanswind_IJmuiden_2017.txt +92 -0
  217. pydra_core/data/statistics/Windsnelheid/IJmuiden/Ovkanswind_IJmuiden_2017_metOnzHeid.txt +92 -0
  218. pydra_core/data/statistics/Windsnelheid/Schiphol/Ovkanswind_Schiphol_12sectoren.txt +51 -0
  219. pydra_core/data/statistics/Windsnelheid/Schiphol/Ovkanswind_Schiphol_12sectoren_2017.txt +90 -0
  220. pydra_core/data/statistics/Windsnelheid/Schiphol/Ovkanswind_Schiphol_12sectoren_2017_metOnzHeid.txt +90 -0
  221. pydra_core/data/statistics/Windsnelheid/Schiphol/Ovkanswind_Schiphol_12sectoren_2017_metWindDrag.txt +97 -0
  222. pydra_core/data/statistics/Windsnelheid/Schiphol/Ovkanswind_Schiphol_12sectoren_2017_metWindDrag_metOnzHeid.txt +97 -0
  223. pydra_core/data/statistics/Windsnelheid/Schiphol/Ovkanswind_Schiphol_16sectoren_2017_metWindDrag.txt +97 -0
  224. pydra_core/data/statistics/Windsnelheid/Schiphol/Ovkanswind_Schiphol_16sectoren_2017_metWindDrag_metOnzHeid.txt +97 -0
  225. pydra_core/data/statistics/Windsnelheid/Schiphol/Ovkanswind_Schiphol_2017.txt +90 -0
  226. pydra_core/data/statistics/Windsnelheid/Schiphol/Ovkanswind_Schiphol_2017_metOnzHeid.txt +90 -0
  227. pydra_core/data/statistics/Windsnelheid/Schiphol/Ovkanswind_Schiphol_met_Volkerfactor_2017.txt +90 -0
  228. pydra_core/data/statistics/Windsnelheid/Schiphol/Ovkanswind_Schiphol_met_Volkerfactor_2017_metOnzHeid.txt +90 -0
  229. pydra_core/data/statistics/Windsnelheid/Schiphol/Ovkanswind_schiphol.txt +58 -0
  230. pydra_core/data/statistics/Windsnelheid/Schiphol/Ovkanswind_schiphol_10%.txt +64 -0
  231. pydra_core/data/statistics/Windsnelheid/Schiphol/Ovkanswind_schiphol_5%.txt +62 -0
  232. pydra_core/data/statistics/Windsnelheid/Schiphol/Ovkanswind_schiphol_B_met volker.txt +60 -0
  233. pydra_core/data/statistics/Windsnelheid/Vlissingen/OvkansWindsnelheid_OS.txt +67 -0
  234. pydra_core/data/statistics/Windsnelheid/Vlissingen/OvkansWindsnelheid_Vlissingen.txt +70 -0
  235. pydra_core/data/statistics/Windsnelheid/Vlissingen/Ovkanswind_Vlissingen_16sectoren_2023.txt +92 -0
  236. pydra_core/data/statistics/Windsnelheid/Vlissingen/Ovkanswind_Vlissingen_16sectoren_2023_metOnzHeid.txt +91 -0
  237. pydra_core/data/statistics/Windsnelheid/Vlissingen/Ovkanswind_Vlissingen_2017.txt +92 -0
  238. pydra_core/data/statistics/Windsnelheid/Vlissingen/Ovkanswind_Vlissingen_2017_metOnzHeid.txt +92 -0
  239. pydra_core/data/statistics/Windsnelheid/Vlissingen/Ovkanswind_Vlissingen_2017_metWindDrag.txt +97 -0
  240. pydra_core/data/statistics/Windsnelheid/Vlissingen/Ovkanswind_Vlissingen_2017_metWindDrag_metOnzHeid.txt +97 -0
  241. pydra_core/data/statistics/Windsnelheid/West-Terschelling/OvkansWindsnelheid_West-Tersch.txt +70 -0
  242. pydra_core/data/statistics/Windsnelheid/West-Terschelling/Ovkanswind_West Terschelling_2017.txt +92 -0
  243. pydra_core/data/statistics/Windsnelheid/West-Terschelling/Ovkanswind_West Terschelling_2017_metOnzHeid.txt +92 -0
  244. pydra_core/data/statistics/Zeewaterstand/Delfzijl/CondPovDelfzijl_12u_zichtjaar1985_2017.txt +82 -0
  245. pydra_core/data/statistics/Zeewaterstand/Delfzijl/CondPovDelfzijl_12u_zichtjaar1985_2017_metOnzHeid.txt +82 -0
  246. pydra_core/data/statistics/Zeewaterstand/Delfzijl/CondPovDelfzijl_12u_zichtjaar2017.txt +82 -0
  247. pydra_core/data/statistics/Zeewaterstand/Delfzijl/CondPovDelfzijl_12u_zichtjaar2017_metOnzHeid.txt +82 -0
  248. pydra_core/data/statistics/Zeewaterstand/Delfzijl/OvkansZee_Delfzijl.txt +71 -0
  249. pydra_core/data/statistics/Zeewaterstand/Den Helder/CondPovDenHelder_12u_zichtjaar1985_2017.txt +90 -0
  250. pydra_core/data/statistics/Zeewaterstand/Den Helder/CondPovDenHelder_12u_zichtjaar1985_2017_metOnzHeid.txt +90 -0
  251. pydra_core/data/statistics/Zeewaterstand/Den Helder/CondPovDenHelder_12u_zichtjaar2017.txt +89 -0
  252. pydra_core/data/statistics/Zeewaterstand/Den Helder/CondPovDenHelder_12u_zichtjaar2017_metOnzHeid.txt +89 -0
  253. pydra_core/data/statistics/Zeewaterstand/Den Helder/OvkansZee_Den Helder.txt +71 -0
  254. pydra_core/data/statistics/Zeewaterstand/Den Oever/CondPovDenOeverBuiten_12u_zichtjaar1985_2017.txt +89 -0
  255. pydra_core/data/statistics/Zeewaterstand/Den Oever/CondPovDenOeverBuiten_12u_zichtjaar1985_2017_metOnzHeid.txt +89 -0
  256. pydra_core/data/statistics/Zeewaterstand/Den Oever/CondPovDenOeverBuiten_12u_zichtjaar2017.txt +88 -0
  257. pydra_core/data/statistics/Zeewaterstand/Den Oever/CondPovDenOeverBuiten_12u_zichtjaar2017_metOnzHeid.txt +88 -0
  258. pydra_core/data/statistics/Zeewaterstand/Den Oever/OvkansZee_Den Oever.txt +71 -0
  259. pydra_core/data/statistics/Zeewaterstand/Hansweert/CondPovHansweert_12u_zichtjaar1985_2017.txt +72 -0
  260. pydra_core/data/statistics/Zeewaterstand/Hansweert/CondPovHansweert_12u_zichtjaar1985_2017_metOnzHeid.txt +72 -0
  261. pydra_core/data/statistics/Zeewaterstand/Hansweert/CondPovHansweert_12u_zichtjaar2017.txt +71 -0
  262. pydra_core/data/statistics/Zeewaterstand/Hansweert/CondPovHansweert_12u_zichtjaar2017_metOnzHeid.txt +71 -0
  263. pydra_core/data/statistics/Zeewaterstand/Hansweert/OvkansZee_Hansweert.txt +71 -0
  264. pydra_core/data/statistics/Zeewaterstand/Harlingen/CondPovHarlingen_12u_zichtjaar1985_2017.txt +86 -0
  265. pydra_core/data/statistics/Zeewaterstand/Harlingen/CondPovHarlingen_12u_zichtjaar1985_2017_metOnzHeid.txt +86 -0
  266. pydra_core/data/statistics/Zeewaterstand/Harlingen/CondPovHarlingen_12u_zichtjaar2017.txt +85 -0
  267. pydra_core/data/statistics/Zeewaterstand/Harlingen/CondPovHarlingen_12u_zichtjaar2017_metOnzHeid.txt +85 -0
  268. pydra_core/data/statistics/Zeewaterstand/Harlingen/OvkansZee_Harlingen.txt +71 -0
  269. pydra_core/data/statistics/Zeewaterstand/Hoek van Holland/CondPovHoekvanHolland_12u_zichtjaar1985_2017.txt +85 -0
  270. pydra_core/data/statistics/Zeewaterstand/Hoek van Holland/CondPovHoekvanHolland_12u_zichtjaar1985_2017_metOnzHeid.txt +85 -0
  271. pydra_core/data/statistics/Zeewaterstand/Hoek van Holland/CondPovHoekvanHolland_12u_zichtjaar2017.txt +84 -0
  272. pydra_core/data/statistics/Zeewaterstand/Hoek van Holland/CondPovHoekvanHolland_12u_zichtjaar2017_metOnzHeid.txt +84 -0
  273. pydra_core/data/statistics/Zeewaterstand/Hoek van Holland/OvkansZee_Hoek van Holland.txt +71 -0
  274. pydra_core/data/statistics/Zeewaterstand/Huibertgat/CondPovHuibertgat_12u_zichtjaar1985_2017.txt +87 -0
  275. pydra_core/data/statistics/Zeewaterstand/Huibertgat/CondPovHuibertgat_12u_zichtjaar1985_2017_metOnzHeid.txt +87 -0
  276. pydra_core/data/statistics/Zeewaterstand/Huibertgat/CondPovHuibertgat_12u_zichtjaar2017.txt +86 -0
  277. pydra_core/data/statistics/Zeewaterstand/Huibertgat/CondPovHuibertgat_12u_zichtjaar2017_metOnzHeid.txt +86 -0
  278. pydra_core/data/statistics/Zeewaterstand/Huibertgat/OvkansZee_Huibertgat.txt +71 -0
  279. pydra_core/data/statistics/Zeewaterstand/IJmuiden/CondPovIJmuiden_12u_zichtjaar1985_2017.txt +86 -0
  280. pydra_core/data/statistics/Zeewaterstand/IJmuiden/CondPovIJmuiden_12u_zichtjaar1985_2017_metOnzHeid.txt +86 -0
  281. pydra_core/data/statistics/Zeewaterstand/IJmuiden/CondPovIJmuiden_12u_zichtjaar2017.txt +86 -0
  282. pydra_core/data/statistics/Zeewaterstand/IJmuiden/CondPovIJmuiden_12u_zichtjaar2017_metOnzHeid.txt +86 -0
  283. pydra_core/data/statistics/Zeewaterstand/IJmuiden/OvkansZee_IJmuiden.txt +71 -0
  284. pydra_core/data/statistics/Zeewaterstand/IJmuiden virtueel/CondPovIJmuiden-Additional_12u_zichtjaar1985_2017.txt +86 -0
  285. pydra_core/data/statistics/Zeewaterstand/IJmuiden virtueel/CondPovIJmuiden-Additional_12u_zichtjaar1985_2017_metOnzHeid.txt +86 -0
  286. pydra_core/data/statistics/Zeewaterstand/IJmuiden virtueel/CondPovIJmuiden-Additional_12u_zichtjaar2017.txt +86 -0
  287. pydra_core/data/statistics/Zeewaterstand/IJmuiden virtueel/CondPovIJmuiden-Additional_12u_zichtjaar2017_metOnzHeid.txt +86 -0
  288. pydra_core/data/statistics/Zeewaterstand/IJmuiden virtueel/OvkansZee_IJmuiden_virtueel.txt +71 -0
  289. pydra_core/data/statistics/Zeewaterstand/Lauwersoog/CondPovLauwersoog_12u_zichtjaar1985_2017.txt +86 -0
  290. pydra_core/data/statistics/Zeewaterstand/Lauwersoog/CondPovLauwersoog_12u_zichtjaar1985_2017_metOnzHeid.txt +86 -0
  291. pydra_core/data/statistics/Zeewaterstand/Lauwersoog/CondPovLauwersoog_12u_zichtjaar2017.txt +85 -0
  292. pydra_core/data/statistics/Zeewaterstand/Lauwersoog/CondPovLauwersoog_12u_zichtjaar2017_metOnzHeid.txt +85 -0
  293. pydra_core/data/statistics/Zeewaterstand/Lauwersoog/OvkansZee_Lauwersoog.txt +71 -0
  294. pydra_core/data/statistics/Zeewaterstand/Maasmond/CondPovMaasmond_12u_zichtjaar1985_2011.txt +89 -0
  295. pydra_core/data/statistics/Zeewaterstand/Maasmond/CondPovMaasmond_12u_zichtjaar1985_2017.txt +89 -0
  296. pydra_core/data/statistics/Zeewaterstand/Maasmond/CondPovMaasmond_12u_zichtjaar1985_2017_metOnzheid.txt +93 -0
  297. pydra_core/data/statistics/Zeewaterstand/Maasmond/CondPovMaasmond_12u_zichtjaar2017.txt +86 -0
  298. pydra_core/data/statistics/Zeewaterstand/Maasmond/CondPovMaasmond_12u_zichtjaar2017_metOnzheid.txt +86 -0
  299. pydra_core/data/statistics/Zeewaterstand/Oosterschelde/CondPovOS11_12u_zichtjaar1985_2017.txt +80 -0
  300. pydra_core/data/statistics/Zeewaterstand/Oosterschelde/CondPovOS11_12u_zichtjaar1985_2017_metOnzHeid.txt +80 -0
  301. pydra_core/data/statistics/Zeewaterstand/Oosterschelde/CondPovOS11_12u_zichtjaar2017.txt +80 -0
  302. pydra_core/data/statistics/Zeewaterstand/Oosterschelde/CondPovOS11_12u_zichtjaar2017_metOnzHeid.txt +80 -0
  303. pydra_core/data/statistics/Zeewaterstand/Oosterschelde/CondPovOS11_16sectoren_12u_2023.txt +75 -0
  304. pydra_core/data/statistics/Zeewaterstand/Oosterschelde/CondPovOS11_16sectoren_12u_2023_metOnzHeid.txt +74 -0
  305. pydra_core/data/statistics/Zeewaterstand/Oosterschelde/OvkansZee_OS11.txt +71 -0
  306. pydra_core/data/statistics/Zeewaterstand/Oosterschelde/OvkansZeewaterstand_OS.txt +72 -0
  307. pydra_core/data/statistics/Zeewaterstand/Vlissingen/CondPovVlissingen_12u_zichtjaar1985_2017.txt +75 -0
  308. pydra_core/data/statistics/Zeewaterstand/Vlissingen/CondPovVlissingen_12u_zichtjaar1985_2017_metOnzHeid.txt +75 -0
  309. pydra_core/data/statistics/Zeewaterstand/Vlissingen/CondPovVlissingen_12u_zichtjaar2017.txt +75 -0
  310. pydra_core/data/statistics/Zeewaterstand/Vlissingen/CondPovVlissingen_12u_zichtjaar2017_metOnzHeid.txt +75 -0
  311. pydra_core/data/statistics/Zeewaterstand/Vlissingen/OvkansZee_Vlissingen.txt +71 -0
  312. pydra_core/data/statistics/Zeewaterstand/Vlissingen virtueel/CondPovVlissingen-Additional_12u_zichtjaar1985_2017.txt +75 -0
  313. pydra_core/data/statistics/Zeewaterstand/Vlissingen virtueel/CondPovVlissingen-Additional_12u_zichtjaar1985_2017_metOnzHeid.txt +75 -0
  314. pydra_core/data/statistics/Zeewaterstand/Vlissingen virtueel/CondPovVlissingen-Additional_12u_zichtjaar2017.txt +75 -0
  315. pydra_core/data/statistics/Zeewaterstand/Vlissingen virtueel/CondPovVlissingen-Additional_12u_zichtjaar2017_metOnzHeid.txt +75 -0
  316. pydra_core/data/statistics/Zeewaterstand/Vlissingen virtueel/OvkansZee_Vlissingen_virtueel.txt +71 -0
  317. pydra_core/data/statistics/Zeewaterstand/West-Terschelling/CondPovWestTerschelling_12u_zichtjaar1985_2017.txt +88 -0
  318. pydra_core/data/statistics/Zeewaterstand/West-Terschelling/CondPovWestTerschelling_12u_zichtjaar1985_2017_metOnzHeid.txt +88 -0
  319. pydra_core/data/statistics/Zeewaterstand/West-Terschelling/CondPovWestTerschelling_12u_zichtjaar2017.txt +87 -0
  320. pydra_core/data/statistics/Zeewaterstand/West-Terschelling/CondPovWestTerschelling_12u_zichtjaar2017_metOnzHeid.txt +87 -0
  321. pydra_core/data/statistics/Zeewaterstand/West-Terschelling/OvkansZee_West-Terschelling.txt +71 -0
  322. pydra_core/hrdatabase/__init__.py +0 -0
  323. pydra_core/hrdatabase/hrdatabase.py +177 -0
  324. pydra_core/io/__init__.py +0 -0
  325. pydra_core/io/database_hr.py +598 -0
  326. pydra_core/io/database_settings.py +183 -0
  327. pydra_core/io/file_hydranl.py +92 -0
  328. pydra_core/location/__init__.py +0 -0
  329. pydra_core/location/location.py +115 -0
  330. pydra_core/location/model/__init__.py +0 -0
  331. pydra_core/location/model/base_model.py +270 -0
  332. pydra_core/location/model/loading/__init__.py +0 -0
  333. pydra_core/location/model/loading/loading.py +368 -0
  334. pydra_core/location/model/loading/loading_factory.py +89 -0
  335. pydra_core/location/model/loading/loading_model/__init__.py +0 -0
  336. pydra_core/location/model/loading/loading_model/loading_model.py +324 -0
  337. pydra_core/location/model/loading/other_systems/__init__.py +0 -0
  338. pydra_core/location/model/loading/other_systems/loading_wave_overtopping.py +122 -0
  339. pydra_core/location/model/loading/water_systems/__init__.py +0 -0
  340. pydra_core/location/model/loading/water_systems/loading_coast.py +54 -0
  341. pydra_core/location/model/loading/water_systems/loading_eastern_scheldt.py +169 -0
  342. pydra_core/location/model/loading/water_systems/loading_ijssel_vechtdelta.py +55 -0
  343. pydra_core/location/model/loading/water_systems/loading_lake.py +55 -0
  344. pydra_core/location/model/loading/water_systems/loading_lower_rivier.py +68 -0
  345. pydra_core/location/model/loading/water_systems/loading_upper_river.py +55 -0
  346. pydra_core/location/model/statistics/__init__.py +0 -0
  347. pydra_core/location/model/statistics/other_systems/__init__.py +0 -0
  348. pydra_core/location/model/statistics/other_systems/statistics_wave_overtopping.py +72 -0
  349. pydra_core/location/model/statistics/statistics.py +171 -0
  350. pydra_core/location/model/statistics/statistics_factory.py +89 -0
  351. pydra_core/location/model/statistics/stochastics/__init__.py +0 -0
  352. pydra_core/location/model/statistics/stochastics/barrier/__init__.py +0 -0
  353. pydra_core/location/model/statistics/stochastics/barrier/barrier.py +43 -0
  354. pydra_core/location/model/statistics/stochastics/barrier/barrier_easternscheldt.py +147 -0
  355. pydra_core/location/model/statistics/stochastics/barrier/barrier_europoort.py +209 -0
  356. pydra_core/location/model/statistics/stochastics/barrier/barrier_ramspol.py +41 -0
  357. pydra_core/location/model/statistics/stochastics/barrier/no_barrier.py +21 -0
  358. pydra_core/location/model/statistics/stochastics/discharge.py +108 -0
  359. pydra_core/location/model/statistics/stochastics/discrete_probability.py +55 -0
  360. pydra_core/location/model/statistics/stochastics/lake_level.py +158 -0
  361. pydra_core/location/model/statistics/stochastics/model_uncertainty.py +358 -0
  362. pydra_core/location/model/statistics/stochastics/sea_level/sea_level.py +53 -0
  363. pydra_core/location/model/statistics/stochastics/sea_level/sea_level_lower_river.py +93 -0
  364. pydra_core/location/model/statistics/stochastics/sea_level/sea_level_point.py +65 -0
  365. pydra_core/location/model/statistics/stochastics/sea_level/sea_level_triangular.py +158 -0
  366. pydra_core/location/model/statistics/stochastics/sigma_function.py +24 -0
  367. pydra_core/location/model/statistics/stochastics/wave_shape.py +624 -0
  368. pydra_core/location/model/statistics/stochastics/wind_speed.py +196 -0
  369. pydra_core/location/model/statistics/water_systems/__init__.py +0 -0
  370. pydra_core/location/model/statistics/water_systems/statistics_coast.py +153 -0
  371. pydra_core/location/model/statistics/water_systems/statistics_eastern_scheldt.py +177 -0
  372. pydra_core/location/model/statistics/water_systems/statistics_ijssel_vechtdelta.py +229 -0
  373. pydra_core/location/model/statistics/water_systems/statistics_lake.py +86 -0
  374. pydra_core/location/model/statistics/water_systems/statistics_lower_river.py +321 -0
  375. pydra_core/location/model/statistics/water_systems/statistics_upper_river.py +86 -0
  376. pydra_core/location/model/water_system.py +249 -0
  377. pydra_core/location/model/wave_overtopping.py +25 -0
  378. pydra_core/location/profile/__init__.py +0 -0
  379. pydra_core/location/profile/foreland.py +246 -0
  380. pydra_core/location/profile/lib/DikesOvertopping.LICENSE +619 -0
  381. pydra_core/location/profile/lib/README.MD +10 -0
  382. pydra_core/location/profile/lib/__init__.py +1 -0
  383. pydra_core/location/profile/profile.py +971 -0
  384. pydra_core/location/profile/profile_loading.py +473 -0
  385. pydra_core/location/settings/__init__.py +0 -0
  386. pydra_core/location/settings/settings.py +387 -0
  387. pydra_core-0.0.1.dist-info/METADATA +22 -0
  388. pydra_core-0.0.1.dist-info/RECORD +389 -0
  389. pydra_core-0.0.1.dist-info/WHEEL +5 -0
@@ -0,0 +1,86 @@
1
+ import numpy as np
2
+
3
+ from ..statistics import Statistics
4
+ from ..stochastics.discharge import Discharge
5
+ from ..stochastics.discrete_probability import DiscreteProbability
6
+ from ..stochastics.model_uncertainty import ModelUncertainty
7
+ from ..stochastics.wind_speed import WindSpeed
8
+ from ....settings.settings import Settings
9
+ from .....common.probability import ProbabilityFunctions
10
+
11
+
12
+ class StatisticsUpperRiver(Statistics):
13
+ """
14
+ Statistics class for the Upper Rivers
15
+ Water systems: Rhine Non Tidal and Meuse (Valley) Non Tidal
16
+ """
17
+
18
+ def __init__(self, settings: Settings):
19
+ """
20
+ Init the Statistics class
21
+
22
+ Parameters
23
+ ----------
24
+ settings : Settings
25
+ The Settings object
26
+ """
27
+ # Inherit initialisation method from parent
28
+ super().__init__(settings)
29
+
30
+ # Wind
31
+ self.wind_direction = DiscreteProbability(settings.wind_direction_probability)
32
+ self.wind_speed = WindSpeed(settings)
33
+
34
+ # Discharge
35
+ self.discharge = Discharge(settings)
36
+
37
+ # Model uncertainty
38
+ self.model_uncertainties = ModelUncertainty(settings)
39
+
40
+ # Discrete, slow, fast stochatics
41
+ self.stochastics_discrete = {
42
+ "r": self.wind_direction.get_discretisation(),
43
+ "k": [1],
44
+ }
45
+ self.stochastics_fast = {"u": self.wind_speed.get_discretisation()}
46
+ self.stochastics_slow = {"q": self.discharge.get_discretisation()}
47
+
48
+ def calculate_probability(
49
+ self, wind_direction: float, closing_situation: int = 1, given: list = []
50
+ ):
51
+ """
52
+ Calculate the probability of occurence for the discretisation given the wind direction.
53
+
54
+ Parameters
55
+ ----------
56
+ direction : float
57
+ Wind direction
58
+ closing_situation : int
59
+ Closing situation, (irrelevant for Coast)
60
+ given : list
61
+ Given stochasts
62
+ """
63
+ # Wind speed
64
+ ir = self.wind_direction.get_discretisation().tolist().index(wind_direction)
65
+ p_wind = ProbabilityFunctions.probability_density(
66
+ self.wind_speed.get_discretisation(),
67
+ self.wind_speed.get_exceedance_probability()[:, ir],
68
+ ).probability[:, None]
69
+ if "u" in given:
70
+ p_wind[:] = 1.0
71
+
72
+ # Discharge
73
+ if "q" in given:
74
+ p_discharge = np.ones_like(self.discharge.get_discretisation())
75
+ else:
76
+ # If not given, use the instantaneous probability
77
+ p_discharge = ProbabilityFunctions.probability_density(
78
+ self.discharge.get_discretisation(),
79
+ 1 - self.discharge.get_exceedance_probability(),
80
+ ).probability
81
+
82
+ # Probability of wind direction
83
+ p_direction = 1.0 if "r" in given else self.wind_direction.get_probability()[ir]
84
+
85
+ # Combine probabilities
86
+ return p_wind * p_discharge[None, :] * p_direction
@@ -0,0 +1,249 @@
1
+ import numpy as np
2
+
3
+ from .base_model import BaseModel
4
+ from .loading.loading_factory import LoadingFactory
5
+ from .statistics.statistics_factory import StatisticsFactory
6
+ from ..settings.settings import Settings
7
+ from ...common.probability import ProbabilityFunctions
8
+
9
+
10
+ class WaterSystem(BaseModel):
11
+ def __init__(self, settings: Settings):
12
+ """
13
+ Water System model
14
+ """
15
+ # Inherit
16
+ super().__init__(settings)
17
+
18
+ # Statistics
19
+ self.statistics = StatisticsFactory.get_statistics(self.settings)
20
+
21
+ # Loading
22
+ self.loading = LoadingFactory.get_loading(self.settings)
23
+
24
+ def process_slow_stochastics(
25
+ self, exceedance_probability: np.ndarray, axis: int = None
26
+ ) -> np.ndarray:
27
+ """
28
+ Convert probabilities given a discharge to probabilities per duration.
29
+
30
+ This function converts probabilities represented by a discharge to
31
+ probabilities per specified duration based on the given stochastic
32
+ variable ('stochastic'). The probabilities are computed for each
33
+ duration (basisduur).
34
+
35
+ Parameters
36
+ ----------
37
+ exceedance_probability : np.ndarray
38
+ Numpy array with the discharge on the first dimension.
39
+
40
+ Returns
41
+ -------
42
+ np.ndarray
43
+ Probabilities per specified duration (basisduur).
44
+ """
45
+ # Input stochastics
46
+ statistics = self.get_statistics()
47
+ slow_stochastics = list(statistics.stochastics_slow.keys())
48
+ _axis = range(1, len(slow_stochastics) + 1) if axis is None else axis
49
+
50
+ # Put slow variable on first axis if not already
51
+ newpos = range(len(np.atleast_1d(_axis)))
52
+ if newpos != _axis:
53
+ ep_x = np.moveaxis(exceedance_probability, _axis, newpos)
54
+ else:
55
+ ep_x = exceedance_probability
56
+
57
+ # Calculate exceedance frequencies per peak discharge / lake level
58
+ ep_ks = self.process_wave_shape(ep_x)
59
+
60
+ # Steps in probability density
61
+ if len(slow_stochastics) == 1 and slow_stochastics[0] == "q":
62
+ p_peak = ProbabilityFunctions.probability_density(
63
+ statistics.discharge.qpeak, statistics.discharge.epqpeak
64
+ ).probability
65
+
66
+ elif len(slow_stochastics) == 1 and slow_stochastics[0] == "a":
67
+ p_peak = ProbabilityFunctions.probability_density(
68
+ statistics.lake_level.apeak, statistics.lake_level.epapeak
69
+ ).probability
70
+
71
+ elif len(slow_stochastics) == 2 and slow_stochastics == ["a", "q"]:
72
+ dq = ProbabilityFunctions.probability_density(
73
+ statistics.discharge.qblok, statistics.discharge.epqpeak
74
+ ).delta
75
+ dm = ProbabilityFunctions.probability_density(
76
+ statistics.lake_level.ablok, statistics.lake_level.epapeak
77
+ ).delta
78
+ p_peak = statistics.density_aq_peak * dm[:, None] * dq[None, :]
79
+
80
+ elif len(slow_stochastics) == 2 and slow_stochastics == ["q", "a"]:
81
+ dq = ProbabilityFunctions.probability_density(
82
+ statistics.discharge.qblok, statistics.discharge.epqpeak
83
+ ).delta
84
+ da = ProbabilityFunctions.probability_density(
85
+ statistics.lake_level.ablok, statistics.lake_level.epapeak
86
+ ).delta
87
+ p_peak = statistics.density_aq_peak.T * dq[:, None] * da[None, :]
88
+
89
+ # Reshape steps when multiplying to trapezoidal probs
90
+ shp = p_peak.shape + (1,) * (ep_ks.ndim - p_peak.ndim)
91
+
92
+ # Trapezoidal probability
93
+ p_trapezoidal = (p_peak.reshape(shp) * ep_ks).sum(
94
+ axis=tuple(range(p_peak.ndim))
95
+ )
96
+
97
+ return p_trapezoidal
98
+
99
+ def process_wave_shape(self, exceedance_probability: np.ndarray) -> np.ndarray:
100
+ """
101
+ Process the discharge waveshapes into the exceedance probabilities
102
+ conditioned on the discharge level. The discharge level is represented
103
+ on the first axis, which has dimensions equal to the number of
104
+ discharge steps in the statistics.
105
+
106
+ Parameters
107
+ ----------
108
+ exceedance_probability : np.ndarray
109
+ Numpy array containing the exceedance probabilities with the
110
+ discharge on the first dimension.
111
+
112
+ Returns
113
+ -------
114
+ blokondkans : np.ndarray
115
+ Exceedance probabilities of the discharge per duration (basisduur).
116
+ """
117
+ # Input variables
118
+ statistics = self.get_statistics()
119
+ slow_stochastics = list(statistics.stochastics_slow.keys())
120
+ fp = exceedance_probability
121
+
122
+ # Result variables
123
+ intidxs = []
124
+ xs = []
125
+ xps = []
126
+
127
+ # Verzamel de interpolatieindices voor alle trage stochasten
128
+ for i, _stochastic in enumerate(slow_stochastics):
129
+ if _stochastic == "q":
130
+ xp = statistics.discharge.qpeak
131
+ x = statistics.discharge.get_wave_shape().get_wave_shapes()
132
+ tijden = statistics.discharge.get_wave_shape().time
133
+ elif _stochastic == "a":
134
+ xp = statistics.lake_level.apeak
135
+ x = statistics.lake_level.get_wave_shape().get_wave_shapes()
136
+ tijden = statistics.lake_level.get_wave_shape().time
137
+ else:
138
+ raise ValueError(
139
+ f"Eerste trage stochast is niet 'q' of 'm'/'a' (gegeven eerste trage stochast: {_stochastic})"
140
+ )
141
+
142
+ # Check if the length matches
143
+ if exceedance_probability.shape[i] != x.shape[1]:
144
+ raise ValueError(
145
+ f"The number of elements in the stochast axis ({i}) should be {x.shape[1]} ({x.shape}), but is {exceedance_probability.shape[i]} ({exceedance_probability.shape})."
146
+ )
147
+
148
+ # Bepaal de interpolatie-indices, de xp-punten rondom x waartussen wordt geïnterpoleerd
149
+ intidx = np.array(
150
+ [(xp[None, :] <= ix[:, None]).sum(1) - 1 for ix in x], dtype=np.uint16
151
+ )
152
+ intidx = np.minimum(np.maximum(intidx, 0), len(xp) - 2)
153
+
154
+ intidxs.append(intidx)
155
+ xs.append(x)
156
+ xps.append(xp)
157
+
158
+ # Bepaal de tijdsduur van het eerste en het laatste blokje uit de golfvorm
159
+ block_duration = tijden[1] - tijden[0]
160
+ eindduur = tijden[-1] - tijden[-2]
161
+
162
+ # Alloceer arrays. Het is sneller om in de loop de arrays over te schrijven dan om ze opnieuw aan te maken
163
+ ondkanstot = np.ones(exceedance_probability.shape)
164
+ blokondkans = np.zeros(exceedance_probability.shape)
165
+ ovkansen = np.zeros(exceedance_probability.shape)
166
+
167
+ nt = len(tijden)
168
+
169
+ for it in range(nt - 1):
170
+ # Interpoleer de overschrijdingskansen
171
+ if len(slow_stochastics) == 1:
172
+ # Bepaal de index van de interpolatiewaarden (afvoeren / meerpeil) voor de betreffende tijdstap
173
+ iix = intidxs[0][it]
174
+
175
+ # Bepaal de fracties van de fp waarden obv xp, die moet worden ingevuld voor f (obv x)
176
+ fracs = (x[it] - xp[iix]) / (xp[iix + 1] - xp[iix])
177
+
178
+ # Bepaal de vorm van de output array, dit is (Ntraag, Ntijd, Nderest1, Nderest2, ...)
179
+ fracshp = fracs.shape + (1,) * (fp.ndim - 1)
180
+
181
+ # Interpoleer alle overschrijdingskansen in één keer door de fracties met de resultaatwaarden (fp) te vermenigvuldigen
182
+ ovkansen[:] = (1 - fracs.reshape(fracshp)) * fp[iix] + fp[
183
+ iix + 1
184
+ ] * fracs.reshape(fracshp)
185
+
186
+ elif len(slow_stochastics) == 2:
187
+ iix1 = intidxs[0][it]
188
+ iix2 = intidxs[1][it]
189
+
190
+ # Bepaal de fracties van de fp waarden obv xp, die moet worden ingevuld voor f (obv x)
191
+ fracs1 = (xs[0][it] - xps[0][iix1]) / (xps[0][iix1 + 1] - xps[0][iix1])
192
+ fracs2 = (xs[1][it] - xps[1][iix2]) / (xps[1][iix2 + 1] - xps[1][iix2])
193
+
194
+ # Bepaal de vorm van de output array, dit is (Ntraag, Ntijd, Nderest1, Nderest2, ...)
195
+ frac2shp = fracs2.shape + (1,) * (fp.ndim - 2)
196
+
197
+ # 2D interpolatie
198
+ # Merk op dat dit via een loop gaat. Dit is sneller dan in enkele array-operaties, omdat
199
+ # de arrays zo groot zijn dat fancy-indexing traag wordt
200
+ for i, (ix, ixp1) in enumerate(zip(iix1, iix1 + 1)):
201
+ # Interpoleer eerst over de eerste stochast
202
+ fy1 = (1 - fracs1[i]) * fp[ix][iix2] + fp[ixp1][iix2] * fracs1[i]
203
+ fy2 = (1 - fracs1[i]) * fp[ix][iix2 + 1] + fp[ixp1][
204
+ iix2 + 1
205
+ ] * fracs1[i]
206
+
207
+ # Interpoleer de tweede stochast
208
+ ovkansen[i] = fy1 + (fy2 - fy1) * fracs2.reshape(frac2shp)
209
+
210
+ # fy1 = (1 - fracs1.reshape(frac1shp)) * fp[np.ix_(iix1, iix2 )] + fp[np.ix_(iix1+1, iix2 )] * fracs1.reshape(frac1shp)
211
+ # fy2 = (1 - fracs1.reshape(frac1shp)) * fp[np.ix_(iix1, iix2+1)] + fp[np.ix_(iix1+1, iix2+1)] * fracs1.reshape(frac1shp)
212
+
213
+ # Door het interpoleren kunnen overschrijdingskansen gecreëerd worden, die een fractie groter zijn dan 1.0
214
+ ovkansen[:] = np.minimum(ovkansen, 1.0)
215
+
216
+ # De berekende overschrijdingskansen gelden voor een blokje met de duur, die gelijk is
217
+ # aan de door de gebruiker gekozen block_duration van de wind. Voor het discretiseren van de
218
+ # golfvormen heeft de gebuiker een andere duur opgegeven. De bovenstaande overschrijdings-
219
+ # kansen worden hiervoor gecorrigeerd
220
+ if block_duration != statistics.wind_speed.block_duration_wind:
221
+ ovkansen[:] = 1.0 - (1.0 - ovkansen) ** (
222
+ block_duration / statistics.wind_speed.block_duration_wind
223
+ )
224
+
225
+ # Bereken de onderschrijdingskans voor de basisduur gebruikmakend van de overschrijdingskansen per blokje
226
+ # Factoren zijn 1
227
+ blokondkans[:] = 1.0 - ovkansen
228
+
229
+ # Eerste blok is half
230
+ if it == 0:
231
+ blokondkans[:] **= 0.5
232
+
233
+ # Neem het voorlaatste en laatste blok samen
234
+ if it == (nt - 1):
235
+ # Als de eindduur kleiner is dan een halve block_duration, dan is de factor kleiner dan 1
236
+ if eindduur < (0.5 * block_duration):
237
+ factor = ((0.5 * block_duration) + eindduur) / block_duration
238
+ blokondkans[:] **= factor
239
+
240
+ # Als de eindduur groter of even lang is als een halve block_duration
241
+ else:
242
+ # Vermenig de block_duration ook nog met het laatste blokje
243
+ factor = (eindduur - (block_duration / 2.0)) / block_duration
244
+ blokondkans[:] *= (1.0 - ovkansen[:, :]) ** factor
245
+
246
+ ondkanstot *= blokondkans
247
+
248
+ # Return
249
+ return 1 - ondkanstot
@@ -0,0 +1,25 @@
1
+ import numpy as np
2
+
3
+ from .base_model import BaseModel
4
+ from .loading.other_systems.loading_wave_overtopping import LoadingWaveOvertopping
5
+ from .statistics.other_systems.statistics_wave_overtopping import (
6
+ StatisticsWaveOvertopping,
7
+ )
8
+ from ..location import Location
9
+
10
+
11
+ class WaveOvertopping(BaseModel):
12
+ def __init__(
13
+ self, location: Location, water_levels: np.ndarray, probability: np.ndarray
14
+ ):
15
+ """
16
+ Wave Overtopping model
17
+ """
18
+ # Inherit
19
+ super().__init__(location.get_settings())
20
+
21
+ # Init statistics
22
+ self.statistics = StatisticsWaveOvertopping(location, water_levels, probability)
23
+
24
+ # Init loading
25
+ self.loading = LoadingWaveOvertopping(location, water_levels)
File without changes
@@ -0,0 +1,246 @@
1
+ import numpy as np
2
+ import os
3
+
4
+ from ctypes import CDLL, POINTER, c_char_p, c_double, c_int, c_long, byref
5
+ from numpy.ctypeslib import ndpointer
6
+ from typing import Tuple
7
+
8
+
9
+ class Foreland:
10
+ """
11
+ This module will use the Dam and Foreland module (DaF) to transform wave conditions
12
+ based on the schematized foreshore. The DaF module can be used to transform wave conditions
13
+ over a breakwater and/or foreshore.
14
+ """
15
+
16
+ def __init__(self, profile, log: bool = False):
17
+ # Path to the library
18
+ lib_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "lib"))
19
+
20
+ # Load the DaF library v20.1.1.692 (differ from Hydra-NL, there are some slight changes)
21
+ self.daf_library = CDLL(os.path.join(lib_path, "DynamicLib-DaF.dll"))
22
+
23
+ # Default settings
24
+ self.alpha_c = c_double(1.0)
25
+ self.fc_c = c_double(0.021)
26
+ self.ratiodepth_c = c_double(0.5)
27
+ self.minstepsize_c = c_double(1.0)
28
+ self.invalid_c = c_double(-999.99)
29
+ self.logging_c = c_int(int(log))
30
+ self.loggingfilename_c = c_char_p("dlldaf_log.txt".encode("utf-8"))
31
+ self.loggingfilenamelength_c = c_int(len(self.loggingfilename_c.value))
32
+ self.g_c = c_double(9.81)
33
+ self.rho_c = c_double(1000.0)
34
+
35
+ # Intialize dll entries
36
+ self.__initialize_dll_entries()
37
+
38
+ # Set profile
39
+ self.profile = profile
40
+
41
+ def add_profile(self, profile) -> None:
42
+ """
43
+ Set profile
44
+
45
+ Parameters
46
+ ----------
47
+ Profile : profile
48
+ A Profile object
49
+ """
50
+ self.profile = profile
51
+
52
+ def transform_wave_conditions(
53
+ self,
54
+ water_level: np.ndarray,
55
+ significant_wave_height: np.ndarray,
56
+ peak_wave_period: np.ndarray,
57
+ wave_direction: np.ndarray,
58
+ ) -> Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]:
59
+ """
60
+ Transform the wave conditions for the schematized foreland
61
+
62
+ Parameters
63
+ ----------
64
+ water_level : np.ndarray
65
+ Water level
66
+ significant_wave_height : np.ndarray
67
+ Significant wave height
68
+ peak_wave_period : np.ndarray
69
+ Peak wave period
70
+ wave_direction : np.ndarray
71
+ Wave direction
72
+
73
+ Returns
74
+ -------
75
+ Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]
76
+ Water level and transformed wave conditions (h, hs, tp, dir)
77
+ """
78
+ # Get size and shape
79
+ shp = significant_wave_height.shape
80
+
81
+ # Determine part where wave height is larger than zero
82
+ mask = (significant_wave_height > 0.0) & (peak_wave_period > 0.0)
83
+ N = mask.sum()
84
+
85
+ # Allocate output arrays as single dimension
86
+ hm0dike = np.zeros(N, order="F")
87
+ tpdike = np.zeros(N, order="F")
88
+ refractedwaveangledike = np.zeros(N, order="F")
89
+ message = "".ljust(1000).encode("utf-8")
90
+ messagelength = c_int(1000)
91
+ n_vl = (
92
+ len(self.profile.foreland_x_coordinates)
93
+ if self.profile.foreland_x_coordinates is not None
94
+ else 1
95
+ )
96
+ x_vl = (
97
+ np.array(self.profile.foreland_x_coordinates).astype(np.float64)
98
+ if self.profile.foreland_x_coordinates is not None
99
+ else np.array([0]).astype(np.float64)
100
+ )
101
+ y_vl = (
102
+ np.array(self.profile.foreland_y_coordinates).astype(np.float64)
103
+ if self.profile.foreland_x_coordinates is not None
104
+ else np.array([-999]).astype(np.float64)
105
+ )
106
+
107
+ res = self.daf_library.C_FORTRANENTRY_RollerModel5(
108
+ byref(c_int(self.profile.breakwater_type.value)),
109
+ byref(c_double(self.profile.breakwater_level)),
110
+ byref(self.alpha_c),
111
+ byref(self.fc_c),
112
+ byref(self.invalid_c),
113
+ byref(c_int(N)),
114
+ significant_wave_height[mask].astype(np.float64),
115
+ peak_wave_period[mask].astype(np.float64),
116
+ water_level[mask].astype(np.float64),
117
+ wave_direction[mask].astype(np.float64),
118
+ byref(c_double(self.profile.dike_orientation)),
119
+ byref(c_int(n_vl)),
120
+ x_vl,
121
+ byref(self.minstepsize_c),
122
+ y_vl,
123
+ byref(self.ratiodepth_c),
124
+ byref(self.logging_c),
125
+ self.loggingfilename_c,
126
+ self.loggingfilenamelength_c,
127
+ byref(self.g_c),
128
+ byref(self.rho_c),
129
+ hm0dike,
130
+ tpdike,
131
+ refractedwaveangledike,
132
+ message,
133
+ messagelength,
134
+ )
135
+ message = message.decode("utf-8")
136
+ message = message.rstrip()
137
+ messagelength = len(message)
138
+
139
+ if res != 0:
140
+ print(message + " - Using uncorrected wave parameters.")
141
+ print(self.profile.foreland_x_coordinates)
142
+ print(self.profile.foreland_y_coordinates)
143
+ hm0dike[:] = significant_wave_height[mask].ravel()[:]
144
+ tpdike[:] = peak_wave_period[mask].ravel()[:]
145
+ refractedwaveangledike[:] = wave_direction[mask].ravel()[:]
146
+
147
+ # If not all input conditions were non-zero, put the calculated conditions on the original grid again.
148
+ if not mask.all():
149
+ # Copy original values
150
+ hm0_tmp, tp_tmp, wdir_tmp = (
151
+ significant_wave_height.copy(),
152
+ peak_wave_period.copy(),
153
+ wave_direction.copy(),
154
+ )
155
+
156
+ # Insert calculated values
157
+ hm0_tmp[mask] = hm0dike
158
+ tp_tmp[mask] = tpdike
159
+ wdir_tmp[mask] = refractedwaveangledike
160
+ conditions = (water_level, hm0_tmp, tp_tmp, wdir_tmp % 360.0)
161
+
162
+ # Else, all values, where calculated. Only reshape to input shape
163
+ else:
164
+ conditions = (
165
+ water_level,
166
+ hm0dike.reshape(shp),
167
+ tpdike.reshape(shp),
168
+ refractedwaveangledike.reshape(shp) % 360.0,
169
+ )
170
+
171
+ # Return the transformed conditions
172
+ return conditions
173
+
174
+ def __initialize_dll_entries(self) -> None:
175
+ """
176
+ Initializes the arguments types of various functions in the dynamic library.
177
+ """
178
+ # get entry point in dll, the function to use
179
+ arraypointer = ndpointer(dtype="double", ndim=1, flags="F_CONTIGUOUS")
180
+
181
+ # Define all the argument types
182
+ argtypes = {
183
+ "DamType": POINTER(c_int),
184
+ "DamHeight": POINTER(c_double),
185
+ "Alpha": POINTER(c_double),
186
+ "Fc": POINTER(c_double),
187
+ "Invalid": POINTER(c_double),
188
+ "DimHm0": POINTER(c_int),
189
+ "Hm0": arraypointer,
190
+ "Tp": arraypointer,
191
+ "Wlev": arraypointer,
192
+ "IncomingWaveAngle": arraypointer,
193
+ "DikeNormal": POINTER(c_double),
194
+ "DimX": POINTER(c_int),
195
+ "X": arraypointer,
196
+ "MinStepSize": POINTER(c_double),
197
+ "BottomLevel": arraypointer,
198
+ "RatioDepth": POINTER(c_double),
199
+ "Logging": POINTER(c_int),
200
+ "LoggingFileName": c_char_p,
201
+ "LoggingFileNameLength": c_int,
202
+ "Ag": POINTER(c_double),
203
+ "Rho": POINTER(c_double),
204
+ "Hm0Dike": arraypointer,
205
+ "TpDike": arraypointer,
206
+ "RefractedWaveAngleDike": arraypointer,
207
+ "Message": c_char_p,
208
+ "MessageLength": c_int,
209
+ }
210
+
211
+ # Note function definition for DAF module ROLLERMODEL5
212
+ self.daf_library.C_FORTRANENTRY_RollerModel5.restype = c_long
213
+ self.daf_library.C_FORTRANENTRY_RollerModel5.argtypes = [
214
+ argtypes[name]
215
+ for name in [
216
+ "DamType",
217
+ "DamHeight",
218
+ "Alpha",
219
+ "Fc",
220
+ "Invalid",
221
+ "DimHm0",
222
+ "Hm0",
223
+ "Tp",
224
+ "Wlev",
225
+ "IncomingWaveAngle",
226
+ "DikeNormal",
227
+ "DimX",
228
+ "X",
229
+ "MinStepSize",
230
+ "BottomLevel",
231
+ "RatioDepth",
232
+ "Logging",
233
+ "LoggingFileName",
234
+ "LoggingFileNameLength",
235
+ "Ag",
236
+ "Rho",
237
+ "Hm0Dike",
238
+ "TpDike",
239
+ "RefractedWaveAngleDike",
240
+ "Message",
241
+ "MessageLength",
242
+ ]
243
+ ]
244
+
245
+ # Note function definition for DAF function to obtain version number.
246
+ self.daf_library.GetVersionInfo.argtypes = [c_char_p, c_int]