Skip to main content

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)

Metadata

Release files for physrisk 0.20.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for physrisk 0.20.0
File Size Uploaded
physrisk-0.20.0.tar.gz 661.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for physrisk 0.20.0
File Interpreter ABI Platform
physrisk-0.20.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / physrisk-0.20.0.tar.gz

Download URL physrisk-0.20.0.tar.gz
Size 661.2 kB
Tags Source
SHA-256 checksum
How to use checksums
88f2d46acc8ee3f11dbfa6de215269138b508a4ec47218e0119c1ae93230dfd7
BLAKE2b-256 checksum
How to use checksums
03f1e2309f7da275d60961d11e0a9d8bf8cf5e358b4fec811555dd683f0b962b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.10.3 CPython/3.10.13

Release files / physrisk-0.20.0-py3-none-any.whl

Download URL physrisk-0.20.0-py3-none-any.whl
Size 477.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea44168ebb653dad1c0fcc4c7e7f49e16a3610b06af0d822abeed0480fbe8fd2
BLAKE2b-256 checksum
How to use checksums
c03dac0a56ef0a9aab9e9ec400a06681a2e9f280ef5abb9aba20a7b884f4f1b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.10.3 CPython/3.10.13

Release history Release notifications | RSS feed

This release

0.20.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page