Skip to main content

Physical risk calculation engine

Project description

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.23.0.tar.gz (81.0 kB view details)

Uploaded Source

Built Distribution

physrisk_lib-0.23.0-py3-none-any.whl (98.8 kB view details)

Uploaded Python 3

File details

Details for the file physrisk-lib-0.23.0.tar.gz.

File metadata

  • Download URL: physrisk-lib-0.23.0.tar.gz
  • Upload date:
  • Size: 81.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for physrisk-lib-0.23.0.tar.gz
Algorithm Hash digest
SHA256 24cbe4c67f958d19a25504b402d1e7247009514e24d1ca1f3d3ae57e37e4cdcc
MD5 a175a77e0e12863ca03e29d7d6276726
BLAKE2b-256 19e787b134454947fb7152cd05a0b4ffdb59b0b6de196bf6581f5d988cd07253

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physrisk_lib-0.23.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0dd5a1daffd6a2919e98b3e6788f06821fe20cda5aba1e9ec651cbbc321da9f9
MD5 f088d042982bf7e13e045f992bb95680
BLAKE2b-256 1d66b114abb26759717ae449ec7d9fc46a8d9085d36626211c0a842556cd0674

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