Skip to main content

Rust Simple Climate Model (RSCM)

RSCM is a framework for building reduced-complexity climate models in Rust and Python. Models are assembled from components that are coupled through named variables, and solved on a common time axis. It is also a testbed for modularising MAGICC and reimplementing it in Rust.

Design goals

  • Fast
  • Easy to extend
  • Understandable by non-Rust developers
  • Can be driven from Python

What ships

  • A two-layer energy balance model (rscm.two_layer).
  • Example components for a one-box carbon cycle, CO2 forcing and four-box ocean heat uptake (rscm.components).
  • MAGICC7 components (rscm.magicc) for:
    • CH4, N2O and halocarbon chemistry.
    • The terrestrial carbon cycle with nitrogen limitation, ocean carbon, CO2 budget and permafrost.
    • GHG, ozone and aerosol forcing, and forcing aggregation with efficacies.
    • The upwelling-diffusion climate and sea level rise.
  • Emissions-driven and concentration-driven MAGICC models (rscm.magicc.emissions_driven, rscm.magicc.concentration_driven), with rscm.magicc.full.from_magicc7 to translate MAGICC7's configuration. They match MAGICC7 v7.5.3 on its SSP245 runs.
  • A port of FaIR v2.2.5 (rscm.fair), with ensemble runs and conversion from a configured fair.FAIR.
  • Model specs and setups (rscm.spec) to inspect, compare and run many models in parallel.
  • TOML model configuration (rscm.config) and shared variable names (rscm.names).
  • MCMC calibration and point estimation (rscm.calibrate).

Quickstart

pip install rscm

The quickstart runs the two-layer model under a forcing ramp and plots its warming in about 20 lines. The documentation covers the MAGICC and FaIR models, coupling components and writing your own.

Development

This project comprises a Rust workspace in crates/ and a Python package (rscm) which includes a Python extension module to provide access to the Rust library.

Dependencies

The following dependencies are required to build the project:

  • Rust
  • uv (Python package management)

After these dependencies have been installed the local Python environment can be initialised using:

make virtual-environment

Rust is a compiled language, so the Python extension module must be recompiled after any changes to the Rust code. This can be done using:

make build-dev

Tests

Rust unit tests are embedded alongside the implementation files. The rscm crate holds the Python bindings, so it is excluded when running the Rust tests directly:

cargo test --workspace --exclude rscm

make test rebuilds the extension and runs both the Python and Rust test suites.

Documentation

A mkdocs-based documentation site is in the docs/ directory. These docs provide an overview of the whole project and provide reference documentation for the Python interface with some example notebooks.

These docs can be built using:

make docs

The documentation for the Rust codebase can be built using:

make docs-rust

Metadata

Release files for rscm 0.9.1

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

Source distribution (sdist)

Source distribution for rscm 0.9.1
File Size Uploaded Provenance Actions
rscm-0.9.1.tar.gz 1.0 MB With provenance Details for rscm-0.9.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for rscm 0.9.1
File Actions
rscm-0.9.1-cp313-abi3-win_amd64.whl CPython 3.13 abi3 Windows x86-64 Details for rscm-0.9.1-cp313-abi3-win_amd64.whl
rscm-0.9.1-cp313-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.13 abi3 Linux glibc 2.17+ x86-64 Details for rscm-0.9.1-cp313-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
rscm-0.9.1-cp313-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.13 abi3 Linux glibc 2.17+ ARM64 Details for rscm-0.9.1-cp313-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
rscm-0.9.1-cp313-abi3-macosx_11_0_arm64.whl CPython 3.13 abi3 macOS 11.0+ ARM64 Details for rscm-0.9.1-cp313-abi3-macosx_11_0_arm64.whl
rscm-0.9.1-cp313-abi3-macosx_10_12_x86_64.whl CPython 3.13 abi3 macOS 10.12+ x86-64 Details for rscm-0.9.1-cp313-abi3-macosx_10_12_x86_64.whl

Total release size: 21.1 MB

Release files / rscm-0.9.1.tar.gz

Download URL rscm-0.9.1.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
ff8c0aa763e47a54542f46cefbb67af1f0d2301a54d3021174a84d4aec8d5af5
BLAKE2b-256 checksum
How to use checksums
9afc717828303de78ad8a351c9009e399627e5837cdfa15bf586aa9125b584b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / rscm-0.9.1-cp313-abi3-win_amd64.whl

Download URL rscm-0.9.1-cp313-abi3-win_amd64.whl
Size 3.5 MB
Tags CPython 3.13 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
870421fb88eae2794c997cdcc9d92c95f2789aff1360126ec3935302ae4f6dec
BLAKE2b-256 checksum
How to use checksums
63b3504bae5dbaecc21509f3e208ca2a4483e33b62df1f7b63565cbe30409737
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / rscm-0.9.1-cp313-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL rscm-0.9.1-cp313-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 4.2 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
48bd2a470004198027bd3e020a78f472008ef455dcbefc669f659a18d7e2c88e
BLAKE2b-256 checksum
How to use checksums
d47b5a366e3cce3bf84a6900368ddcf583c23337db79423b3a71015d767ea3d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / rscm-0.9.1-cp313-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL rscm-0.9.1-cp313-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 4.5 MB
Tags CPython 3.13 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
3e1c333af44684b1ce20981cad318eb1e56ce28a0004ff8a943b72f218287c44
BLAKE2b-256 checksum
How to use checksums
026aeaa8fd016b6ac1f1ac138877baf06f84f259f2a84df7bac01dc9ee44dd2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / rscm-0.9.1-cp313-abi3-macosx_11_0_arm64.whl

Download URL rscm-0.9.1-cp313-abi3-macosx_11_0_arm64.whl
Size 3.9 MB
Tags CPython 3.13 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4fef92804985680f83c9d422f2d17241a583fb49d40985cac327664bdeac02a6
BLAKE2b-256 checksum
How to use checksums
4628a3614ce6cfdd4782b75edffa9ece1f2643cb4afc085950dc36748ae6eb32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / rscm-0.9.1-cp313-abi3-macosx_10_12_x86_64.whl

Download URL rscm-0.9.1-cp313-abi3-macosx_10_12_x86_64.whl
Size 3.9 MB
Tags CPython 3.13 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
acdc1fcfcc7dea3ad24b8fc327df465d94ff43610be8e13027ecaac4180bce73
BLAKE2b-256 checksum
How to use checksums
09496ba278858f1eb7b618e558872a99e2ee242ea8a9ffcadcddc267340789f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for rscm 0.9.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for rscm-0.9.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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