|
1 | | -# Bi-variate mapping |
| 1 | +# Bivariate mapping of Risk and Poverty |
2 | 2 |
|
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. |
4 | 4 |
|
5 | 5 | ## Input data management |
6 | 6 |
|
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). |
28 | 8 |
|
29 | 9 | ## Running the analysis |
30 | 10 |
|
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 |
40 | 13 | --- |
41 | 14 | width: 100% |
42 | 15 | align: center |
43 | 16 | --- |
44 | 17 | ``` |
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 |
47 | 20 | --- |
48 | 21 | width: 100% |
49 | 22 | align: center |
50 | 23 | --- |
51 | 24 | ``` |
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. |
62 | 25 |
|
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 |
64 | 32 | --- |
65 | 33 | width: 100% |
66 | 34 | align: center |
|
0 commit comments