Repository navigation
Commit 3a39b1b
Add CDR options: rock_weathering, biochar, afforestation, perennials (#2405)
* Add biochar as a carbon dioxide removal technology
Ported from the a_CDRs development branch. Adds biochar production
(biomass pyrolysis with stable-carbon soil storage) as an optional CDR
technology: a single pyrolysis Link per node converting biomass and
electricity into stored biochar-carbon, with optional district-heat
export. Land potential comes from the shared CORINE-based availability-
matrix machinery (determine_carbon_dioxide_removal_availability_matrix +
build_available_land), reused here for biochar only.
Off by default (sector.biochar.enable: false).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Add perennialisation as a carbon dioxide removal technology
Ported from the a_CDRs development branch. Adds perennialisation
(conversion of 1st-generation biofuel cropland to perennial grasses) as
an optional CDR technology: land area displaced from 1G biofuel
production is backed out from existing biomass potentials and NUTS2 crop
yields, converted to a CO2 sequestration potential, and dispatched via an
April-October harvest profile. Retrieves NUTS2 Eurostat crop-yield data
from the same Zenodo-archived CO2-removal data package afforestation
will also depend on (rules/retrieve.smk: retrieve_co2_removal_data, kept
byte-identical to avoid conflicts whichever PR merges first).
Off by default (sector.perennials: false).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Add enhanced rock weathering as a carbon dioxide removal technology
Ported from the a_CDRs development branch. Adds enhanced rock weathering
(CDR via accelerated mineral carbonation) as an optional CDR technology:
a single Link per node draws electricity and atmospheric CO2 into a
fixed-capacity Store representing the cumulative mineral-carbonation
potential, dimensioned from CORINE-eligible land area filtered by an
annual-mean-temperature threshold (atlite cutout), rather than a
bioclimate-zone raster.
Shares the build_available_land aggregation step with the
biochar/afforestation PRs (kept byte-identical to avoid conflicts
whichever merges first); the availability-matrix step itself is rock
weathering's own script since it needs the temperature exclusion the
shared determine_availability_matrix.py doesn't have.
Off by default (sector.rock_weathering: false).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Remove check_biochar_pipeline.py diagnostic script from PR
* Remove check_biochar_pipeline.py diagnostic script from PR
* Remove check_perennials_pipeline.py diagnostic script from PR
* delete check_pipeline_files
* delete check_pipeline_files
* 1G biofuels are substituted is are located in the not included biomass class
* added determine availability matrix based on mean annual Tmin filtering
* doc: release_note.md
* updated technology-data version in versions.csv
* Add config schema validation and docs for rock weathering
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix add_rock_weathering: pass inputs as parameters instead of reading global snakemake
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix: update electricity grid connection cost lookup for technology-data v0.15.0 rename
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update config/schema.default.json
Co-authored-by: martavp <30744159+martavp@users.noreply.github.com>
* Update config/schema.default.json
Co-authored-by: martavp <30744159+martavp@users.noreply.github.com>
* Update scripts/lib/validation/config/rock_weathering.py
Co-authored-by: martavp <30744159+martavp@users.noreply.github.com>
* Update doc/release_notes.md
Co-authored-by: martavp <30744159+martavp@users.noreply.github.com>
* ERW PR update
* Update config/config.default.yaml
Co-authored-by: martavp <30744159+martavp@users.noreply.github.com>
* Update config/config.default.yaml
Co-authored-by: martavp <30744159+martavp@users.noreply.github.com>
* Update config/config.default.yaml
Co-authored-by: martavp <30744159+martavp@users.noreply.github.com>
* biochar PR small fix variables names
* all biochar params under sectors in config.default
* pre PR changes
* Add config schema validation for perennials; add release note
Mirrors the pattern set by rock_weathering_PR (scripts/lib/validation/config/rock_weathering.py):
- New scripts/lib/validation/config/perennials.py with PerennialsConfig
(sequestration_co2), registered on the top-level ConfigSchema in
_schema.py.
- sector.py: added sector.perennials: bool (the CDR technology toggle).
- data.py: added data.co2_removal_data as a _DataSourceConfig (feeds
the retrieve_co2_removal_data rule's Eurostat crop yield inputs).
- Regenerated config/config.default.yaml and config/schema.default.json
from the new models; both config-schema sync tests now pass (they
were failing before, same root cause as biochar_PR's still-open gap:
perennials config wasn't covered by any pydantic model).
Also added a release_notes.md entry matching rock_weathering_PR's
"Upcoming Release" bullet style, referencing tracking issue #2143.
This commit was preceded by a merge of upstream/master (57 commits
behind at the time) to pull in the validation framework this depends
on. That merge had exactly one conflict, in scripts/_helpers.py: both
branches had independently appended unrelated functions to the end of
the file (resolve_biomass_classes() here vs. _simplify_polys()/
load_data_versions() upstream) - resolved by keeping both.
Full test suite (29 tests) and ruff both pass. Verified via Snakemake
dry-run with sector.perennials temporarily set to true that the full
77-job DAG resolves end-to-end.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mh2EaBSg63Gsi4epA1Rmky
* added release notes and schema
* new rules documented in doc.md
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix add_perennials cost lookup: "perennials refining" -> "perennials gbr"
The technology-data source (BertoGBG/technology-data pypsa-eur_AA branch)
names this row "perennials gbr" (Grass BioRefinery), not "perennials
refining". add_perennials() was looking up the wrong name, which would
crash with KeyError: 'perennials refining' as soon as a run actually
exercised this path. Already fixed on the `perennialisation` branch;
ported here and to a_CDRs/heat_industry.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Rename biochar pyrolysis cost parameter yield-biochar to biochar-output
Follows the rename in technology-data PR #258.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Unpack only the perennialisation inputs from the CO2-removal dataset
The co2_removal_data dataset (now Zenodo v1.0.2) is shared with the
afforestation and unsustainable biomass upstream emissions PRs. All of them
add the same versions.csv row and data config entry and the same
retrieve_co2_removal_data rule; each unpacks only its own files.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* yield-biochar → biochar-output
* Update scripts/build_perennials_yields.py
Co-authored-by: martavp <30744159+martavp@users.noreply.github.com>
* Update scripts/prepare_sector_network.py
Co-authored-by: martavp <30744159+martavp@users.noreply.github.com>
* Update scripts/prepare_sector_network.py
Co-authored-by: martavp <30744159+martavp@users.noreply.github.com>
* Update scripts/build_perennials_yields_eurostat_average.py
Co-authored-by: martavp <30744159+martavp@users.noreply.github.com>
* Update scripts/prepare_sector_network.py
Co-authored-by: martavp <30744159+martavp@users.noreply.github.com>
* Add afforestation as a carbon dioxide removal technology
New option sector: afforestation. Eligible land per node is CORINE
transitional woodland-shrub (renewable: afforestation). The sequestration
potential uses rotation-averaged rates per NUTS-2 region from the JRC forest
yield tables, with FluxCom monthly profiles. Credited removal is
the gross sequestration times afforestation: crcf_efficiency (0.8). In
myopic runs, forests planted in earlier horizons reduce the remaining
potential.
Input data come from the co2_removal_data dataset (CO2-removal, Zenodo),
unpacked by retrieve_co2_removal_data. Config schema, defaults,
configuration docs and release note included.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Derive the perennial land from ENSPRESO 2020 scaled to Eurostat, credit soil carbon only
Land: the cropland available for perennials is the JRC ENSPRESO 1G biofuel
potential of 2020 (NUTS2, crop and fuel mix), scaled with one factor so that
its fuel energy matches the Eurostat unsustainable bioliquids of the model
(the same data as the phase-out), freed by the phase-out (1 - r) and divided
by the Eurostat crop yields as before. Crop energy is converted to fuel
energy with the technology-data crop-to-fuel efficiencies (ethanol from
wheat, ethanol from sugar beet, biodiesel from rapeseed) and the fuel heating
values (new config entries biomass: unsustainable_bioliquids). The fixed
ENSPRESO year replaces biofuels_1G_land_year. The new parameter
perennials: land_multiplier (default 1) is a user-driven correction of the
land available, e.g. to project it.
Credit: grass-clover is fertilised like the 1G crops it replaces (DCA report
193, Jorgensen et al. 2021), so the field N2O and the ammonia demand do not
change and the avoided-emissions credit and the ammonia coupling are
removed. The credit is the soil carbon only: perennials:
sequestration_co2_credited (renamed from sequestration_co2, default 2
tCO2/ha/yr, the credited share of the 2.2 tCO2/ha/yr soil carbon gain of
grass-clover). add_perennials is back to the reviewed version; the link uses
the technology-data entry "perennials refining".
Data: CO2-removal v1.0.4 (https://doi.org/10.5281/zenodo.23954311). The
co2_removal_data entry (versions.csv, data config) is shared with the
afforestation PR and the PR on the upstream emissions of the unsustainable
bioliquids; each PR's retrieve_co2_removal_data unpacks only its own files
(here the Eurostat crop tables and the crop heating values). Perennialisation
runs on its own and does not overlap with that option: the bioliquids factor
covers the land still used for bioliquids, perennialisation only the freed
land.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Add upstream emissions of unsustainable bioliquids
New option sector: unsustainable_biomass_upstream_emissions (default false)
adds the cultivation emissions of the unsustainable bioliquids as exogenous
emission factors from the new dataset co2_removal_data (CO2-removal v1.0.4,
https://doi.org/10.5281/zenodo.23954311).
The 1st-generation crops of the bioliquids (bioethanol from wheat, biodiesel
from rapeseed; JRC input data for the RED default values, Edwards et al.
2019) on the land still used for bioliquids are allocated to the energy
system. The factor counts their field emissions in full (N2O and soil
acidification from the N fertiliser) and the production emissions of the
imported N fertiliser (30%, made outside Europe from fossil fuels). The N
fertiliser made in Europe is already in the industrial ammonia demand,
which is not changed: land freed by the phase-out returns to food/feed with
the same fertiliser per hectare, outside the model. Farm diesel is in the
agriculture energy demand. This gives 0.091 (bioethanol) and 0.066
(biodiesel) tCO2eq/MWh of fuel, weighted per node by the country's Eurostat
production mix and added to the CO2 balance of the unsustainable
bioliquids link.
Unsustainable solid biomass is not changed: in Eurostat it is about 93%
fuelwood, wood residues and black liquor, without cultivation emissions.
Its harvest, processing and transport energy in Europe is already in the
energy demand (JRC, Giuntoli et al. 2017), and forest carbon stock changes
belong to the LULUCF sink.
The co2_removal_data entry (versions.csv, data config) is shared with the
afforestation and perennialisation PRs; each PR's retrieve_co2_removal_data
unpacks only its own files (here the upstream emissions table).
* Document retrieve_co2_removal_data
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Document retrieve_co2_removal_data
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Document retrieve_co2_removal_data
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Release note: reasoning for no upstream factor on unsustainable solid biomass
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* unify land-based carbon dioxide removal options
Rock weathering, biochar and afforestation share one land eligibility
rule and one config layout under sector. Removal is permanent, so the
options draw from the atmosphere at a constant rate without extra buses
or stores; the annual potential caps the capacity.
* simplify upstream emissions of unsustainable bioliquids
Carry the emissions as a column of the biomass potentials instead of a
separate per-node table, and unpack the dataset into its data folder.
* document land reuse after rotation age
* apply land share once in available land; acknowledge funding
* follow technology-data rename of afforestation; clearer config names
* document land-based removal in the carbon management design page
* rename land rule, add archive entry, limit link clipping to listed carriers
* cite Fernandes et al. (2026) for the carbon dioxide removal dataset
* update technology-data to v0.16.0
* replace regional yield chain by a lean perennials option
* join perennial grass with the land-based removal options
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Fabian Neumann <fabian.neumann@outlook.de>
Co-authored-by: martavp <30744159+martavp@users.noreply.github.com>1 parent 109fec0 commit 3a39b1b
23 files changed
Lines changed: 1396 additions & 19 deletions
File tree
- config
- data
- doc
- design
- rules
- rules
- scripts
- lib/validation/config
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
909 | 909 | | |
910 | 910 | | |
911 | 911 | | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
912 | 956 | | |
913 | 957 | | |
914 | 958 | | |
| |||
1030 | 1074 | | |
1031 | 1075 | | |
1032 | 1076 | | |
| 1077 | + | |
1033 | 1078 | | |
1034 | 1079 | | |
1035 | 1080 | | |
| |||
1452 | 1497 | | |
1453 | 1498 | | |
1454 | 1499 | | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
1455 | 1503 | | |
1456 | 1504 | | |
1457 | 1505 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
698 | 698 | | |
699 | 699 | | |
700 | 700 | | |
| 701 | + | |
701 | 702 | | |
702 | 703 | | |
703 | 704 | | |
| |||
746 | 747 | | |
747 | 748 | | |
748 | 749 | | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
0 commit comments