You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pyproject.toml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
[project]
2
2
name = "fimserve"
3
-
version = "0.1.92"
3
+
version = "0.1.93"
4
4
description = "Framework which is developed with the purpose of quickly generating Flood Inundation Maps (FIM) for emergency response and risk assessment. It is developed under Surface Dynamics Modeling Lab (SDML)."
Copy file name to clipboardExpand all lines: src/fimserve/fimevaluation/run_fimeval.py
-8Lines changed: 0 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -28,8 +28,6 @@ class run_evaluation:
28
28
target_crs : Optional[str]; CRS to reproject FIM rasters to (e.g., "EPSG:3857").
29
29
target_resolution : Optional[float]; Output raster resolution (units depend on CRS).
30
30
method_name : Optional[str]; Name of the evaluation method to evaluate. Defaults to "AOI".
31
-
countryISO : Optional[str]; ISO-3 country code used only when downloading footprints from GEE.
32
-
geeprojectID : Optional[str]; Google Earth Engine project ID for footprint download (if no local file provided).
33
31
print_graphs : bool; If True, generates and saves contingency maps and evaluation metric plots.
34
32
Evalwith_BF : bool; If True, performs building-footprint-based exposure evaluation.
35
33
"""
@@ -43,8 +41,6 @@ def __init__(
43
41
target_crs: Optional[str] =None,
44
42
target_resolution: Optional[float] =None,
45
43
method_name: Optional[str] =None, #By default it will use 'AOI' which is downloaded but incase user want to explore different method they can pass here
46
-
countryISO: Optional[str] =None,
47
-
geeprojectID: Optional[str] =None,
48
44
print_graphs: bool=False,
49
45
Evalwith_BF: bool=False, #If user want to run evaluation with building footprint
Copy file name to clipboardExpand all lines: tests/test_evalutionhandfim.py
+3-5Lines changed: 3 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
deftest_bm_fimlookup():
7
7
out=fm.fim_lookup(
8
8
HUCID="10240011",
9
-
# date_input="2019-06-15", # If user is more specific then they can pass date (with hour if known) along with HUC8
9
+
date_input="2019-06-15", # If user is more specific then they can pass date (with hour if known) along with HUC8
10
10
# start_date="2017-06-20", #If user is not sure of the exact date then they can pass a range of dates
11
11
# end_date="2024-06-25",
12
12
run_handfim=True, #It will look for the owp hand fim for the mentioned HUC8 and date, if not found it will download and generate the owp hand fim; default is False
@@ -19,16 +19,14 @@ def test_bm_fimlookup():
19
19
# After finalizing the benchmark FIM data user can run evaluation
20
20
deftest_run_fimeval():
21
21
fm.run_evaluation(
22
-
Main_dir="./FIMserv/test", # If user uses their own input directory where FIM outputs; basically out_dir in fim_lookup is Main_dir here
22
+
Main_dir="../test_FIMeval", # If user uses their own input directory where FIM outputs; basically out_dir in fim_lookup is Main_dir here
23
23
output_dir=None, # Folder where evaluation results will be saved
24
24
shapefile_path=None, # AOI shapefile or vector file used to clip data during evaluation. Internally uses the geopackage within folder.
25
25
PWB_dir=None, # Directory containing the Permanent Water Bodies.
26
-
building_footprint="./AOI/building_footprint.gpkg", # Local building footprint dataset (GeoJSON/Shapefile) for building-level exposure evaluation.
26
+
building_footprint=None, # Local building footprint dataset (GeoJSON/Shapefile) for building-level exposure evaluation., else it will use the arcgis online hosted building footprint using REST API
27
27
target_crs=None, # CRS to reproject FIM rasters to (e.g., "EPSG:3857").
28
28
target_resolution=None, # Output raster resolution (units depend on CRS).
29
29
method_name=None, # By default it will use 'AOI'; to explore different methods pass here
30
-
countryISO=None, # ISO-3 country code used only when downloading footprints from GEE.
31
-
geeprojectID=None, # Google Earth Engine project ID for footprint download (if no local file provided).
32
30
print_graphs=True, # If True, generates and saves contingency maps and evaluation metric plots.
33
31
Evalwith_BF=True, # If True, run evaluation with building footprint
0 commit comments