Skip to main content

OS-Climate Physical Risk Library

Project description

[!IMPORTANT] On June 26 2024, Linux Foundation announced the merger of its financial services umbrella, the Fintech Open Source Foundation (FINOS), with OS-Climate, an open source community dedicated to building data technologies, modeling, and analytic tools that will drive global capital flows into climate change mitigation and resilience; OS-Climate projects are in the process of transitioning to the FINOS governance framework; read more on finos.org/press/finos-join-forces-os-open-source-climate-sustainability-esg

Physrisk

============================== Physical climate risk calculation engine.

drawing

About physrisk

An OS-Climate project, physrisk is a library for assessing the physical effects of climate change and thereby the potential benefit of measures to improve resilience.

An introduction and methodology is available here.

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:

  • hazard indicators and
  • models of vulnerability of assets/operations to hazards.

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 hazard repo to make calculations as transparent as possible.

Physrisk is also designed to be a hosted, e.g. to provide on-demand calculations. physrisk-api and physrisk-ui provide an example API and user interface. A development version of the UI is hosted by OS-Climate.

Using the library

The library can be run locally, although access to the hazard indicator data is needed. The library is installed via:

pip install physrisk-lib

Hazard indicator data is freely available. Members of the project are able to access OS-Climate S3 buckets. Credentials are available here. Information about the project is available via the community-hub. Non-members are able to download or copy hazard indicator data.

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 https://os-climate-public-data.s3.amazonaws.com/hazard/keys.txt

An inventory of the hazard data is maintained here (this is used by the physrisk library itself). The UI hazard viewer is a convenient way to browse data sets.

Access to hazard event data requires setting of environment variables specifying the S3 Bucket, for example:

OSC_S3_BUCKET=physrisk-hazard-indicators
OSC_S3_ACCESS_KEY=**********
OSC_S3_SECRET_KEY=**********

For use in a Jupyter environment, it is recommended to put the environment variables in a credentials.env file and do, for example:

from dotenv import load_dotenv
load_dotenv(dotenv_path=dotenv_path, override=True)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

physrisk_lib-0.41.0.tar.gz (324.9 kB view details)

Uploaded Source

Built Distribution

physrisk_lib-0.41.0-py3-none-any.whl (347.0 kB view details)

Uploaded Python 3

File details

Details for the file physrisk_lib-0.41.0.tar.gz.

File metadata

  • Download URL: physrisk_lib-0.41.0.tar.gz
  • Upload date:
  • Size: 324.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for physrisk_lib-0.41.0.tar.gz
Algorithm Hash digest
SHA256 cf32b043c464bcfae5961ac37ab14172686ab8b68e7afc80ffa21f00dc8f8378
MD5 f0c14fc70c41b7eb442b9b0944b92dc2
BLAKE2b-256 ce88014d7f070607085bac08cdbed284e82406bbc21e9382580f2e42b7296d19

See more details on using hashes here.

File details

Details for the file physrisk_lib-0.41.0-py3-none-any.whl.

File metadata

File hashes

Hashes for physrisk_lib-0.41.0-py3-none-any.whl
Algorithm Hash digest
SHA256 21f5da6eca5a0e98b3bccf3d99e08a96af9a8b2a371e189806dc27b1258c69a0
MD5 dbfe780712bf018dc8ba2d2429bfe040
BLAKE2b-256 0810956a67ad94684daa02cc9d41b0c757bb959eeb81e32fa82ba0d2b557e242

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page