Skip to content

Commit f0621f3

Browse files
committed
Updates
1 parent b7d12a1 commit f0621f3

File tree

6 files changed

+15
-47
lines changed

6 files changed

+15
-47
lines changed

docs/images/GUI_BV.jpg

511 KB
Loading

docs/images/GUI_BV2.jpg

222 KB
Loading

docs/images/GUI_BV3.jpg

335 KB
Loading

docs/run_bv.md

Lines changed: 13 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,34 @@
1-
# Bi-variate mapping
1+
# Bivariate mapping of Risk and Poverty
22

3-
WIP
3+
This tool calculates population-weighted wealth index scores and combines those with hazard index scores into a bivariate choropleth map. The scores are calculated by quantile ranking.
44

55
## Input data management
66

7-
This script is meant for custom input from the user on all three risk components. It can still fetch national and sub-national boundaries from the [WB ArcGIS repository](https://services.arcgis.com/iQ1dY19aHwbSDYIF/ArcGIS/rest/services/World_Bank_Global_Administrative_Divisions_VIEW/FeatureServer).
8-
9-
The [**exposure data**](global-exposure.md) and the [**hazard data**](global-hazard.md) selected by the user need to be manually downloaded and placed in the respecive folders; in case of tiled data, use the [pre-processing script](https://github.com/GFDRR/CCDR-tools/blob/main/tools/code/F3/) to merge those into country-sized data. Each dataset is expected as a raster file (`.tif`).<br>
10-
11-
Exampe:
12-
13-
```
14-
Work dir/
15-
- GUI.ipynb Place the notebooks and related files in the main work directory
16-
- common.py
17-
- ...
18-
- Data/
19-
- HZD/country_hazard.tif Hazard layers
20-
- EXP/country_exposure.tif Exposure layers
21-
- RSK/ Output directory
22-
```
23-
24-
```{caution}
25-
All spatial data must use the same CRS: `EPSG 4326` (WGS 84)
26-
```
27-
<hr>
7+
Input data should consist of a GeoPackage file with administrative boundaries containing fields for: Unit ID, Unit NAME, Unit POP, wealth index (e.g. RWI), and hazard score (e.g., EAI).
288

299
## Running the analysis
3010

31-
- Select the country first. Sub-national boundaries for level 1 and 2 can be fetched automatically. Else, you can load custom boundaries as geopackage (WGS 84). You will need to specify the field to be used to run zonal statistics, and related label name (e.g. ADM3_PCODE and ADM3_EN).
32-
```{figure} images/GUI_F3_country.png
33-
---
34-
width: 100%
35-
align: center
36-
---
37-
```
38-
- Move to Hazard tab: select the hazard process, the minimum hazard intensity threshold, the time period and climate scenario. Select one or more Return Periods (CTRL+Click / drag mouse).
39-
```{figure} images/GUI_F3_hzd.png
11+
- Data tab: select the vector file containing all the required input at boundary level. Select the appropriate field for each attribute - they should be found automatically, but check they are correct.
12+
```{figure} images/GUI_BV.jpg
4013
---
4114
width: 100%
4215
align: center
4316
---
4417
```
45-
- Select one or more Exposure categories (CTRL+Click / drag mouse). You can select a custom exposure layer for each selected category (.tif raster, WGS 84).
46-
```{figure} images/GUI_F3_exp.png
18+
- Bivatiate tab: select the number of classes to consider for each index, the bivariate color palette and the maximum exposure to hazard threshold (anything above this value will be considered on the top class). Use the **normalisation** checkbox to normalise the wealth index using population count from the input dataset. This is suggested when using unweighted indices.
19+
```{figure} images/GUI_BV2.jpg
4720
---
4821
width: 100%
4922
align: center
5023
---
5124
```
52-
- Select the approach to use for the analysis:
53-
- When using "function", the best impact function is selected for the selected country and exposure categories.
54-
- When using "classes", hazard intensity thresholds must be specified by the user.
55-
```{figure} images/GUI_F3_vln.png
56-
---
57-
width: 100%
58-
align: center
59-
---
60-
```
61-
- Check "Preview results" to generate map and charts output in the GUI.
6225
63-
```{figure} images/GUI_F3_rsk.png
26+
- Check "Preview results" to generate map and charts output in the GUI, or "Export Maps as PNG" to have those saved in the output folder. "Export data" will create a copy of the input data with added bivariate combination scores.
27+
28+
- Click the red button to start the processing.
29+
30+
31+
```{figure} images/GUI_BV3.jpg
6432
---
6533
width: 100%
6634
align: center

docs/run_ch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This script is meant for custom input from the user on all three risk components
66

77
The [**exposure data**](global-exposure.md) and the [**hazard data**](global-hazard.md) selected by the user need to be manually downloaded and placed in the respecive folders; in case of tiled data, use the [pre-processing script](https://github.com/GFDRR/CCDR-tools/blob/main/tools/code/F3/) to merge those into country-sized data. Each dataset is expected as a raster file (`.tif`).<br>
88

9-
Exampe:
9+
Example:
1010

1111
```
1212
Work dir/

docs/utility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Additional tools to help collect, view and process risk data.
55
## Merge tiles
66
Large raster datasets often comes as a collection of regular tiles.
77
In order to run the raster analysis offered in our tools, they often need to be merged into one file.
8-
The function is provided as [**jupyter notebook**](https://github.com/GFDRR/CCDR-tools/tree/main/tools/code/F3) you can download and run on your python environment.
8+
The function is provided as [**jupyter notebook**](https://github.com/GFDRR/CCDR-tools/tree/main/tools/code/F3) you can download and run on your python environment. Please refer to the main codebase setup.
99

1010
(fetch_wsf19)=
1111
## Fetch WSF 2019 and resample as 100 m

0 commit comments

Comments
 (0)