|
11 | 11 |
|
12 | 12 | Physical climate risk calculation engine. |
13 | 13 |
|
14 | | -<img src="docs/images/OS-Climate-Logo.png" alt="drawing" width="150"/> |
| 14 | + |
15 | 15 |
|
16 | 16 | ## About physrisk |
17 | 17 |
|
18 | | -An [OS-Climate](https://os-climate.org) project, physrisk is a library for assessing the physical effects of climate change and thereby the potential benefit of measures to improve resilience. |
| 18 | +An [OS-Climate](https://os-climate.org) project, physrisk is a library for |
| 19 | +assessing the physical effects of climate change and thereby the potential |
| 20 | +benefit of measures to improve resilience. |
19 | 21 |
|
20 | | -An introduction and methodology is available [here](https://github.com/os-climate/physrisk/blob/main/methodology/PhysicalRiskMethodology.pdf). |
| 22 | +An introduction and methodology is available in the |
| 23 | +[Physical Risk Methodology document](https://github.com/os-climate/physrisk/blob/main/methodology/PhysicalRiskMethodology.pdf). |
21 | 24 |
|
22 | | -Physrisk is primarily designed to run 'bottom-up' calculations that model the impact of climate hazards on large numbers of individual assets (including natural) and operations. These calculations can be used to assess financial risks or socio-economic impacts. To do this physrisk collects: |
| 25 | +Physrisk is primarily designed to run 'bottom-up' calculations that model |
| 26 | +the impact of climate hazards on large numbers of individual assets |
| 27 | +(including natural) and operations. These calculations can be used to assess |
| 28 | +financial risks or socio-economic impacts. To do this physrisk collects: |
23 | 29 |
|
24 | 30 | - hazard indicators and |
25 | 31 | - models of vulnerability of assets/operations to hazards. |
26 | 32 |
|
27 | | -Hazard indicators are on-boarded from public resources or inferred from climate projections, e.g. from CMIP or CORDEX data sets. Indicators are created from code in the |
28 | | -[hazard repo](https://github.com/os-climate/hazard) to make calculations as transparent as possible. |
| 33 | +Hazard indicators are on-boarded from public resources or inferred from |
| 34 | +climate projections, e.g. from CMIP or CORDEX data sets. Indicators are |
| 35 | +created from code in the |
| 36 | +[hazard repository](https://github.com/os-climate/hazard) to make |
| 37 | +calculations as transparent as possible. |
29 | 38 |
|
30 | | -Physrisk is also designed to be a hosted, e.g. to provide on-demand calculations. [physrisk-api](https://github.com/os-climate/physrisk-api) and [physrisk-ui](https://github.com/os-climate/physrisk-ui) provide an example API and user interface. A [development version of the UI](https://physrisk-ui-physrisk.apps.odh-cl2.apps.os-climate.org) is hosted by OS-Climate. |
| 39 | +Physrisk is also designed to be a hosted, e.g. to provide on-demand |
| 40 | +calculations. |
| 41 | +[physrisk-api](https://github.com/os-climate/physrisk-api) and |
| 42 | +[physrisk-ui](https://github.com/os-climate/physrisk-ui) provide an example |
| 43 | +API and user interface. A |
| 44 | +[development version of the UI](https://physrisk-ui-physrisk.apps.odh-cl2.apps.os-climate.org) |
| 45 | +is hosted by OS-Climate. |
31 | 46 |
|
32 | 47 | ## Using the library |
33 | 48 |
|
34 | | -The library can be run locally, although access to the hazard indicator data is needed. The library is installed via: |
| 49 | +The library can be run locally, although access to the hazard indicator data |
| 50 | +is needed. The library is installed via: |
35 | 51 |
|
36 | | -``` |
| 52 | +```bash |
37 | 53 | pip install physrisk-lib |
38 | 54 | ``` |
39 | 55 |
|
40 | | -Hazard indicator data is freely available. Members of the project are able to access OS-Climate S3 buckets. Credentials are available [here](https://console-openshift-console.apps.odh-cl2.apps.os-climate.org/k8s/ns/physrisk/secrets/physrisk-s3-keys). Information about the project is available via the [community-hub](https://github.com/os-climate/OS-Climate-Community-Hub). Non-members are able to download or copy hazard indicator data. |
| 56 | +Hazard indicator data is freely available. Members of the project are able to |
| 57 | +access OS-Climate S3 buckets. Credentials are available from the |
| 58 | +[OS-Climate S3 keys](https://console-openshift-console.apps.odh-cl2.apps.os-climate.org/k8s/ns/physrisk/secrets/physrisk-s3-keys). |
| 59 | +Information about the project is available via the |
| 60 | +[community-hub](https://github.com/os-climate/OS-Climate-Community-Hub). |
| 61 | +Non-members are able to download or copy hazard indicator data. |
41 | 62 |
|
42 | | -Hazard indicator data can be downloaded or copied from the 'os-climate-public-data' bucket. A list of the keys to copy is available from |
| 63 | +Hazard indicator data can be downloaded or copied from the |
| 64 | +'os-climate-public-data' bucket. A list of the keys to copy is available from |
43 | 65 | <https://os-climate-public-data.s3.amazonaws.com/hazard/keys.txt> |
44 | 66 |
|
45 | | -An inventory of the hazard data is maintained [here](https://github.com/os-climate/hazard/blob/main/src/inventories/hazard/inventory.json) (this is used by the physrisk library itself). The [UI hazard viewer](https://physrisk-ui-physrisk.apps.odh-cl2.apps.os-climate.org) is a convenient way to browse data sets. |
| 67 | +An inventory of the hazard data is maintained in the |
| 68 | +[hazard inventory](https://github.com/os-climate/hazard/blob/main/src/inventories/hazard/inventory.json) |
| 69 | +(this is used by the physrisk library itself). The |
| 70 | +[UI hazard viewer](https://physrisk-ui-physrisk.apps.odh-cl2.apps.os-climate.org) |
| 71 | +is a convenient way to browse data sets. |
46 | 72 |
|
47 | | -Access to hazard event data requires setting of environment variables specifying the S3 Bucket, for example: |
| 73 | +Access to hazard event data requires setting of environment variables |
| 74 | +specifying the S3 Bucket, for example: |
48 | 75 |
|
49 | | -``` |
| 76 | +```bash |
50 | 77 | OSC_S3_BUCKET=physrisk-hazard-indicators |
51 | 78 | OSC_S3_ACCESS_KEY=********** |
52 | 79 | OSC_S3_SECRET_KEY=********** |
53 | 80 | ``` |
54 | 81 |
|
55 | | -For use in a Jupyter environment, it is recommended to put the environment variables in a credentials.env file and do, for example: |
| 82 | +For use in a Jupyter environment, it is recommended to put the environment |
| 83 | +variables in a credentials.env file and do, for example: |
56 | 84 |
|
57 | | -``` |
| 85 | +```python |
58 | 86 | from dotenv import load_dotenv |
59 | 87 | load_dotenv(dotenv_path=dotenv_path, override=True) |
60 | 88 | ``` |
0 commit comments