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
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
- The Eight Parameters
- The Planetary Carbon Saturation Index (PCSI)
- Installation
- Quick Start
- Project Structure
- Data Sources
- Key Results
- carbonica_engine.py Modules
- Reproducing the Analysis
- Citation
- Author
- License
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
- ๐ง gitdeeper@gmail.com
- ๐ฌ ORCID: 0009-0003-8903-0029
- ๐ Dashboard: carbonica.netlify.app
- ๐ป GitHub: github.com/gitdeeper9/carbonica
- ๐ฆ GitLab: gitlab.com/gitdeeper9/carbonica
License
This project is fully open-access. Code, datasets, PCSI projection ensembles (NetCDF4/HDF5), and all supplementary materials are archived at:
- Zenodo: https://doi.org/10.5281/zenodo.18995446
- PyPI:
pip install carbonica - Dashboard: https://carbonica.netlify.app
CARBONICA v1.0.0 ยท Submitted to Nature Climate Change, March 2026
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d22d21c183defbf12eaf7aa58bff405a27ae2624488a3493630cbcaad7891ba
|
|
| MD5 |
438b249a8baee0fde9708629736242cf
|
|
| BLAKE2b-256 |
56d2d1ee76c54def16d0a5b3819130aad2989de82dedb9d23addf8b588bb9e5b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b166dc627a5b1efe87832227b24032b7682715ad6a1cdc232cf749437fd8ba72
|
|
| MD5 |
b298092d6b5455373b681e1492ecf1bc
|
|
| BLAKE2b-256 |
5ec4d56345e2b3aeea03ef88a5a74c2cb91ef5f562cee6f936290ce75682b9f9
|