This document contains the code used to generate a sample flood impact assessment based on the analysis found in Oddo et al. (2018), Socioeconomic Impact Evaluation for Near Real-Time Flood Detection in the Lower Mekong River Basin. Case study based on flood event in Cambodia in September, 2019.
-
Python version 3
- This analysis uses version 3.6.7 (64 bit)
- Python environment from Anaconda Distribution
- Environment file included as
flood_env.yml
-
QGIS version 3
- This analysis uses version 3.2.2 Bonn (64 bit)
- It has been tested using QGIS compiled from OSGeo4W installer (Standalone installer may not import properly)
- Specific locations of QGIS packages must be added to Python system path (see line 13 in
1_Depth_Estimation
>Scripts
>initialize.py
):
sys.path = ['', 'C:\\OSGeo4W64\\bin\\python36.zip', 'C:\\OSGeo4W64\\apps\\Python36\\DLLs', 'C:\\OSGeo4W64\\apps\\Python36\\lib', 'C:\\OSGeo4W64\\apps\\Python36', 'C:\\OSGeo4W64\\apps\\Python36\\lib\\site-packages', 'C:\\OSGeo4W64\\apps\\qgis\\python', 'C:\\OSGeo4W64\\apps\\qgis\\python\\plugins', 'C:\\OSGeo4W64\\apps\\qgis\\bin']`
To test installation, run line 8 from 1_Depth_Estimation
> DepthExample.py
Output should read:
In [1] from Scripts.initialize import *
"Qgis import successful!"
- 1_Depth_Estimation
DepthExample.py
: Intakes flood detection (flood_poly.shp) from "Data" folder to produce estimates of inundation depths
The workflow for this procedure is illustrated using the following schematic:
- 2_Impact_Assessment
DamageExample.R
: Intakes estimated inundation depths to produce a raster of provisional flood damages
- Flood Extent Detection: Dartmouth Flood Observatory
- Digital Elevation Model (DEM): Yamadai MERIT DEM
- Land Use / Land Cover Map: Regional Land Cover Monitoring System (RCLMS)
Author: Perry Oddo
Copyright (2019)