Skip to content

Commit f33d72a

Browse files
Added the FIMbench documentation (#13)
1 parent 17b690a commit f33d72a

4 files changed

Lines changed: 356 additions & 17 deletions

File tree

README.md

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To address these issues, we developed Flood Inundation Mapping Prediction Evalua
2121

2222

2323

24-
### **Repository structure**
24+
### Repository structure
2525
<hr style="border: 1px solid black; margin: 0;">
2626

2727
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
5353
</div>
5454
Figure 1: Flowchart showing the entire framework pipeline.
5555

56-
### **Framework Installation and Usage**
56+
### Framework Installation and Usage
5757
<hr style="border: 1px solid black; margin: 0;">
5858

5959
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
7474
```
7575
**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.
7676

77-
#### **Main Directory Structure**
77+
### Main Directory Structure
78+
<hr style="border: 1px solid black; margin: 0;">
79+
7880
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)
7981
in tif format.
8082
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
9597
```bash
9698
PWD_dir = Path('./path/to/PWB/vector/file')
9799
```
98-
#### **Methods for Extracting Flood Extents**
100+
#### Methods for Extracting Flood Extents
99101
1. **```smallest_extent```**
100102
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.
101103

@@ -125,7 +127,7 @@ method_name = "AOI"
125127
AOI = Path('./path/to/AOI/vectorfile')
126128
```
127129

128-
#### **Executing the Evaluation framework**
130+
#### Executing the Evaluation framework
129131
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.
130132

131133
Table 1: Modules in `fimeval` are in order of execution.
@@ -143,8 +145,9 @@ Table 1: Modules in `fimeval` are in order of execution.
143145
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.
144146

145147
## Installation Instructions
148+
<hr style="border: 1px solid black; margin: 0;">
146149

147-
### 1. Prerequisites
150+
#### 1. Prerequisites
148151

149152
Before installing `fimeval`, ensure the following software are installed:
150153

@@ -158,13 +161,13 @@ Before installing `fimeval`, ensure the following software are installed:
158161

159162
---
160163

161-
### 2. Install Anaconda
164+
#### 2. Install Anaconda
162165

163166
If Anaconda is not installed, download and install it from the [official website](https://www.anaconda.com/products/distribution).
164167

165168
---
166169

167-
### 3. Set Up Virtual Environment
170+
#### 3. Set Up Virtual Environment
168171

169172
#### For Mac Users
170173

@@ -182,24 +185,40 @@ uv pip install fimeval
182185
```
183186

184187
### Google Colab Version
188+
<hr style="border: 1px solid black; margin: 0;">
185189

186190
To use fimeval in Google Colab, follow the steps below:
187191

188-
## Upload Files
192+
#### Upload Files
189193
Upload all necessary input files (e.g., raster, shapefiles, model outputs) to your Google Drive.
190-
## Open Google Colab
194+
#### Open Google Colab
191195
Go to Google Colab and sign in with a valid Google account.
192-
## Mount Google Drive
196+
#### Mount Google Drive
193197
In a new Colab notebook, mount the Google Drive
194198
```bash
195199
pip install fimeval
196200
```
197-
### **Acknowledgements**
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+
198217
| | |
199218
| --- | --- |
200219
| ![alt text](https://ciroh.ua.edu/wp-content/uploads/2022/08/CIROHLogo_200x200.png) | 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.
201220

202-
### **For More Information**
221+
### For More Information
203222
Contact <a href="https://geography.ua.edu/people/sagy-cohen/" target="_blank">Sagy Cohen</a>
204223
(sagy.cohen@ua.edu)
205224
Dipsikha Devi, (ddevi@ua.edu)

0 commit comments

Comments
 (0)