transforms.co2_prices
Extract and convert a CO2 price pathway.
The transform is name-agnostic: it takes an already-loaded frame with canonical columns
[region, year, value] (the loader/Coupler handles the GDX symbol + renames).
convert_co2_prices(prices, currency_factor=1.0, *, carbon_to_co2=True, value_col='value')
¶
Convert CO2 prices to PyPSA units: tC→tCO2 (optional) and a currency factor.
Source code in src/iampypsa/transforms/co2_prices.py
extract_co2_prices(raw, regions=None, years=None, *, region_col='region', year_col='year', value_col='value')
¶
Extract the per-(region, year) CO2 price pathway, filtered and reindexed.
Filters to regions if given and, if years is given, reindexes to the full
regions × years grid (missing entries filled with 0, matching the Eur rule).