User Guide¶
Which path am I on?¶
Two questions. What are you dividing up — a budget (one cumulative number per country) or a pathway (a value for every year)? And who between — individual countries, or the model regions of an integrated assessment model?
| Countries | IAM model regions | |
|---|---|---|
| A budget | 302_example_templates_budget_allocations |
run 400 once, then 402_example_iamc_budget_allocations |
| A pathway | 303_example_templates_pathway_allocations |
run 400 once, then 403_example_iamc_pathway_allocations |
| Your own settings | 301_custom_fair_share_allocation |
run 400 once, then 401_custom_iamc_allocation |
Then read the guide for your column:
- Fair shares for countries — the country notebooks, step by step.
- Fair shares for IAM model regions — the IAMC notebooks, including the mandatory notebook 400 step.
Calling the library from your own Python code instead? See Python API.
Both workflows produce relative shares (0-1) and absolute emissions (Mt CO2e).
Outputs & Provenance¶
All outputs include full parameter provenance for reproducibility:
| Output Type | Description | Format |
|---|---|---|
| Relative shares | Country fractions summing to 1.0 | Parquet, CSV |
| Absolute emissions | Shares x global target in physical units | Parquet, CSV |
| Comparison tables | Results across multiple approaches/parameters | CSV (wide) |
| Parameter manifest | All parameter combinations used | CSV |
Parquet files contain complete metadata:
- Every parameter value (weights, years, functional forms)
- Data source identifiers (
emissions-source,gdp-source,population-source, etc.) - Approach names and configuration
This enables exact reproduction and comparison of results. See Output Schema for full column documentation.
Configuration¶
Data sources are configured in src/fair_shares/conf/data_sources/.
| Data Type | Options |
|---|---|
| Target | rcbs, pathway, rcb-pathways |
| Emissions | e.g. PRIMAP-hist |
| Population | UN/OWID |
| GDP | World Bank WDI |
| Gini | UNU-WIDER |
Licences differ by source, and not all of them are permissive — the WIID inequality data is CC BY-NC-SA, which rules out commercial reuse and carries its ShareAlike terms into anything derived from it. Check Data Sources & Licensing before you republish or redistribute any of it.
Target Sources¶
fair-shares currently supports three target sources:
| Target | Type | Allocation Functions | Use When | Output |
|---|---|---|---|---|
rcbs |
Budget | Budget approaches | Calculating cumulative national budget allocations | Single value per country |
pathway |
Pathway | Pathway approaches | Allocating annual emissions following scenario pathways (e.g. AR6) | Time series of annual values |
rcb-pathways |
Hybrid | Pathway approaches | Using budget data but need year-by-year pathways | Budget to global pathway to allocated annually |
rcb-pathways workflow: First converts a global remaining carbon budget into a global annual emission pathway (using exponential decay), then allocates that pathway among countries using pathway allocation functions. See Other Operations for details on pathway generation.
Choosing an Approach¶
Two questions:
- Budget or pathway? Do you need a single cumulative target or year-by-year emissions?
- Which principles? Equal entitlements, historical differentiation (via early
allocation_yearfor cumulative accounting and/orpre_allocation_responsibility_weightfor per-capita emissions rescaling), capability (ability to pay, from the allocation year onwards) -- or some combination? Note: "subsistence protection" as a live approach choice has diminished operational value — Shue 2014 later acknowledged that what the poor need is energy, not emissions rights. The more relevant operational concept is the GDR development threshold Baer 2013 (note: GDR was designed for burden-sharing; fair-shares adapts its capability metric for entitlement allocation), which exempts individuals below a development income threshold from capability calculations. Baer 2013 sets it at 7,500 dollars on a 2005 PPP base (8,500 on a 2010 base); giveincome_floorin the price base of the GDP series (default: constant 2021 international dollars).
Then:
- Approach Catalog -- all 10 approaches at a glance
- Principle-to-Code -- how principles map to parameters
- Allocation Approaches -- design and parameter details