Skip to main content

CARBONICA: Advanced Planetary Carbon Accounting & Feedback Dynamics

Project description

๐ŸŒ CARBONICA

Carbon Accounting and Regulatory Budget Observatory for Networked Integrated Carbon Assessment

"Weighing the Breath of the Earth." โ€” Samir Baladi, March 2026

DOI PyPI Dashboard License ORCID


Overview

CARBONICA is a physically rigorous eight-parameter Earth system science framework for real-time quantification of global carbon cycle dynamics, natural sink capacity, and the critical threshold at which Earth's self-regulating biogeochemical systems approach irreversible saturation.

The framework integrates all governing parameters โ€” from photosynthetic quantum efficiency at the leaf scale to permafrost thaw flux at the continental scale โ€” into a single composite metric: the Planetary Carbon Saturation Index (PCSI).

Current PCSI (2025): 0.78 / 1.00 โ€” Transitional stress zone, accelerating toward critical threshold.

The PCSI has risen from 0.31 (1960) to 0.78 (2025) at an accelerating rate of 0.012 units/year โ€” three times the 1960โ€“1990 rate โ€” driven by simultaneous intensification of three active positive feedback loops.


Table of Contents


Scientific Context

Carbon is the molecular backbone of life and the primary radiative forcing agent of Earth's climate. The global carbon cycle has never in its geological history experienced a perturbation at the current rate: atmospheric COโ‚‚ is rising at 2.4 ppm/year โ€” approximately 24,000ร— faster than during typical interglacial periods.

Every natural carbon sink on Earth is showing signs of stress, saturation, or reversal:

  • The Amazon rainforest has entered net carbon source status in its southeastern sector.
  • Arctic permafrost is thawing at rates exceeding model projections.
  • The Revelle Factor has increased from 9.1 (pre-industrial) to 12.4 (2025), indicating a 36% reduction in ocean buffer capacity.
  • Photosynthetic quantum yield ฮฆ_q is declining at โˆ’0.9%/decade globally.

CARBONICA is designed to track all eight of these parallel, interacting stress signals in an integrated framework validated against a 65-year observational baseline (1960โ€“2025).


The Eight Parameters

# Parameter Symbol Role Critical Threshold
1 Net Primary Productivity NPP Terrestrial photosynthetic carbon uptake < 52.0 PgC/yr
2 Oceanic Carbon Sink Strength S_ocean Air-sea COโ‚‚ exchange < โˆ’1.5 PgC/yr (weakening alarm)
3 Atmospheric COโ‚‚ Growth Rate G_atm Net source-sink imbalance โ‰ฅ 3.5 ppm/yr
4 Permafrost Thaw Flux F_perma Frozen carbon reserve release โ‰ฅ 2.8 PgC/yr (self-sustaining)
5 Carbon Buffer Capacity ฮฒ (= 1/R) Ocean carbonate buffer chemistry โ‰ค 1/14.0 = 0.071
6 Soil Carbon Residence Time ฯ„_soil Stability of terrestrial carbon reservoir < 18 yr (net source)
7 Anthropogenic Emission Factor E_anth Direct human perturbation term Net-zero by ~2050
8 Photosynthetic Quantum Yield ฮฆ_q Biophysical solar-to-carbon efficiency < 0.040 (severe stress)

The Planetary Carbon Saturation Index (PCSI)

PCSI = wโ‚ยทNPP* + wโ‚‚ยทS*_ocean + wโ‚ƒยทG*_atm + wโ‚„ยทF*_perma + wโ‚…ยทฮฒ* + wโ‚†ยทฯ„*_soil + wโ‚‡ยทE*_anth + wโ‚ˆยทฮฆ*_q

Each parameter is normalized to [0, 1] where 0 = pre-industrial baseline and 1 = defined critical saturation threshold.

Optimized weights (PCA-regularized regression, 1960โ€“2000 training period):

wโ‚ NPP wโ‚‚ S_ocean wโ‚ƒ G_atm wโ‚„ F_perma wโ‚… ฮฒ wโ‚† ฯ„_soil wโ‚‡ E_anth wโ‚ˆ ฮฆ_q
0.16 0.18 0.20 0.19 0.12 0.07 0.05 0.03

PCSI Interpretation:

Range Status
PCSI < 0.55 ๐ŸŸข Stable โ€” sinks dominating
0.55 โ€“ 0.80 ๐ŸŸก Transitional stress โ€” sink weakening detectable
> 0.80 ๐Ÿ”ด Critical โ€” self-reinforcing feedbacks emerging
= 1.00 โ˜ ๏ธ Defined saturation โ€” irreversible runaway carbon feedback

Validation against the 65-year Keeling Curve: rยฒ = 0.947 (prospective 2001โ€“2025 test period).


Installation

Python Package

pip install carbonica

From Source

git clone https://gitlab.com/gitdeeper9/carbonica.git
cd carbonica
pip install -e .

Requirements

python >= 3.9
numpy >= 1.24
scipy >= 1.10
pandas >= 2.0
netCDF4 >= 1.6
h5py >= 3.8
matplotlib >= 3.7
xarray >= 2023.1

Quick Start

from carbonica import CarbonBudget, OceanSinkModel, PermafrostEngine, QuantumYieldTracker
from carbonica.pcsi import PCSI

# Initialize the full eight-parameter system
budget = CarbonBudget(baseline_year=1960, end_year=2025)
budget.load_observations()   # auto-fetches NOAA, SOCAT, GCP, GTN-P streams

# Compute current PCSI
index = PCSI(budget)
print(f"Current PCSI (2025): {index.current:.3f}")
# โ†’ Current PCSI (2025): 0.780

# Run SSP3-7.0 projection to 2070
projection = index.project(scenario="SSP3-7.0", end_year=2070, n_ensemble=10000)
print(f"PCSI critical threshold crossing: {projection.threshold_year(0.90)}")
# โ†’ PCSI critical threshold crossing: 2047โ€“2053

# Inspect individual parameters
print(budget.permafrost.F_perma_2025)     # โ†’ 1.71 ยฑ 0.40 PgC/yr
print(budget.ocean.revelle_factor_2025)   # โ†’ 12.4
print(budget.biosphere.phi_q_trend)       # โ†’ -0.009 /decade

Project Structure

carbonica/
โ”‚
โ”œโ”€โ”€ README.md                          # This file
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ pyproject.toml
โ”œโ”€โ”€ setup.cfg
โ”‚
โ”œโ”€โ”€ carbonica/                         # Core Python package
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”œโ”€โ”€ carbonica_engine.py            # Main engine โ€” all four core modules
โ”‚   โ”œโ”€โ”€ pcsi.py                        # Planetary Carbon Saturation Index
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ modules/
โ”‚   โ”‚   โ”œโ”€โ”€ carbon_budget.py           # CarbonBudget: master dC_atm/dt integrator
โ”‚   โ”‚   โ”œโ”€โ”€ ocean_sink.py              # OceanSinkModel: Wanninkhof (2014) gas transfer
โ”‚   โ”‚   โ”œโ”€โ”€ permafrost_engine.py       # PermafrostEngine: Qโ‚โ‚€ decomposition model
โ”‚   โ”‚   โ””โ”€โ”€ quantum_yield_tracker.py   # QuantumYieldTracker: GOSAT/OCO-2 SIF retrieval
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ data/
โ”‚   โ”‚   โ”œโ”€โ”€ loaders/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ noaa_loader.py         # NOAA Mauna Loa COโ‚‚ record
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ socat_loader.py        # SOCAT surface ocean pCOโ‚‚ atlas
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ gcp_loader.py          # Global Carbon Project annual budgets
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ gtnp_loader.py         # GTN-P permafrost borehole network
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ glodap_loader.py       # GLODAP ocean carbonate chemistry
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ modis_loader.py        # MODIS MOD17 NPP + fAPAR
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ sif_loader.py          # GOSAT + OCO-2 solar-induced fluorescence
โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ””โ”€โ”€ cache/                     # Local NetCDF4 / HDF5 observation cache
โ”‚   โ”‚       โ”œโ”€โ”€ keeling_1960_2025.nc
โ”‚   โ”‚       โ”œโ”€โ”€ socat_v2023.nc
โ”‚   โ”‚       โ”œโ”€โ”€ gtnp_boreholes.nc
โ”‚   โ”‚       โ””โ”€โ”€ glodap_v2.nc
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ models/
โ”‚   โ”‚   โ”œโ”€โ”€ box_model.py               # 5-reservoir ODE system (Appendix B)
โ”‚   โ”‚   โ”œโ”€โ”€ lue_model.py               # Light Use Efficiency NPP model
โ”‚   โ”‚   โ”œโ”€โ”€ revelle.py                 # Revelle Factor time-series derivation
โ”‚   โ”‚   โ””โ”€โ”€ ssp_scenarios.py           # SSP1-1.9 / SSP3-7.0 / SSP5-8.5 forcing
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ statistics/
โ”‚   โ”‚   โ”œโ”€โ”€ monte_carlo.py             # 10,000-member PCSI uncertainty ensemble
โ”‚   โ”‚   โ”œโ”€โ”€ sem.py                     # Structural Equation Modelling (DAG)
โ”‚   โ”‚   โ”œโ”€โ”€ pca_regression.py          # PCA-regularized weight optimization
โ”‚   โ”‚   โ””โ”€โ”€ cusum.py                   # CUSUM change-point detection
โ”‚   โ”‚
โ”‚   โ””โ”€โ”€ visualization/
โ”‚       โ”œโ”€โ”€ pcsi_dashboard.py          # Real-time web dashboard backend
โ”‚       โ”œโ”€โ”€ parameter_plots.py         # Eight-parameter time series plots
โ”‚       โ”œโ”€โ”€ correlation_matrix.py      # Heatmap renderer
โ”‚       โ””โ”€โ”€ projection_plot.py         # SSP scenario fan charts
โ”‚
โ”œโ”€โ”€ notebooks/                         # Jupyter notebooks โ€” all manuscript figures
โ”‚   โ”œโ”€โ”€ 01_keeling_validation.ipynb    # Fig 1: PCSI vs Keeling Curve 1960โ€“2025
โ”‚   โ”œโ”€โ”€ 02_revelle_factor.ipynb        # Fig 2: Revelle Factor time series
โ”‚   โ”œโ”€โ”€ 03_permafrost_flux.ipynb       # Fig 3: F_perma reconstruction & projection
โ”‚   โ”œโ”€โ”€ 04_quantum_yield.ipynb         # Fig 4: Global ฮฆ_q trend (GOSAT + OCO-2)
โ”‚   โ”œโ”€โ”€ 05_correlation_matrix.ipynb    # Fig 5: Eight-parameter correlation heatmap
โ”‚   โ”œโ”€โ”€ 06_amazon_case_study.ipynb     # Fig 6: Amazon carbon pivot 2018โ€“2023
โ”‚   โ”œโ”€โ”€ 07_arctic_subsystem.ipynb      # Fig 7: Arctic permafrost spatial analysis
โ”‚   โ”œโ”€โ”€ 08_ssp_projections.ipynb       # Fig 8: PCSI SSP scenario fan (2025โ€“2070)
โ”‚   โ”œโ”€โ”€ 09_sem_pathways.ipynb          # Fig 9: SEM carbon feedback DAG
โ”‚   โ”œโ”€โ”€ 10_monte_carlo_uncertainty.ipynb
โ”‚   โ”œโ”€โ”€ 11_tipping_points.ipynb
โ”‚   โ””โ”€โ”€ 12_policy_budget_correction.ipynb
โ”‚
โ”œโ”€โ”€ data/                              # Raw & processed archival data
โ”‚   โ”œโ”€โ”€ keeling/                       # NOAA Mauna Loa monthly COโ‚‚ (1958โ€“2025)
โ”‚   โ”œโ”€โ”€ socat/                         # SOCAT v2023 pCOโ‚‚ cruise tracks
โ”‚   โ”œโ”€โ”€ gcp/                           # Global Carbon Project 2023 budget tables
โ”‚   โ”œโ”€โ”€ gtnp/                          # GTN-P borehole temperatures (1,200+ sites)
โ”‚   โ”œโ”€โ”€ glodap/                        # GLODAP v2 ocean DIC / alkalinity
โ”‚   โ”œโ”€โ”€ modis/                         # MODIS MOD17 NPP 500 m / 8-day mosaics
โ”‚   โ”œโ”€โ”€ gosat/                         # GOSAT SIF L2 retrievals (2009โ€“2025)
โ”‚   โ””โ”€โ”€ oco2/                          # OCO-2 SIF retrievals (2014โ€“2025)
โ”‚
โ”œโ”€โ”€ results/                           # Model outputs (gitignored large files)
โ”‚   โ”œโ”€โ”€ pcsi_timeseries_1960_2025.nc   # Full PCSI parameter inversion archive
โ”‚   โ”œโ”€โ”€ pcsi_ensemble_ssp370.h5        # 10,000-member Monte Carlo ensemble
โ”‚   โ”œโ”€โ”€ pcsi_ensemble_ssp119.h5
โ”‚   โ””โ”€โ”€ pcsi_ensemble_ssp585.h5
โ”‚
โ”œโ”€โ”€ docs/                              # Documentation
โ”‚   โ”œโ”€โ”€ api/                           # Auto-generated API reference (Sphinx)
โ”‚   โ”œโ”€โ”€ theory/
โ”‚   โ”‚   โ”œโ”€โ”€ box_model.md               # ODE system derivation (Appendix B)
โ”‚   โ”‚   โ”œโ”€โ”€ revelle_factor.md          # Revelle Factor chemistry
โ”‚   โ”‚   โ””โ”€โ”€ pcsi_formulation.md        # PCSI weight optimization methodology
โ”‚   โ””โ”€โ”€ changelog/
โ”‚       โ””โ”€โ”€ CHANGELOG.md
โ”‚
โ””โ”€โ”€ tests/                             # Unit & integration tests
    โ”œโ”€โ”€ test_carbon_budget.py
    โ”œโ”€โ”€ test_ocean_sink.py
    โ”œโ”€โ”€ test_permafrost_engine.py
    โ”œโ”€โ”€ test_quantum_yield.py
    โ”œโ”€โ”€ test_pcsi.py
    โ””โ”€โ”€ test_box_model.py

Data Sources

Parameter Primary Source Record Length Resolution
G_atm (COโ‚‚ growth rate) NOAA Mauna Loa Observatory 1960โ€“2025 (65 yr) Daily; ยฑ0.05 ppm
S_ocean (air-sea flux) SOCAT Surface Ocean COโ‚‚ Atlas v2023 1970โ€“2025 (55 yr) 1ยฐร—1ยฐ monthly
NPP (productivity) MODIS MOD17 + NASA OCO-2 SIF 2000โ€“2025 (MODIS) 500 m / 8-day
F_perma (permafrost) GTN-P Global Terrestrial Network 1990โ€“2025 (35 yr) 1,200+ boreholes
ฮฒ (Revelle Factor) GLODAP Global Ocean Data Analysis Project v2 1972โ€“2025 Full-depth carbonate
ฯ„_soil (residence time) ISCN + FLUXNET (900+ eddy covariance sites) 1980โ€“2025 71,000+ profiles
E_anth (anthropogenic) Global Carbon Project + IEA COโ‚‚ Statistics 1960โ€“2025 (65 yr) Annual, country-level
ฮฆ_q (quantum yield) GOSAT SIF (2009โ€“2025) + OCO-2 SIF (2014โ€“2025) 16 yr 2ยฐร—2ยฐ monthly

Key Results

PCSI Decadal Evolution

Decade PCSI G_atm (ppm/yr) S_ocean (PgC/yr) F_perma (PgC/yr)
1960โ€“1970 0.31 0.90 โˆ’1.21 ~0.0
1971โ€“1980 0.38 1.28 โˆ’1.44 ~0.0
1981โ€“1990 0.43 1.51 โˆ’1.78 ~0.01
1991โ€“2000 0.49 1.63 โˆ’1.93 0.05
2001โ€“2010 0.58 1.88 โˆ’2.24 0.31
2011โ€“2020 0.68 2.19 โˆ’2.71 0.98
2021โ€“2025 0.78 2.38 โˆ’3.08 1.71

Critical Findings

  • Permafrost feedback: F_perma has risen from near-zero (1990) to 1.71 ยฑ 0.40 PgC/yr (2025) โ€” constituting 4.3% of global emissions. Abrupt thaw (thermokarst) contributes 31% of current F_perma despite covering only 5% of permafrost area.
  • Revelle Factor acceleration: Ocean buffer capacity declining at 0.067 R-units/year (2.5ร— the 1960โ€“1990 rate). Projected to reach 14.0 by 2050, reducing ocean uptake efficiency from 28% to ~18%.
  • Quantum yield decline: Global ฮฆ_q declining at โˆ’0.9%/decade (2009โ€“2025), with tropical ecosystems at โˆ’2.1%/decade.
  • Policy implication: Achieving net-zero human emissions by 2050 would not prevent PCSI exceeding 0.85 by 2055, because autonomous permafrost and soil carbon feedbacks will contribute 2.5โ€“4.0 PgC/yr through 2060. The effective remaining carbon budget for 1.5ยฐC is 15โ€“25 PgC smaller than the IPCC AR6 estimate.

PCSI Projection

Scenario PCSI = 0.90 Threshold Crossing
SSP1-1.9 (aggressive mitigation) ~2055โ€“2067
SSP3-7.0 (current trajectory) 2047โ€“2053
SSP5-8.5 (high emissions) ~2041โ€“2046

carbonica_engine.py Modules

CarbonBudget

Integrates the master dC_atm/dt equation in real time from NOAA, SOCAT, GCP, and GTN-P data streams. Outputs parameter time series at monthly resolution; propagates uncertainty through Monte Carlo sampling (10,000 ensemble members). Detects rate-of-change anomalies using CUSUM change-point detection.

OceanSinkModel

Implements the Wanninkhof (2014) gas transfer parameterization globally on a 1ยฐร—1ยฐ grid using ERA5 wind fields and SOCAT pCOโ‚‚ data. Tracks Revelle Factor evolution across 12 ocean basin sub-regions. Real-time ฮฒ monitoring with 30-day forecast of ocean uptake efficiency.

PermafrostEngine

Couples GTN-P active layer depth to the Qโ‚โ‚€ decomposition model. Separates gradual thaw from abrupt thaw (thermokarst) signals using GRACE-FO lake area change. Projects F_perma under SSP scenarios with explicit treatment of tipping point dynamics (bistable permafrost state).

QuantumYieldTracker

Derives global ฮฆ_q maps from GOSAT and OCO-2 SIF retrievals using the Frankenberg et al. (2011) fluorescence-photosynthesis algorithm. Detects drought and heat stress episodes as ฮฆ_q anomalies below the biome-specific climatological mean. Feeds directly into the NPP forward model.


Reproducing the Analysis

All manuscript figures are fully reproducible from the provided notebooks:

# Clone repository
git clone https://gitlab.com/gitdeeper9/carbonica.git
cd carbonica

# Install dependencies
pip install -e ".[notebooks]"

# Launch Jupyter
jupyter lab notebooks/

# Or run all notebooks headlessly
jupyter nbconvert --to notebook --execute notebooks/*.ipynb

All 12 notebooks reproduce the corresponding manuscript figures and statistical outputs without any external dependencies beyond the data cached in data/.


Citation

If you use CARBONICA in your research, please cite:

@article{baladi2026carbonica,
  title     = {{CARBONICA}: Advanced Planetary Carbon Accounting \& Feedback Dynamics โ€”
               A Multi-Parameter Earth System Science Framework for Real-Time
               Quantification of Global Carbon Cycle Dynamics, Sink Saturation,
               and Planetary Self-Regulation Thresholds},
  author    = {Baladi, Samir},
  journal   = {Nature Climate Change},
  year      = {2026},
  month     = {March},
  doi       = {10.5281/zenodo.18995446},
  url       = {https://doi.org/10.5281/zenodo.18995446}
}

Author

Samir Baladi Interdisciplinary AI Researcher Ronin Institute / Rite of Renaissance


License

This project is fully open-access. Code, datasets, PCSI projection ensembles (NetCDF4/HDF5), and all supplementary materials are archived at:


CARBONICA v1.0.0 ยท Submitted to Nature Climate Change, March 2026

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

carbonica-1.0.0.tar.gz (116.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

carbonica-1.0.0-py3-none-any.whl (66.2 kB view details)

Uploaded Python 3

File details

Details for the file carbonica-1.0.0.tar.gz.

File metadata

  • Download URL: carbonica-1.0.0.tar.gz
  • Upload date:
  • Size: 116.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: CARBONICA-Uploader/1.0

File hashes

Hashes for carbonica-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6d22d21c183defbf12eaf7aa58bff405a27ae2624488a3493630cbcaad7891ba
MD5 438b249a8baee0fde9708629736242cf
BLAKE2b-256 56d2d1ee76c54def16d0a5b3819130aad2989de82dedb9d23addf8b588bb9e5b

See more details on using hashes here.

File details

Details for the file carbonica-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: carbonica-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 66.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: CARBONICA-Uploader/1.0

File hashes

Hashes for carbonica-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b166dc627a5b1efe87832227b24032b7682715ad6a1cdc232cf749437fd8ba72
MD5 b298092d6b5455373b681e1492ecf1bc
BLAKE2b-256 5ec4d56345e2b3aeea03ef88a5a74c2cb91ef5f562cee6f936290ce75682b9f9

See more details on using hashes here.

Supported by

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