fimeval 0.1.55__tar.gz → 0.1.57__tar.gz
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.
- {fimeval-0.1.55 → fimeval-0.1.57}/PKG-INFO +34 -16
- {fimeval-0.1.55 → fimeval-0.1.57}/README.md +32 -13
- {fimeval-0.1.55 → fimeval-0.1.57}/pyproject.toml +2 -3
- fimeval-0.1.57/src/fimeval/BenchFIMQuery/__init__.py +5 -0
- fimeval-0.1.57/src/fimeval/BenchFIMQuery/access_benchfim.py +761 -0
- fimeval-0.1.57/src/fimeval/BenchFIMQuery/utilis.py +269 -0
- {fimeval-0.1.55 → fimeval-0.1.57}/src/fimeval/BuildingFootprint/evaluationwithBF.py +107 -52
- {fimeval-0.1.55 → fimeval-0.1.57}/src/fimeval/BuildingFootprint/microsoftBF.py +2 -0
- {fimeval-0.1.55 → fimeval-0.1.57}/src/fimeval/ContingencyMap/evaluationFIM.py +92 -51
- {fimeval-0.1.55 → fimeval-0.1.57}/src/fimeval/ContingencyMap/plotevaluationmetrics.py +25 -21
- {fimeval-0.1.55 → fimeval-0.1.57}/src/fimeval/__init__.py +4 -0
- fimeval-0.1.57/src/fimeval/setup_benchFIM.py +39 -0
- {fimeval-0.1.55 → fimeval-0.1.57}/src/fimeval/utilis.py +49 -0
- {fimeval-0.1.55 → fimeval-0.1.57}/src/fimeval.egg-info/PKG-INFO +34 -16
- {fimeval-0.1.55 → fimeval-0.1.57}/src/fimeval.egg-info/SOURCES.txt +5 -0
- {fimeval-0.1.55 → fimeval-0.1.57}/src/fimeval.egg-info/requires.txt +1 -2
- fimeval-0.1.57/tests/test_accessbenchmarkFIM.py +51 -0
- {fimeval-0.1.55 → fimeval-0.1.57}/tests/test_evaluationfim.py +25 -7
- {fimeval-0.1.55 → fimeval-0.1.57}/LICENSE.txt +0 -0
- {fimeval-0.1.55 → fimeval-0.1.57}/setup.cfg +0 -0
- {fimeval-0.1.55 → fimeval-0.1.57}/src/fimeval/BuildingFootprint/__init__.py +0 -0
- {fimeval-0.1.55 → fimeval-0.1.57}/src/fimeval/ContingencyMap/PWBs3.py +0 -0
- {fimeval-0.1.55 → fimeval-0.1.57}/src/fimeval/ContingencyMap/__init__.py +0 -0
- {fimeval-0.1.55 → fimeval-0.1.57}/src/fimeval/ContingencyMap/methods.py +0 -0
- {fimeval-0.1.55 → fimeval-0.1.57}/src/fimeval/ContingencyMap/metrics.py +0 -0
- {fimeval-0.1.55 → fimeval-0.1.57}/src/fimeval/ContingencyMap/printcontingency.py +0 -0
- {fimeval-0.1.55 → fimeval-0.1.57}/src/fimeval.egg-info/dependency_links.txt +0 -0
- {fimeval-0.1.55 → fimeval-0.1.57}/src/fimeval.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fimeval
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.57
|
|
4
4
|
Summary: A Framework for Automatic Evaluation of Flood Inundation Mapping Predictions Evaluation
|
|
5
5
|
Author: Surface Dynamics Modeling Lab
|
|
6
6
|
Author-email: Supath Dhital <sdhital@crimson.ua.edu>, Dipshika Devi <ddevi@ua.edu>
|
|
@@ -680,9 +680,8 @@ Requires-Dist: kaleido==0.2.1
|
|
|
680
680
|
Requires-Dist: nbformat<6.0.0,>=5.10.4
|
|
681
681
|
Requires-Dist: pyproj<4.0.0,>=3.7.0
|
|
682
682
|
Requires-Dist: notebook<8.0.0,>=7.3.2
|
|
683
|
-
Requires-Dist: boto3
|
|
683
|
+
Requires-Dist: boto3>=1.40.0
|
|
684
684
|
Requires-Dist: geemap
|
|
685
|
-
Requires-Dist: uv
|
|
686
685
|
Requires-Dist: seaborn
|
|
687
686
|
Provides-Extra: dev
|
|
688
687
|
Requires-Dist: pytest; extra == "dev"
|
|
@@ -712,7 +711,7 @@ To address these issues, we developed Flood Inundation Mapping Prediction Evalua
|
|
|
712
711
|
|
|
713
712
|
|
|
714
713
|
|
|
715
|
-
###
|
|
714
|
+
### Repository structure
|
|
716
715
|
<hr style="border: 1px solid black; margin: 0;">
|
|
717
716
|
|
|
718
717
|
The architecture of the ```fimeval``` integrates different modules to which helps the automation of flood evaluation. All those modules codes are in source (```src``` ) folder.
|
|
@@ -744,7 +743,7 @@ The graphical representation of fimeval pipeline can be summarized as follows in
|
|
|
744
743
|
</div>
|
|
745
744
|
Figure 1: Flowchart showing the entire framework pipeline.
|
|
746
745
|
|
|
747
|
-
###
|
|
746
|
+
### Framework Installation and Usage
|
|
748
747
|
<hr style="border: 1px solid black; margin: 0;">
|
|
749
748
|
|
|
750
749
|
This framework is published as a python package in PyPI (https://pypi.org/project/fimeval/).For directly using the package, the user can install this package using python package installer 'pip' and can import on their workflows:
|
|
@@ -765,7 +764,9 @@ import fimeval as fp
|
|
|
765
764
|
```
|
|
766
765
|
**Note: The framework usage provided in detailed in [Here (docs/fimeval_usage.ipynb)](./docs/fimeval_usage.ipynb)**. It has detail documentation from installation, setup, running- until results.
|
|
767
766
|
|
|
768
|
-
|
|
767
|
+
### Main Directory Structure
|
|
768
|
+
<hr style="border: 1px solid black; margin: 0;">
|
|
769
|
+
|
|
769
770
|
The main directory contains the primary folder for storing the case studies. If there is one case study, user can directly pass the case study folder as the main directory. Each case study folder must include a Benchmark FIM (B-FIM) with a 'benchmark' word assigned within the B-FIM file and different Model Predicted FIM (M-FIM)
|
|
770
771
|
in tif format.
|
|
771
772
|
For mutilple case studies,the main directory could be structure in such a way that contain the seperate folders for individual case studies.For example, if a user has two case studies they should create two seperate folders as shown in the Figure below.
|
|
@@ -786,7 +787,7 @@ If user have more precise PWB, they can input their own PWB boundary as .shp and
|
|
|
786
787
|
```bash
|
|
787
788
|
PWD_dir = Path('./path/to/PWB/vector/file')
|
|
788
789
|
```
|
|
789
|
-
####
|
|
790
|
+
#### Methods for Extracting Flood Extents
|
|
790
791
|
1. **```smallest_extent```**
|
|
791
792
|
The framework will first check all the raster extents (benchmark and FIMs). It will then determine the smallest among all the rasters. A shape file will then be created to mask all the rasters.
|
|
792
793
|
|
|
@@ -816,7 +817,7 @@ method_name = "AOI"
|
|
|
816
817
|
AOI = Path('./path/to/AOI/vectorfile')
|
|
817
818
|
```
|
|
818
819
|
|
|
819
|
-
####
|
|
820
|
+
#### Executing the Evaluation framework
|
|
820
821
|
The complete description of different modules, what they are meant for, arguments taken to run that module and what will be the end results from each is described in below **Table 1**. If user import `fimeval` framework as `fp` into workflows, they can call each module mentioned in **Table 1** as `fp.Module_Name(args)`. Here arguments in italic represents the optional field, depending upon the user requirement.
|
|
821
822
|
|
|
822
823
|
Table 1: Modules in `fimeval` are in order of execution.
|
|
@@ -834,8 +835,9 @@ Table 1: Modules in `fimeval` are in order of execution.
|
|
|
834
835
|
Figure 4: Combined raw output from framework for different two method. First row (subplot a and b) and second row (subplot c and d) is contingency maps and evaluation metrics of FIM derived using `PrintContingencyMaP` and `PlotEvaluationMetrics` module. Third row (subplot e and f) is the output after processing and calculating of evaluation with BF by unsing `EvaluateWithBuildingFoorprint` module.
|
|
835
836
|
|
|
836
837
|
## Installation Instructions
|
|
838
|
+
<hr style="border: 1px solid black; margin: 0;">
|
|
837
839
|
|
|
838
|
-
|
|
840
|
+
#### 1. Prerequisites
|
|
839
841
|
|
|
840
842
|
Before installing `fimeval`, ensure the following software are installed:
|
|
841
843
|
|
|
@@ -849,13 +851,13 @@ Before installing `fimeval`, ensure the following software are installed:
|
|
|
849
851
|
|
|
850
852
|
---
|
|
851
853
|
|
|
852
|
-
|
|
854
|
+
#### 2. Install Anaconda
|
|
853
855
|
|
|
854
856
|
If Anaconda is not installed, download and install it from the [official website](https://www.anaconda.com/products/distribution).
|
|
855
857
|
|
|
856
858
|
---
|
|
857
859
|
|
|
858
|
-
|
|
860
|
+
#### 3. Set Up Virtual Environment
|
|
859
861
|
|
|
860
862
|
#### For Mac Users
|
|
861
863
|
|
|
@@ -873,24 +875,40 @@ uv pip install fimeval
|
|
|
873
875
|
```
|
|
874
876
|
|
|
875
877
|
### Google Colab Version
|
|
878
|
+
<hr style="border: 1px solid black; margin: 0;">
|
|
876
879
|
|
|
877
880
|
To use fimeval in Google Colab, follow the steps below:
|
|
878
881
|
|
|
879
|
-
|
|
882
|
+
#### Upload Files
|
|
880
883
|
Upload all necessary input files (e.g., raster, shapefiles, model outputs) to your Google Drive.
|
|
881
|
-
|
|
884
|
+
#### Open Google Colab
|
|
882
885
|
Go to Google Colab and sign in with a valid Google account.
|
|
883
|
-
|
|
886
|
+
#### Mount Google Drive
|
|
884
887
|
In a new Colab notebook, mount the Google Drive
|
|
885
888
|
```bash
|
|
886
889
|
pip install fimeval
|
|
887
890
|
```
|
|
888
|
-
###
|
|
891
|
+
### Citing our work
|
|
892
|
+
<hr style="border: 1px solid black; margin: 0;">
|
|
893
|
+
|
|
894
|
+
- Devi, D., Dipsikha, Supath Dhital, Dinuke Munasinghe, Sagy Cohen, Anupal Baruah, Yixian Chen, Dan Tian, & Carson Pruitt (2025).
|
|
895
|
+
*A framework for the evaluation of flood inundation predictions over extensive benchmark databases.*
|
|
896
|
+
**Environmental Modelling & Software**, 106786.
|
|
897
|
+
https://doi.org/10.1016/j.envsoft.2025.106786
|
|
898
|
+
|
|
899
|
+
- Cohen, S., Baruah, A., Nikrou, P., Tian, D., & Liu, H. (2025).
|
|
900
|
+
*Toward robust evaluations of flood inundation predictions using remote sensing–derived benchmark maps.*
|
|
901
|
+
**Water Resources Research**, 61(8).
|
|
902
|
+
https://doi.org/10.1029/2024WR039574
|
|
903
|
+
|
|
904
|
+
### Acknowledgements
|
|
905
|
+
<hr style="border: 1px solid black; margin: 0;">
|
|
906
|
+
|
|
889
907
|
| | |
|
|
890
908
|
| --- | --- |
|
|
891
909
|
|  | Funding for this project was provided by the National Oceanic & Atmospheric Administration (NOAA), awarded to the Cooperative Institute for Research to Operations in Hydrology (CIROH) through the NOAA Cooperative Agreement with The University of Alabama.
|
|
892
910
|
|
|
893
|
-
###
|
|
911
|
+
### For More Information
|
|
894
912
|
Contact <a href="https://geography.ua.edu/people/sagy-cohen/" target="_blank">Sagy Cohen</a>
|
|
895
913
|
(sagy.cohen@ua.edu)
|
|
896
914
|
Dipsikha Devi, (ddevi@ua.edu)
|
|
@@ -21,7 +21,7 @@ To address these issues, we developed Flood Inundation Mapping Prediction Evalua
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
###
|
|
24
|
+
### Repository structure
|
|
25
25
|
<hr style="border: 1px solid black; margin: 0;">
|
|
26
26
|
|
|
27
27
|
The architecture of the ```fimeval``` integrates different modules to which helps the automation of flood evaluation. All those modules codes are in source (```src``` ) folder.
|
|
@@ -53,7 +53,7 @@ The graphical representation of fimeval pipeline can be summarized as follows in
|
|
|
53
53
|
</div>
|
|
54
54
|
Figure 1: Flowchart showing the entire framework pipeline.
|
|
55
55
|
|
|
56
|
-
###
|
|
56
|
+
### Framework Installation and Usage
|
|
57
57
|
<hr style="border: 1px solid black; margin: 0;">
|
|
58
58
|
|
|
59
59
|
This framework is published as a python package in PyPI (https://pypi.org/project/fimeval/).For directly using the package, the user can install this package using python package installer 'pip' and can import on their workflows:
|
|
@@ -74,7 +74,9 @@ import fimeval as fp
|
|
|
74
74
|
```
|
|
75
75
|
**Note: The framework usage provided in detailed in [Here (docs/fimeval_usage.ipynb)](./docs/fimeval_usage.ipynb)**. It has detail documentation from installation, setup, running- until results.
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
### Main Directory Structure
|
|
78
|
+
<hr style="border: 1px solid black; margin: 0;">
|
|
79
|
+
|
|
78
80
|
The main directory contains the primary folder for storing the case studies. If there is one case study, user can directly pass the case study folder as the main directory. Each case study folder must include a Benchmark FIM (B-FIM) with a 'benchmark' word assigned within the B-FIM file and different Model Predicted FIM (M-FIM)
|
|
79
81
|
in tif format.
|
|
80
82
|
For mutilple case studies,the main directory could be structure in such a way that contain the seperate folders for individual case studies.For example, if a user has two case studies they should create two seperate folders as shown in the Figure below.
|
|
@@ -95,7 +97,7 @@ If user have more precise PWB, they can input their own PWB boundary as .shp and
|
|
|
95
97
|
```bash
|
|
96
98
|
PWD_dir = Path('./path/to/PWB/vector/file')
|
|
97
99
|
```
|
|
98
|
-
####
|
|
100
|
+
#### Methods for Extracting Flood Extents
|
|
99
101
|
1. **```smallest_extent```**
|
|
100
102
|
The framework will first check all the raster extents (benchmark and FIMs). It will then determine the smallest among all the rasters. A shape file will then be created to mask all the rasters.
|
|
101
103
|
|
|
@@ -125,7 +127,7 @@ method_name = "AOI"
|
|
|
125
127
|
AOI = Path('./path/to/AOI/vectorfile')
|
|
126
128
|
```
|
|
127
129
|
|
|
128
|
-
####
|
|
130
|
+
#### Executing the Evaluation framework
|
|
129
131
|
The complete description of different modules, what they are meant for, arguments taken to run that module and what will be the end results from each is described in below **Table 1**. If user import `fimeval` framework as `fp` into workflows, they can call each module mentioned in **Table 1** as `fp.Module_Name(args)`. Here arguments in italic represents the optional field, depending upon the user requirement.
|
|
130
132
|
|
|
131
133
|
Table 1: Modules in `fimeval` are in order of execution.
|
|
@@ -143,8 +145,9 @@ Table 1: Modules in `fimeval` are in order of execution.
|
|
|
143
145
|
Figure 4: Combined raw output from framework for different two method. First row (subplot a and b) and second row (subplot c and d) is contingency maps and evaluation metrics of FIM derived using `PrintContingencyMaP` and `PlotEvaluationMetrics` module. Third row (subplot e and f) is the output after processing and calculating of evaluation with BF by unsing `EvaluateWithBuildingFoorprint` module.
|
|
144
146
|
|
|
145
147
|
## Installation Instructions
|
|
148
|
+
<hr style="border: 1px solid black; margin: 0;">
|
|
146
149
|
|
|
147
|
-
|
|
150
|
+
#### 1. Prerequisites
|
|
148
151
|
|
|
149
152
|
Before installing `fimeval`, ensure the following software are installed:
|
|
150
153
|
|
|
@@ -158,13 +161,13 @@ Before installing `fimeval`, ensure the following software are installed:
|
|
|
158
161
|
|
|
159
162
|
---
|
|
160
163
|
|
|
161
|
-
|
|
164
|
+
#### 2. Install Anaconda
|
|
162
165
|
|
|
163
166
|
If Anaconda is not installed, download and install it from the [official website](https://www.anaconda.com/products/distribution).
|
|
164
167
|
|
|
165
168
|
---
|
|
166
169
|
|
|
167
|
-
|
|
170
|
+
#### 3. Set Up Virtual Environment
|
|
168
171
|
|
|
169
172
|
#### For Mac Users
|
|
170
173
|
|
|
@@ -182,24 +185,40 @@ uv pip install fimeval
|
|
|
182
185
|
```
|
|
183
186
|
|
|
184
187
|
### Google Colab Version
|
|
188
|
+
<hr style="border: 1px solid black; margin: 0;">
|
|
185
189
|
|
|
186
190
|
To use fimeval in Google Colab, follow the steps below:
|
|
187
191
|
|
|
188
|
-
|
|
192
|
+
#### Upload Files
|
|
189
193
|
Upload all necessary input files (e.g., raster, shapefiles, model outputs) to your Google Drive.
|
|
190
|
-
|
|
194
|
+
#### Open Google Colab
|
|
191
195
|
Go to Google Colab and sign in with a valid Google account.
|
|
192
|
-
|
|
196
|
+
#### Mount Google Drive
|
|
193
197
|
In a new Colab notebook, mount the Google Drive
|
|
194
198
|
```bash
|
|
195
199
|
pip install fimeval
|
|
196
200
|
```
|
|
197
|
-
###
|
|
201
|
+
### Citing our work
|
|
202
|
+
<hr style="border: 1px solid black; margin: 0;">
|
|
203
|
+
|
|
204
|
+
- Devi, D., Dipsikha, Supath Dhital, Dinuke Munasinghe, Sagy Cohen, Anupal Baruah, Yixian Chen, Dan Tian, & Carson Pruitt (2025).
|
|
205
|
+
*A framework for the evaluation of flood inundation predictions over extensive benchmark databases.*
|
|
206
|
+
**Environmental Modelling & Software**, 106786.
|
|
207
|
+
https://doi.org/10.1016/j.envsoft.2025.106786
|
|
208
|
+
|
|
209
|
+
- Cohen, S., Baruah, A., Nikrou, P., Tian, D., & Liu, H. (2025).
|
|
210
|
+
*Toward robust evaluations of flood inundation predictions using remote sensing–derived benchmark maps.*
|
|
211
|
+
**Water Resources Research**, 61(8).
|
|
212
|
+
https://doi.org/10.1029/2024WR039574
|
|
213
|
+
|
|
214
|
+
### Acknowledgements
|
|
215
|
+
<hr style="border: 1px solid black; margin: 0;">
|
|
216
|
+
|
|
198
217
|
| | |
|
|
199
218
|
| --- | --- |
|
|
200
219
|
|  | Funding for this project was provided by the National Oceanic & Atmospheric Administration (NOAA), awarded to the Cooperative Institute for Research to Operations in Hydrology (CIROH) through the NOAA Cooperative Agreement with The University of Alabama.
|
|
201
220
|
|
|
202
|
-
###
|
|
221
|
+
### For More Information
|
|
203
222
|
Contact <a href="https://geography.ua.edu/people/sagy-cohen/" target="_blank">Sagy Cohen</a>
|
|
204
223
|
(sagy.cohen@ua.edu)
|
|
205
224
|
Dipsikha Devi, (ddevi@ua.edu)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "fimeval"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.57"
|
|
4
4
|
description = "A Framework for Automatic Evaluation of Flood Inundation Mapping Predictions Evaluation"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
@@ -28,9 +28,8 @@ dependencies = [
|
|
|
28
28
|
"nbformat>=5.10.4,<6.0.0",
|
|
29
29
|
"pyproj>=3.7.0,<4.0.0",
|
|
30
30
|
"notebook>=7.3.2,<8.0.0",
|
|
31
|
-
"boto3>=1.
|
|
31
|
+
"boto3>=1.40.0",
|
|
32
32
|
"geemap",
|
|
33
|
-
"uv",
|
|
34
33
|
"seaborn"
|
|
35
34
|
]
|
|
36
35
|
|