flood-adapt 1.0.0rc1__py3-none-any.whl → 1.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,27 @@
1
- GNU GENERAL PUBLIC LICENSE
2
- Version 3, 29 June 2007
1
+ ====================================================
2
+ FloodAdapt License Agreement and User Acknowledgment
3
+ ====================================================
3
4
 
4
- Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
- Everyone is permitted to copy and distribute verbatim copies
6
- of this license document, but changing it is not allowed.
5
+ FloodAdapt is free software: you can redistribute it and/or modify
6
+ it under the terms of the GNU General Public License version 3 as
7
+ published by the Free Software Foundation.
8
+
9
+ This program is distributed in the hope that it will be useful,
10
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ GNU General Public License for more details.
13
+
14
+ The following license applies to the FloodAdapt software.
15
+ Please read it carefully and in its entirety before continuing.
16
+
17
+ ====================================================
18
+ GNU GENERAL PUBLIC LICENSE
19
+ Version 3, 29 June 2007
20
+ ====================================================
21
+
22
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
23
+ Everyone is permitted to copy and distribute verbatim copies
24
+ of this license document, but changing it is not allowed.
7
25
 
8
26
  Preamble
9
27
 
@@ -617,58 +635,63 @@ reviewing courts shall apply local law that most closely approximates
617
635
  an absolute waiver of all civil liability in connection with the
618
636
  Program, unless a warranty or assumption of liability accompanies a
619
637
  copy of the Program in return for a fee.
638
+ [Insert full GPLv3 license text here or copy it from the official GPL site:
639
+ https://www.gnu.org/licenses/gpl-3.0.txt. For brevity, it is omitted here.]
640
+
641
+ ===============================================================================
642
+ Additional User Acknowledgments
643
+ ===============================================================================
644
+
645
+ By installing or using FloodAdapt, you agree to the GPLv3 terms above AND you
646
+ explicitly acknowledge and agree to the following:
647
+
648
+ 1. Intended Use
649
+
650
+ I understand that FloodAdapt is designed for early-phase climate adaptation
651
+ planning. It is NOT intended for detailed engineering design, regulatory
652
+ decision-making, or emergency response. Any use outside that scope is at my
653
+ own risk.
620
654
 
621
- END OF TERMS AND CONDITIONS
655
+ 2. Software Function and Dependencies
622
656
 
623
- How to Apply These Terms to Your New Programs
657
+ I understand that FloodAdapt is a software shell that requires a user‑provided
658
+ database of flood and impact models. The quality and accuracy of results
659
+ depend entirely on those models and their input data.
624
660
 
625
- If you develop a new program, and you want it to be of the greatest
626
- possible use to the public, the best way to achieve this is to make it
627
- free software which everyone can redistribute and change under these terms.
661
+ 3. No Warranty on Results
628
662
 
629
- To do so, attach the following notices to the program. It is safest
630
- to attach them to the start of each source file to most effectively
631
- state the exclusion of warranty; and each file should have at least
632
- the "copyright" line and a pointer to where the full notice is found.
663
+ I understand that FloodAdapt and its developers make NO guarantees about the
664
+ accuracy, reliability, or completeness of any outputs. I will interpret and
665
+ validate all results before using them in any planning or decision‑making context.
633
666
 
634
- <one line to give the program's name and a brief idea of what it does.>
635
- Copyright (C) <year> <name of author>
667
+ 4. Software Status
636
668
 
637
- This program is free software: you can redistribute it and/or modify
638
- it under the terms of the GNU General Public License as published by
639
- the Free Software Foundation, either version 3 of the License, or
640
- (at your option) any later version.
669
+ I acknowledge that FloodAdapt is at Technology Readiness Level 7 (TRL 7).
670
+ Although operational in certain environments, it may still contain bugs.
671
+ Issues can be reported at:
672
+ https://github.com/Deltares-research/FloodAdapt/issues
641
673
 
642
- This program is distributed in the hope that it will be useful,
643
- but WITHOUT ANY WARRANTY; without even the implied warranty of
644
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645
- GNU General Public License for more details.
674
+ 5. No Liability
646
675
 
647
- You should have received a copy of the GNU General Public License
648
- along with this program. If not, see <https://www.gnu.org/licenses/>.
676
+ I understand that FloodAdapt is provided “as is,” without any warranty—
677
+ express or implied—including warranties of merchantability or fitness for a
678
+ particular purpose. The developers and distributors accept NO liability
679
+ for any damages, losses, or legal claims arising from its use or misuse.
649
680
 
650
- Also add information on how to contact you by electronic and paper mail.
681
+ 6. User Responsibility
651
682
 
652
- If the program does terminal interaction, make it output a short
653
- notice like this when it starts in an interactive mode:
683
+ I understand that it is MY responsibility to validate all outputs and seek
684
+ appropriate professional advice before applying results to real-world or
685
+ official projects.
654
686
 
655
- <program> Copyright (C) <year> <name of author>
656
- This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657
- This is free software, and you are welcome to redistribute it
658
- under certain conditions; type `show c' for details.
687
+ 7. Third‑Party Content
659
688
 
660
- The hypothetical commands `show w' and `show c' should show the appropriate
661
- parts of the General Public License. Of course, your program's commands
662
- might be different; for a GUI interface, you would use an "about box".
689
+ I understand that any third‑party models or data used within FloodAdapt
690
+ remain the responsibility of their original creators. FloodAdapt does not
691
+ verify or warrant the accuracy of such content.
663
692
 
664
- You should also get your employer (if you work as a programmer) or school,
665
- if any, to sign a "copyright disclaimer" for the program, if necessary.
666
- For more information on this, and how to apply and follow the GNU GPL, see
667
- <https://www.gnu.org/licenses/>.
693
+ 8. No Professional Advice
668
694
 
669
- The GNU General Public License does not permit incorporating your program
670
- into proprietary programs. If your program is a subroutine library, you
671
- may consider it more useful to permit linking proprietary applications with
672
- the library. If this is what you want to do, use the GNU Lesser General
673
- Public License instead of this License. But first, please read
674
- <https://www.gnu.org/licenses/why-not-lgpl.html>.
695
+ I acknowledge that FloodAdapt does NOT provide professional engineering,
696
+ legal, or emergency-management advice. I will seek qualified professionals
697
+ for critical decisions or interpretations.
@@ -1,14 +1,32 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: flood-adapt
3
- Version: 1.0.0rc1
3
+ Version: 1.0.2
4
4
  Summary: A software package support system which can be used to assess the benefits and costs of flood resilience measures
5
5
  Author-email: Gundula Winter <Gundula.Winter@deltares.nl>, Panos Athanasiou <Panos.Athanasiou@deltares.nl>, Frederique de Groen <Frederique.deGroen@deltares.nl>, Tim de Wilde <Tim.deWilde@deltares.nl>, Julian Hofer <Julian.Hofer@deltares.nl>, Daley Adrichem <Daley.Adrichem@deltares.nl>, Luuk Blom <Luuk.Blom@deltares.nl>
6
- License: GNU GENERAL PUBLIC LICENSE
7
- Version 3, 29 June 2007
6
+ License: ====================================================
7
+ FloodAdapt License Agreement and User Acknowledgment
8
+ ====================================================
8
9
 
9
- Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
10
- Everyone is permitted to copy and distribute verbatim copies
11
- of this license document, but changing it is not allowed.
10
+ FloodAdapt is free software: you can redistribute it and/or modify
11
+ it under the terms of the GNU General Public License version 3 as
12
+ published by the Free Software Foundation.
13
+
14
+ This program is distributed in the hope that it will be useful,
15
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ GNU General Public License for more details.
18
+
19
+ The following license applies to the FloodAdapt software.
20
+ Please read it carefully and in its entirety before continuing.
21
+
22
+ ====================================================
23
+ GNU GENERAL PUBLIC LICENSE
24
+ Version 3, 29 June 2007
25
+ ====================================================
26
+
27
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
28
+ Everyone is permitted to copy and distribute verbatim copies
29
+ of this license document, but changing it is not allowed.
12
30
 
13
31
  Preamble
14
32
 
@@ -622,61 +640,66 @@ License: GNU GENERAL PUBLIC LICENSE
622
640
  an absolute waiver of all civil liability in connection with the
623
641
  Program, unless a warranty or assumption of liability accompanies a
624
642
  copy of the Program in return for a fee.
643
+ [Insert full GPLv3 license text here or copy it from the official GPL site:
644
+ https://www.gnu.org/licenses/gpl-3.0.txt. For brevity, it is omitted here.]
645
+
646
+ ===============================================================================
647
+ Additional User Acknowledgments
648
+ ===============================================================================
649
+
650
+ By installing or using FloodAdapt, you agree to the GPLv3 terms above AND you
651
+ explicitly acknowledge and agree to the following:
652
+
653
+ 1. Intended Use
654
+
655
+ I understand that FloodAdapt is designed for early-phase climate adaptation
656
+ planning. It is NOT intended for detailed engineering design, regulatory
657
+ decision-making, or emergency response. Any use outside that scope is at my
658
+ own risk.
625
659
 
626
- END OF TERMS AND CONDITIONS
660
+ 2. Software Function and Dependencies
627
661
 
628
- How to Apply These Terms to Your New Programs
662
+ I understand that FloodAdapt is a software shell that requires a user‑provided
663
+ database of flood and impact models. The quality and accuracy of results
664
+ depend entirely on those models and their input data.
629
665
 
630
- If you develop a new program, and you want it to be of the greatest
631
- possible use to the public, the best way to achieve this is to make it
632
- free software which everyone can redistribute and change under these terms.
666
+ 3. No Warranty on Results
633
667
 
634
- To do so, attach the following notices to the program. It is safest
635
- to attach them to the start of each source file to most effectively
636
- state the exclusion of warranty; and each file should have at least
637
- the "copyright" line and a pointer to where the full notice is found.
668
+ I understand that FloodAdapt and its developers make NO guarantees about the
669
+ accuracy, reliability, or completeness of any outputs. I will interpret and
670
+ validate all results before using them in any planning or decision‑making context.
638
671
 
639
- <one line to give the program's name and a brief idea of what it does.>
640
- Copyright (C) <year> <name of author>
672
+ 4. Software Status
641
673
 
642
- This program is free software: you can redistribute it and/or modify
643
- it under the terms of the GNU General Public License as published by
644
- the Free Software Foundation, either version 3 of the License, or
645
- (at your option) any later version.
674
+ I acknowledge that FloodAdapt is at Technology Readiness Level 7 (TRL 7).
675
+ Although operational in certain environments, it may still contain bugs.
676
+ Issues can be reported at:
677
+ https://github.com/Deltares-research/FloodAdapt/issues
646
678
 
647
- This program is distributed in the hope that it will be useful,
648
- but WITHOUT ANY WARRANTY; without even the implied warranty of
649
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
650
- GNU General Public License for more details.
679
+ 5. No Liability
651
680
 
652
- You should have received a copy of the GNU General Public License
653
- along with this program. If not, see <https://www.gnu.org/licenses/>.
681
+ I understand that FloodAdapt is provided “as is,” without any warranty—
682
+ express or implied—including warranties of merchantability or fitness for a
683
+ particular purpose. The developers and distributors accept NO liability
684
+ for any damages, losses, or legal claims arising from its use or misuse.
654
685
 
655
- Also add information on how to contact you by electronic and paper mail.
686
+ 6. User Responsibility
656
687
 
657
- If the program does terminal interaction, make it output a short
658
- notice like this when it starts in an interactive mode:
688
+ I understand that it is MY responsibility to validate all outputs and seek
689
+ appropriate professional advice before applying results to real-world or
690
+ official projects.
659
691
 
660
- <program> Copyright (C) <year> <name of author>
661
- This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
662
- This is free software, and you are welcome to redistribute it
663
- under certain conditions; type `show c' for details.
692
+ 7. Third‑Party Content
664
693
 
665
- The hypothetical commands `show w' and `show c' should show the appropriate
666
- parts of the General Public License. Of course, your program's commands
667
- might be different; for a GUI interface, you would use an "about box".
694
+ I understand that any third‑party models or data used within FloodAdapt
695
+ remain the responsibility of their original creators. FloodAdapt does not
696
+ verify or warrant the accuracy of such content.
668
697
 
669
- You should also get your employer (if you work as a programmer) or school,
670
- if any, to sign a "copyright disclaimer" for the program, if necessary.
671
- For more information on this, and how to apply and follow the GNU GPL, see
672
- <https://www.gnu.org/licenses/>.
698
+ 8. No Professional Advice
673
699
 
674
- The GNU General Public License does not permit incorporating your program
675
- into proprietary programs. If your program is a subroutine library, you
676
- may consider it more useful to permit linking proprietary applications with
677
- the library. If this is what you want to do, use the GNU Lesser General
678
- Public License instead of this License. But first, please read
679
- <https://www.gnu.org/licenses/why-not-lgpl.html>.
700
+ I acknowledge that FloodAdapt does NOT provide professional engineering,
701
+ legal, or emergency-management advice. I will seek qualified professionals
702
+ for critical decisions or interpretations.
680
703
 
681
704
  Project-URL: Source, https://github.com/Deltares-research/FloodAdapt
682
705
  Classifier: Intended Audience :: Science/Research
@@ -1,12 +1,12 @@
1
- flood_adapt/__init__.py,sha256=QzXxKbGjqp3OAJpx7b9Xvx_0MEZErvoYGRxDYTJt-xY,822
2
- flood_adapt/flood_adapt.py,sha256=szovzFyApBeT-XPMZ-GNsWH-ap63ejouP7hZZjadMVU,38364
3
- flood_adapt/adapter/__init__.py,sha256=UuiuVz5vKDoXnvBUMJ7Yybk0pjZkYLREgTA4G1Pzj8c,258
4
- flood_adapt/adapter/fiat_adapter.py,sha256=oJl9v7Yf4LUIW0XGTRdcMxsuFzBlEkGO1PPzuF-vpl4,60188
5
- flood_adapt/adapter/sfincs_adapter.py,sha256=aDMiQavxvY0TaoFIv61nMElNXSXwFQXvzL5QbeX6Dr8,79568
6
- flood_adapt/adapter/sfincs_offshore.py,sha256=3VkKfgh26P6txc598MEt2jOHM0S5N4-9ZiYhXPaDm84,7696
1
+ flood_adapt/__init__.py,sha256=nM2dOWhbuJMqz6B1Z_TD3ymLj7p4NZt4VME5qSRiuQ0,818
2
+ flood_adapt/flood_adapt.py,sha256=0oUk83neusSBa2ibBvqHMoTSz97ABICGZgQ47VXoaOk,38701
3
+ flood_adapt/adapter/__init__.py,sha256=vnF8NCkEVX-N-gtGS-J_A1H1YYAjihWjJZFyYGwcp8Q,180
4
+ flood_adapt/adapter/fiat_adapter.py,sha256=kqZsAEo4YToLtaKTwATAGgmp5-FWQffZLbAItuLx104,60010
5
+ flood_adapt/adapter/sfincs_adapter.py,sha256=rDniEAWo1JIdDTy0mb5kJZ_lDNMWYnGub738Bg-gLkY,79422
6
+ flood_adapt/adapter/sfincs_offshore.py,sha256=MjSPTrFPuOI2VqHeaBobS_OCozgnJST05nR49lq7cPs,7639
7
7
  flood_adapt/adapter/interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  flood_adapt/adapter/interface/hazard_adapter.py,sha256=S2NIUAMSRgxC_E-tZRJ2qIP06U1zEVdn-MnvMTrn86s,2828
9
- flood_adapt/adapter/interface/impact_adapter.py,sha256=wWMCcKUkxISz-yN2q3CBIQj0Gm8C2gtXsMwOKajX9ik,1423
9
+ flood_adapt/adapter/interface/impact_adapter.py,sha256=WK_r0KBBR-Z6Yiys0dqtOVbFIsqEjr3aWBuZkb9zN5Y,1428
10
10
  flood_adapt/adapter/interface/model_adapter.py,sha256=8OMjxw-3gv6eX60bv_44AaU_lEzL-DyLQtIfGgkgzIg,2782
11
11
  flood_adapt/adapter/interface/offshore.py,sha256=G3ZpCWw6SjpyhOJIh0Acc5jnoUS8SO_zWLmfMED7zho,481
12
12
  flood_adapt/config/__init__.py,sha256=wfcPGORAGBXWUi8G7E5tLWvBS9A2ajJ9atHfxatExj4,1933
@@ -18,7 +18,7 @@ flood_adapt/config/impacts.py,sha256=O7vE7jB3GSXnkqAvv7TqJiJ_j1uJ3mck_KQ-ScsB3bo
18
18
  flood_adapt/config/sfincs.py,sha256=y8C3PzFwwgMB_sb8rBzgteaQ8fCxep6DnZxuk0q__bc,4825
19
19
  flood_adapt/config/site.py,sha256=VR90jCHWcxgoQJptNyXy7LseGjXUDRtdOjNGCddFVzI,4328
20
20
  flood_adapt/database_builder/__init__.py,sha256=YsI5bGcAKYmsmb5W-spp91hzsKSTRtkXBLNRxLOWml4,474
21
- flood_adapt/database_builder/database_builder.py,sha256=Yw0V4BeF6EyL-06WILPVIIuRRQXeTNhg-trDp34zTTI,98969
21
+ flood_adapt/database_builder/database_builder.py,sha256=OD702Ge83_-qsQvYBYnYBUwP5JWSMQCJb_HM4OoPANo,100285
22
22
  flood_adapt/database_builder/templates/default_units/imperial.toml,sha256=zIjPlxIa2kWLUjSYisd8UolXGo5iKdFoDDz_JkKBXTM,295
23
23
  flood_adapt/database_builder/templates/default_units/metric.toml,sha256=tc0XMKs7xGL9noB9lAb0gyQfjYxzokgHa3NqpccxWl0,302
24
24
  flood_adapt/database_builder/templates/green_infra_table/green_infra_lookup_table.csv,sha256=ooQzNGQwAMSAphy5W2ZyR5boQlcwvPv9ToJx1MlZhVE,466
@@ -76,18 +76,18 @@ flood_adapt/database_builder/templates/infometrics/US_NSI/without_SVI/infographi
76
76
  flood_adapt/database_builder/templates/infometrics/US_NSI/without_SVI/infographic_metrics_config_risk.toml,sha256=VLO7NRWTPzYRj3jYDb_mImPTppSm8Lh1ajCdNPuyc4U,2045
77
77
  flood_adapt/database_builder/templates/output_layers/bin_colors.toml,sha256=yN3_h2IimOyjtfhZ-ZoWyNa-2cAeFRNlbvaNTLhEMfA,417
78
78
  flood_adapt/dbs_classes/__init__.py,sha256=J-a6BEkjDhuUzzRKuAn_AtTg_D9wNIsmY3BnVTiC2JA,731
79
- flood_adapt/dbs_classes/database.py,sha256=uHK_92InQtarsrPGVSLskOTNKxfKkRQWWEnIrm2x_CQ,21210
79
+ flood_adapt/dbs_classes/database.py,sha256=xtdV-tqfJ26lTtp-K7fC1PhaSUFY_qfcfyIYh0gIp9Q,23583
80
80
  flood_adapt/dbs_classes/dbs_benefit.py,sha256=BbEdx3_sNzqPu4T3AUwiDdf9OnbEtIb-sQui-dYpgLU,2671
81
81
  flood_adapt/dbs_classes/dbs_event.py,sha256=7fxlJFih5qrKuqpBlcQ1mYOHCfWyLJytEuu5JkBDNrc,1885
82
82
  flood_adapt/dbs_classes/dbs_measure.py,sha256=nEmq1kinc4l5d4LIxguzuXvCVYrWvFxX8maak8wIggw,4087
83
83
  flood_adapt/dbs_classes/dbs_projection.py,sha256=lyiU_ctP2ixK28RKnBN6mVJbOuaDsWCj1y6-MHlyi_k,1078
84
84
  flood_adapt/dbs_classes/dbs_scenario.py,sha256=hUvfGHw2LKmTFz2QeRijmTaalFrYap0gPK5QkNzuZfQ,4833
85
- flood_adapt/dbs_classes/dbs_static.py,sha256=FM_pMVFZK_7DV9D9LR7HY0ghOOcAIDV0GlepEYjtjKs,9842
85
+ flood_adapt/dbs_classes/dbs_static.py,sha256=0q72yCe03L4ibPVikQjuOjSdwgP66DQMbio3zj8UJlw,10550
86
86
  flood_adapt/dbs_classes/dbs_strategy.py,sha256=Pin0SXukdIdNwDBuM0XtqNsWUpM-gMoYy-ZfYNIs9Hw,4928
87
87
  flood_adapt/dbs_classes/dbs_template.py,sha256=CTjDijAWjbs3u9wwFKigAfVlDZnduTtYDTFD_b78m4w,10384
88
88
  flood_adapt/dbs_classes/interface/database.py,sha256=kPHsmreB-vHaFD_FRXbP06tVs7pGxt4Rucim6aEqiKg,2550
89
89
  flood_adapt/dbs_classes/interface/element.py,sha256=XN3SjfEiAa4oZ61XJNnHkfKQu5Da42EH8PEkfosIJ9w,3528
90
- flood_adapt/dbs_classes/interface/static.py,sha256=jaFe9p80mkdafIw8qzOXm33M8hxm6OgNCCG0Rs0OEcc,1272
90
+ flood_adapt/dbs_classes/interface/static.py,sha256=amChHlParELA4vFMUn_kL1fx6z7fCFW-hJXBo7PGtbY,1588
91
91
  flood_adapt/misc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
92
92
  flood_adapt/misc/database_user.py,sha256=4PnXMNA0poQWWGc9FbmYAfJh5PhTMI3xzlCaIuP5wn4,546
93
93
  flood_adapt/misc/exceptions.py,sha256=xLT1QnbjClftzYaxX5XdvVAkoI0q1CAsWJX901GB9JM,513
@@ -108,21 +108,22 @@ flood_adapt/objects/events/synthetic.py,sha256=Q8OHbBumeEwbrzA1imBrxiGiB92RWyigV
108
108
  flood_adapt/objects/forcing/__init__.py,sha256=wzPrflMLiEolocs3UcLeg05u5ydMDhF00jEf9zsC76c,2141
109
109
  flood_adapt/objects/forcing/csv.py,sha256=AMHlE5K_QiMOqD2pRRbG4ojnZ9VPiQjtk2wMFSouKjk,2027
110
110
  flood_adapt/objects/forcing/discharge.py,sha256=GIuKETXizwuaeIbHlu0fELQwC0ttfZSDiUMRm4HEyWY,2057
111
- flood_adapt/objects/forcing/forcing.py,sha256=h8_9edDxJ8-XI9Wyk1-2T7mSxmNFy-IwzUTPmSqCqZY,4513
111
+ flood_adapt/objects/forcing/forcing.py,sha256=MonjhiHP6ge_5UFDMcLmj0pt5jK76Eznb4F7q3d8nAg,4356
112
112
  flood_adapt/objects/forcing/forcing_factory.py,sha256=lpugKlMt0MN8BxyykottMOuQd_fp1MHrkuuqbHWWdRY,5965
113
113
  flood_adapt/objects/forcing/meteo_handler.py,sha256=rTxY5WNobK_Ifzj2eVcoSPGgb3TzuZljSv_dLn5FLo8,3016
114
114
  flood_adapt/objects/forcing/netcdf.py,sha256=ZBzFtN5joVs36lVjvYErVaHEylUQ6eKIhR0uk_MD-zM,1388
115
115
  flood_adapt/objects/forcing/plotting.py,sha256=z612jv_9aRyK6cUm181vXFhihWz5XX_c6UDQg8rU02o,14804
116
116
  flood_adapt/objects/forcing/rainfall.py,sha256=e6P3IMzItvnsmXbcMXl1oV-d9LDuh3jTIc_vt6Kz5zo,3282
117
- flood_adapt/objects/forcing/tide_gauge.py,sha256=AcZ1e3C5w1I2YXcwMToNJkdXIRa-EmBS7DlsaEBMvSY,7207
117
+ flood_adapt/objects/forcing/tide_gauge.py,sha256=jGIh6jQlhecGkPfBaZ8NKbr7FlpmLZAwmlqgp8lEWu0,7143
118
118
  flood_adapt/objects/forcing/time_frame.py,sha256=1X3G0Ax18BHRvAomf-CW_ISRk_3qgAakwgZCIBxIkL4,2855
119
- flood_adapt/objects/forcing/timeseries.py,sha256=1a3pK4RvpM6ib1EQX8iV_SusK16b5bYntz7e5DSghLU,19742
119
+ flood_adapt/objects/forcing/timeseries.py,sha256=bD27JWzC3owq5ah3zPzJ7xoUzSH_t4J03s_SycYW0mQ,19740
120
120
  flood_adapt/objects/forcing/unit_system.py,sha256=EHz4ixI8nmjfDeyU2AszXTf6ebaqChbGg0PuJHMJdh8,16502
121
121
  flood_adapt/objects/forcing/waterlevels.py,sha256=8lCmUdeyABurJwftae4_Iut9hCn24xVqCEPEa73OOcA,3437
122
122
  flood_adapt/objects/forcing/wind.py,sha256=xs_xZdUoZUDP1y1xITlNVJwiyDt6wQsFbPFhVRDjSqg,3925
123
123
  flood_adapt/objects/measures/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
124
124
  flood_adapt/objects/measures/measure_factory.py,sha256=tPT4fSzT5buiLf3gmxtap1vrfH2HusQOWTluucFFwJ0,2728
125
125
  flood_adapt/objects/measures/measures.py,sha256=WCVwMJNvvHNgYjALwrIMKPUChe4qPF1FyI4eG6jUQnc,19717
126
+ flood_adapt/objects/output/floodmap.py,sha256=_JmPFIjORSwyAKICgUtEgTn0wswWdGY-sEFy3KqNo_k,281
126
127
  flood_adapt/objects/projections/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
127
128
  flood_adapt/objects/projections/projections.py,sha256=GCbT2nAGEkiBicVrfuYsw1UYIj9BLj9v0pGnhBI7DZk,4052
128
129
  flood_adapt/objects/scenarios/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -131,11 +132,9 @@ flood_adapt/objects/strategies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
131
132
  flood_adapt/objects/strategies/strategies.py,sha256=Jw-WJDCamL9p_7VEir3AdmYPMVAiCVRU9n_whG6WcgE,2981
132
133
  flood_adapt/workflows/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
133
134
  flood_adapt/workflows/benefit_runner.py,sha256=VtYt0sHFymNyErpzOtuN55cKJGVm5hT2a_Qzprg6T88,21786
134
- flood_adapt/workflows/floodmap.py,sha256=nf3hYWrHw7_L-QLFAjPpNGqlEfOCeQxsKJrq0eAlaq0,3018
135
- flood_adapt/workflows/impacts_integrator.py,sha256=zPJrb3Fm6gXPCmlA3vMh-2nmIwH_DWGrJGS1BUDqHLU,2495
136
- flood_adapt/workflows/scenario_runner.py,sha256=o6x_p7oF0apmo6Zq-_4uBXVeL6saRJZlIX6lTCPN2Rc,2984
137
- flood_adapt-1.0.0rc1.dist-info/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
138
- flood_adapt-1.0.0rc1.dist-info/METADATA,sha256=iB9i0BMWEjZKgw0BDu_O1z5gFS8OsWtBBbm_2Beu7RA,52580
139
- flood_adapt-1.0.0rc1.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
140
- flood_adapt-1.0.0rc1.dist-info/top_level.txt,sha256=JvzMi6cTcQPEThCfpgMEeVny3ghI1urSH0CCgVIqSzw,12
141
- flood_adapt-1.0.0rc1.dist-info/RECORD,,
135
+ flood_adapt/workflows/scenario_runner.py,sha256=RGTtYt7kRqjL2kJJq1hTJ-i9vKndRfazGkyVkJym0so,3679
136
+ flood_adapt-1.0.2.dist-info/LICENSE,sha256=Ui5E03pQ0EVKxvKA54lTPA1xrtgA2HMGLQai95eOzoE,36321
137
+ flood_adapt-1.0.2.dist-info/METADATA,sha256=ZHACDKexWru7O0XSGLnhdhIKogl3C-0H4erWALYgI7I,53259
138
+ flood_adapt-1.0.2.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
139
+ flood_adapt-1.0.2.dist-info/top_level.txt,sha256=JvzMi6cTcQPEThCfpgMEeVny3ghI1urSH0CCgVIqSzw,12
140
+ flood_adapt-1.0.2.dist-info/RECORD,,
@@ -1,85 +0,0 @@
1
- import os
2
- from pathlib import Path
3
-
4
- from flood_adapt.config.impacts import FloodmapType
5
- from flood_adapt.misc.database_user import DatabaseUser
6
- from flood_adapt.misc.log import FloodAdaptLogging
7
- from flood_adapt.objects.events.event_set import EventSet
8
- from flood_adapt.objects.events.events import Mode
9
- from flood_adapt.objects.strategies.strategies import Strategy
10
-
11
-
12
- class FloodMap(DatabaseUser):
13
- logger = FloodAdaptLogging.getLogger("FloodMap")
14
-
15
- type: FloodmapType
16
-
17
- name: str
18
- path: Path | os.PathLike | list[Path | os.PathLike]
19
- event_set: EventSet
20
-
21
- def __init__(self, scenario_name: str) -> None:
22
- self.name = scenario_name
23
- self.type = self.database.site.fiat.config.floodmap_type
24
- self._get_flood_map_paths()
25
-
26
- def _get_flood_map_paths(self):
27
- base_dir = self.database.scenarios.output_path / self.name / "Flooding"
28
- # TODO check naming of files
29
- if self.mode == Mode.single_event:
30
- if self.type == FloodmapType.water_level:
31
- self.path = base_dir / "max_water_level_map.nc"
32
- elif self.type == FloodmapType.water_depth:
33
- self.path = base_dir / f"FloodMap_{self.name}.tif"
34
- elif self.mode == Mode.risk:
35
- if self.type == FloodmapType.water_level:
36
- self.path = list(base_dir.glob("RP_*_maps.nc"))
37
- elif self.type == FloodmapType.water_depth:
38
- self.path = list(base_dir.glob("RP_*_maps.tif"))
39
-
40
- @property
41
- def has_run(self) -> bool:
42
- if self.mode == Mode.single_event:
43
- return self.path.exists()
44
- elif self.mode == Mode.risk:
45
- check_files = [RP_map.exists() for RP_map in self.path]
46
- check_rps = len(self.path) == len(
47
- self.database.site.fiat.risk.return_periods
48
- )
49
- return all(check_files) & check_rps
50
-
51
- @property
52
- def scenario(self):
53
- if hasattr(self, "_scenario"):
54
- return self._scenario
55
- self._scenario = self.database.scenarios.get(self.name)
56
- return self._scenario
57
-
58
- @property
59
- def mode(self):
60
- if hasattr(self, "_mode"):
61
- return self._mode
62
- self._mode = self.database.events.get(self.scenario.event).mode
63
- return self._mode
64
-
65
- @property
66
- def crs(self):
67
- if hasattr(self, "_crs"):
68
- return self._crs
69
- self._crs = self.database.site.crs
70
- return self._crs
71
-
72
- @property
73
- def hazard_strategy(self) -> Strategy:
74
- return self.database.strategies.get(
75
- self.scenario.strategy
76
- ).get_hazard_strategy()
77
-
78
- @property
79
- def physical_projection(self):
80
- if hasattr(self, "_physical_projection"):
81
- return self._physical_projection
82
- self._physical_projection = self.database.projections.get(
83
- self.scenario.projection
84
- ).physical_projection
85
- return self._physical_projection
@@ -1,85 +0,0 @@
1
- from pathlib import Path
2
-
3
- from flood_adapt.misc.database_user import DatabaseUser
4
- from flood_adapt.misc.log import FloodAdaptLogging
5
- from flood_adapt.misc.path_builder import (
6
- ObjectDir,
7
- TopLevelDir,
8
- db_path,
9
- )
10
- from flood_adapt.objects.projections.projections import SocioEconomicChange
11
- from flood_adapt.objects.scenarios.scenarios import Scenario
12
- from flood_adapt.objects.strategies.strategies import Strategy
13
- from flood_adapt.workflows.floodmap import FloodMap
14
-
15
-
16
- class Impacts(DatabaseUser):
17
- """All information related to the impacts of the scenario.
18
-
19
- Includes methods to run the impact models or check if they has already been run.
20
- """
21
-
22
- logger = FloodAdaptLogging.getLogger("Impacts")
23
- name: str
24
-
25
- def __init__(self, scenario: Scenario):
26
- self.name = scenario.name
27
- self.scenario = scenario
28
- self.site_info = self.database.site
29
-
30
- @property
31
- def models(self):
32
- """Return the list of impact models."""
33
- models = [self.database.static.get_fiat_model()] # for now only FIAT adapter
34
- return models
35
-
36
- @property
37
- def hazard(self) -> FloodMap:
38
- return FloodMap(self.name)
39
-
40
- @property
41
- def socio_economic_change(self) -> SocioEconomicChange:
42
- return self.database.projections.get(
43
- self.scenario.projection
44
- ).socio_economic_change
45
-
46
- @property
47
- def impact_strategy(self) -> Strategy:
48
- return self.database.strategies.get(
49
- self.scenario.strategy
50
- ).get_impact_strategy()
51
-
52
- @property
53
- def results_path(self) -> Path:
54
- return db_path(
55
- TopLevelDir.output, object_dir=ObjectDir.scenario, obj_name=self.name
56
- )
57
-
58
- @property
59
- def impacts_path(self) -> Path:
60
- return self.results_path / "Impacts"
61
-
62
- @property
63
- def has_run(self) -> bool:
64
- return self.has_run_check()
65
-
66
- def run(self):
67
- """Run the impact model(s)."""
68
- if self.has_run:
69
- self.logger.info("Impacts have already been run.")
70
- return
71
- for model in self.models:
72
- model.run(self.scenario)
73
-
74
- def has_run_check(self) -> bool:
75
- """Check if the impact has been run.
76
-
77
- Returns
78
- -------
79
- bool
80
- _description_
81
- """
82
- checks = []
83
- for model in self.models:
84
- checks.append(model.has_run(self.scenario))
85
- return all(checks)