|
| 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 | +``` |
0 commit comments