Skip to content

Commit 06e4a5d

Browse files
committed
Fixes and updates
1 parent 2604612 commit 06e4a5d

File tree

4 files changed

+76
-9
lines changed

4 files changed

+76
-9
lines changed

docs/_toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ parts:
2828
- file: docs/run_fl
2929
- file: docs/run_tc
3030
- file: docs/run_ci
31+
- file: docs/run_ch
3132
- file: docs/validation
3233
- file: docs/risk-poverty
3334
sections:

docs/risk-poverty.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ Poverty maps are combined with EAE/EAI maps to generate bi-variate maps. These m
7474

7575
Classification of total exposure on an administrative unit is done both on the basis of absolute numbers or ratios. For instance, as severe fluvial flooding and landslides represent very localized threats, the classification is based on total counts. In comparison, heat waves, droughts and air pollution are more widespread across geographic units and therefore classified into groups based on proportions.
7676

77-
We offer a python GUI to create bi-variate maps starting from risk and poverty data.
78-
Download the [**Bivariate Maps Script**](https://github.com/GFDRR/CCDR-tools/blob/main/tools/code/GUI_bivariate-maps.ipynb) or preview it on the next page.
79-
80-
```{figure} images/bivariate_GUI.png
81-
---
82-
align: center
83-
---
84-
```
77+
We offer a python script for creating [**Bivariate Maps**](https://github.com/GFDRR/CCDR-tools/blob/main/tools/code/) starting from risk and poverty data.
78+
Please refer to the main codebase installation.
79+
80+
```{figure} images/bivariate_GUI.png
81+
---
82+
align: center
83+
---
84+
```

docs/run_ch.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Custom Hazard Analytics
2+
3+
## Input data management
4+
5+
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).
6+
7+
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>
8+
9+
Exampe:
10+
11+
```
12+
Work dir/
13+
- GUI.ipynb Place the notebooks and related files in the main work directory
14+
- common.py
15+
- ...
16+
- Data/
17+
- HZD/country_hazard.tif Hazard layers
18+
- EXP/country_exposure.tif Exposure layers
19+
- RSK/ Output directory
20+
```
21+
22+
```{caution}
23+
All spatial data must use the same CRS: `EPSG 4326` (WGS 84)
24+
```
25+
<hr>
26+
27+
## Running the analysis
28+
29+
- 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).
30+
```{figure} images/GUI_F3_country.png
31+
---
32+
width: 100%
33+
align: center
34+
---
35+
```
36+
- 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).
37+
```{figure} images/GUI_F3_hzd.png
38+
---
39+
width: 100%
40+
align: center
41+
---
42+
```
43+
- 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).
44+
```{figure} images/GUI_F3_exp.png
45+
---
46+
width: 100%
47+
align: center
48+
---
49+
```
50+
- Select the approach to use for the analysis:
51+
- When using "function", the best impact function is selected for the selected country and exposure categories.
52+
- When using "classes", hazard intensity thresholds must be specified by the user.
53+
```{figure} images/GUI_F3_vln.png
54+
---
55+
width: 100%
56+
align: center
57+
---
58+
```
59+
- Check "Preview results" to generate map and charts output in the GUI.
60+
61+
```{figure} images/GUI_F3_rsk.png
62+
---
63+
width: 100%
64+
align: center
65+
---
66+
```

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**](../tools/utility/merge_tiles/Merge_tiles.ipynb) 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.
99

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

0 commit comments

Comments
 (0)