|
@@ -1,6 +1,7 @@
|
|
"""
|
|
"""
|
|
-Configuration for Mongolia BUR2
|
|
|
|
|
|
+Configuration file to read Mongolia's BUR 2.
|
|
"""
|
|
"""
|
|
|
|
+
|
|
coords_terminologies = {
|
|
coords_terminologies = {
|
|
"area": "ISO3",
|
|
"area": "ISO3",
|
|
"category": "IPCC2006_PRIMAP",
|
|
"category": "IPCC2006_PRIMAP",
|
|
@@ -15,10 +16,10 @@ inv_conf = {
|
|
"cat_code_regexp": r"^(?P<code>[a-zA-Z0-9\.]{1,11})[\s\.].*",
|
|
"cat_code_regexp": r"^(?P<code>[a-zA-Z0-9\.]{1,11})[\s\.].*",
|
|
"cat_codes_manual": {
|
|
"cat_codes_manual": {
|
|
# remove whitespace at start of line
|
|
# remove whitespace at start of line
|
|
- " 2.G.2 -SF6 and PFCs from Other Product Uses": "2.G.2 - SF6 and PFCs from Other Product Uses",
|
|
|
|
- " 2.G.3 -N2O from Product Uses": "2.G.3 - N2O from Product Uses",
|
|
|
|
- " 1.C.1 -Transport of CO2": "1.C.1 - Transport of CO2",
|
|
|
|
- " 3.C.1 -Emissions from biomass burning ": "3.C.1",
|
|
|
|
|
|
+ "2.G.2 -SF6 and PFCs from Other Product Uses": "2.G.2 - SF6 and PFCs from Other Product Uses",
|
|
|
|
+ "2.G.3 -N2O from Product Uses": "2.G.3 - N2O from Product Uses",
|
|
|
|
+ "1.C.1 -Transport of CO2": "1.C.1 - Transport of CO2",
|
|
|
|
+ "3.C.1 -Emissions from biomass burning ": "3.C.1",
|
|
"Memo Items (5)": "MEMO",
|
|
"Memo Items (5)": "MEMO",
|
|
"International Bunkers": "M.BK",
|
|
"International Bunkers": "M.BK",
|
|
"1.A.3.a.i - International Aviation (International Bunkers) (1)": "M.BK.A",
|
|
"1.A.3.a.i - International Aviation (International Bunkers) (1)": "M.BK.A",
|
|
@@ -77,7 +78,7 @@ inv_conf_per_year = {
|
|
"1.A.3.a.i - International Aviation (International",
|
|
"1.A.3.a.i - International Aviation (International",
|
|
],
|
|
],
|
|
-2: ["3.C.1 - Emissions from biomass burning"],
|
|
-2: ["3.C.1 - Emissions from biomass burning"],
|
|
- 2: [" 3.C.1 -Emissions from biomass burning"],
|
|
|
|
|
|
+ 2: ["3.C.1 -Emissions from biomass burning"],
|
|
},
|
|
},
|
|
"page_defs": {
|
|
"page_defs": {
|
|
"176": {
|
|
"176": {
|
|
@@ -97,6 +98,7 @@ inv_conf_per_year = {
|
|
"cols": ["287,328,365,410,449,482,540,600,636,675,721,750"],
|
|
"cols": ["287,328,365,410,449,482,540,600,636,675,721,750"],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ "skip_rows": 11,
|
|
},
|
|
},
|
|
"2020": {
|
|
"2020": {
|
|
"page_defs": {
|
|
"page_defs": {
|
|
@@ -137,6 +139,7 @@ inv_conf_per_year = {
|
|
"2.B.4 - Caprolactam. Glyoxal and Glyoxylic Acid",
|
|
"2.B.4 - Caprolactam. Glyoxal and Glyoxylic Acid",
|
|
],
|
|
],
|
|
},
|
|
},
|
|
|
|
+ "skip_rows": 0,
|
|
},
|
|
},
|
|
}
|
|
}
|
|
|
|
|
|
@@ -180,8 +183,9 @@ inv_conf_per_entity = {
|
|
},
|
|
},
|
|
"cat_codes_manual": {"Total National Emissions (Gg CO2e)": "0"},
|
|
"cat_codes_manual": {"Total National Emissions (Gg CO2e)": "0"},
|
|
"category_column": "Categories",
|
|
"category_column": "Categories",
|
|
- "columns_to_drop": ["Share, %", "Categories"],
|
|
|
|
- "years": ["2007", "2010", "2015", "2020"],
|
|
|
|
|
|
+ # 2007 will break gas basket consistency check
|
|
|
|
+ "columns_to_drop": ["Share, %", "Categories", "2007"],
|
|
|
|
+ "years": ["2010", "2015", "2020"],
|
|
"unit": "Gg CO2e",
|
|
"unit": "Gg CO2e",
|
|
},
|
|
},
|
|
"N2O": {
|
|
"N2O": {
|
|
@@ -230,6 +234,7 @@ inv_conf_per_entity = {
|
|
"columns_to_drop": ["Share, %", "Categories"],
|
|
"columns_to_drop": ["Share, %", "Categories"],
|
|
"years": ["1990", "1995", "2000", "2005", "2010", "2015", "2020"],
|
|
"years": ["1990", "1995", "2000", "2005", "2010", "2015", "2020"],
|
|
"unit": "Gg",
|
|
"unit": "Gg",
|
|
|
|
+ "del_value": [("1995", "4"), ("2005", "4")],
|
|
},
|
|
},
|
|
"CO2": {
|
|
"CO2": {
|
|
"page_defs": {
|
|
"page_defs": {
|
|
@@ -257,7 +262,7 @@ inv_conf_per_entity = {
|
|
],
|
|
],
|
|
5: ["2.D - Non-Energy"],
|
|
5: ["2.D - Non-Energy"],
|
|
-2: [
|
|
-2: [
|
|
- "Categories ",
|
|
|
|
|
|
+ "Categories",
|
|
"Emissions and Removals (Gg CO2)",
|
|
"Emissions and Removals (Gg CO2)",
|
|
],
|
|
],
|
|
},
|
|
},
|
|
@@ -265,14 +270,404 @@ inv_conf_per_entity = {
|
|
"Total National Emissions (Gg CO2)",
|
|
"Total National Emissions (Gg CO2)",
|
|
"Total National Removals (Gg CO2)",
|
|
"Total National Removals (Gg CO2)",
|
|
],
|
|
],
|
|
- "columns_to_drop": ["Share, %", " Categories "],
|
|
|
|
|
|
+ "columns_to_drop": ["Share, %", "Categories"],
|
|
"cat_codes_manual": {"Total National Emissions and Removals (Gg CO2)": "0"},
|
|
"cat_codes_manual": {"Total National Emissions and Removals (Gg CO2)": "0"},
|
|
- "category_column": " Categories ",
|
|
|
|
|
|
+ "category_column": "Categories",
|
|
"years": ["1990", "1995", "2000", "2005", "2010", "2015", "2020"],
|
|
"years": ["1990", "1995", "2000", "2005", "2010", "2015", "2020"],
|
|
"unit": "Gg",
|
|
"unit": "Gg",
|
|
},
|
|
},
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+inv_conf_harvested_wood_products = {
|
|
|
|
+ "page": "151",
|
|
|
|
+ "category_column": "Categories",
|
|
|
|
+ "cat_codes_manual": {
|
|
|
|
+ "GHG emission": "3.D.1",
|
|
|
|
+ },
|
|
|
|
+ "unit": "Gg",
|
|
|
|
+ "entity": "CO2",
|
|
|
|
+ # Table consists of three stacked parts
|
|
|
|
+ "parts": {
|
|
|
|
+ "part_1": {
|
|
|
|
+ "page_defs": {
|
|
|
|
+ "area": ["52,690,555,647"],
|
|
|
|
+ "cols": ["101,149,196,231,268,310,351,398,433,476,514"],
|
|
|
|
+ },
|
|
|
|
+ "rows_to_fix": {
|
|
|
|
+ 3: [
|
|
|
|
+ "GHG",
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ "part_2": {
|
|
|
|
+ "page_defs": {
|
|
|
|
+ "area": ["52,637,555,596"],
|
|
|
|
+ "cols": ["99,150,197,239,281,326,372,425,469,516"],
|
|
|
|
+ },
|
|
|
|
+ "rows_to_fix": {
|
|
|
|
+ 3: [
|
|
|
|
+ "GHG",
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ "part_3": {
|
|
|
|
+ "page_defs": {
|
|
|
|
+ "area": ["52,591,550,547"],
|
|
|
|
+ "cols": ["106,156,197,239,281,326,372,420,465,509"],
|
|
|
|
+ },
|
|
|
|
+ "rows_to_fix": {
|
|
|
|
+ 3: [
|
|
|
|
+ "GHG",
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+inv_conf_per_sector = {
|
|
|
|
+ "total": {
|
|
|
|
+ "page_defs": {
|
|
|
|
+ "32": {
|
|
|
|
+ "area": ["64,649,547,106"],
|
|
|
|
+ "cols": ["106,182,237,294,345,403,480"],
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ "entity": "KYOTOGHG (SARGWP100)",
|
|
|
|
+ "unit": "Gg CO2e",
|
|
|
|
+ "last_year": "2020",
|
|
|
|
+ "rows_to_fix": {
|
|
|
|
+ -3: [
|
|
|
|
+ "Year",
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ "year_column": "Year",
|
|
|
|
+ "cat_codes_manual": {
|
|
|
|
+ "Energy": "1",
|
|
|
|
+ "IPPU": "2",
|
|
|
|
+ "Agriculture": "M.AG",
|
|
|
|
+ "Waste": "4",
|
|
|
|
+ "LULUCF": "M.LULUCF",
|
|
|
|
+ "Total (excl. LULUCF)": "M.0.EL",
|
|
|
|
+ "Total (incl. LULUCF)": "0",
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ "energy": {
|
|
|
|
+ "page_defs": {
|
|
|
|
+ "43": {
|
|
|
|
+ "area": ["59,478,544,79"],
|
|
|
|
+ "cols": ["97,160,220,262,338,388,452,502"],
|
|
|
|
+ },
|
|
|
|
+ "44": {
|
|
|
|
+ "area": ["60,773,546,582"],
|
|
|
|
+ "cols": ["103,165,226,274,329,384,444,494"],
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ "entity": "KYOTOGHG (SARGWP100)",
|
|
|
|
+ "unit": "Gg CO2e",
|
|
|
|
+ "last_year": "2020",
|
|
|
|
+ "rows_to_fix": {
|
|
|
|
+ 11: [
|
|
|
|
+ "Years",
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ "rows_to_drop": [0, 2],
|
|
|
|
+ "year_column": "Years",
|
|
|
|
+ "cat_codes_manual": {
|
|
|
|
+ "1.A.1.a.i Electricity generation": "1.A.1.a.i",
|
|
|
|
+ "1.A.1.a.ii Combined heat and ipower peneration (CHP)": "1.A.1.a.ii",
|
|
|
|
+ "1.A.1.c.ii Other energy ndustries": "1.A.1.c.ii",
|
|
|
|
+ "Manufacturing industries and construction": "1.A.2",
|
|
|
|
+ "1.A.3.a 1 Civil aviation t": "1.A.3.a",
|
|
|
|
+ ".A.3.b Road ransportation": "1.A.3.b",
|
|
|
|
+ "1.A.3.c Railways": "1.A.3.c",
|
|
|
|
+ "1.A.3.e.ii Off-road": "1.A.3.e.ii",
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ "energy cont": {
|
|
|
|
+ "page_defs": {
|
|
|
|
+ "44": {
|
|
|
|
+ "area": ["59,552,553,84"],
|
|
|
|
+ "cols": ["103,173,219,274,330,382,443,494"],
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ "entity": "KYOTOGHG (SARGWP100)",
|
|
|
|
+ "unit": "Gg CO2e",
|
|
|
|
+ "last_year": "2020",
|
|
|
|
+ "rows_to_fix": {
|
|
|
|
+ 8: [
|
|
|
|
+ "Years",
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ "rows_to_drop": [0, 2],
|
|
|
|
+ "year_column": "Years",
|
|
|
|
+ "cat_codes_manual": {
|
|
|
|
+ "Other sectors 1.A.4.a Commercial/ Institutional": "1.A.4.a",
|
|
|
|
+ "1.A.4.b Residen-tial": "1.A.4.b",
|
|
|
|
+ "1.A.4.c.i Agriculture -Stationary": "1.A.4.c.i",
|
|
|
|
+ "1.A.4.c.ii Agriculture -Off-road vehicles and other machinery": "1.A.4.c.ii",
|
|
|
|
+ "Non-specified 1.A.5.a Stationary": "1.A.5.a",
|
|
|
|
+ "Fugitive emis 1.B.1.a Coal mining & handling (surface mining)": "1.B.1.a",
|
|
|
|
+ "sions from fu 1.B.2.a.ii Oil -Flaring": "1.B.2.a.ii",
|
|
|
|
+ "els 1.B.2.a.iii.2 Oil production and upgrading": "1.B.2.a.iii",
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ "ippu": {
|
|
|
|
+ "page_defs": {
|
|
|
|
+ "74": {
|
|
|
|
+ "area": ["68,701,544,313"],
|
|
|
|
+ "cols": ["97,188,261,358,462"],
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ "entity": "KYOTOGHG (SARGWP100)",
|
|
|
|
+ "unit": "Gg CO2e",
|
|
|
|
+ "last_year": "2020",
|
|
|
|
+ "rows_to_fix": {
|
|
|
|
+ 3: [
|
|
|
|
+ "Year",
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ "year_column": "Year",
|
|
|
|
+ "cat_codes_manual": {
|
|
|
|
+ "2.A-Mineral industry": "2.A",
|
|
|
|
+ "2.C-Metal industry": "2.C",
|
|
|
|
+ "2.D-Non-energy products from fuels and solvent use": "2.D",
|
|
|
|
+ "2.F-Product uses as substitutes for ozone depleting substances": "2.F",
|
|
|
|
+ "2. IPPU Total": "2",
|
|
|
|
+ },
|
|
|
|
+ "remove_duplicates": ["2"],
|
|
|
|
+ },
|
|
|
|
+ "livestock": {
|
|
|
|
+ "page_defs": {
|
|
|
|
+ "103": {
|
|
|
|
+ "area": ["62,480,544,82"],
|
|
|
|
+ "cols": ["97,182,259,326,403,474"],
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ "unit": "Gg CO2e",
|
|
|
|
+ "last_year": "2020",
|
|
|
|
+ "rows_to_fix": {
|
|
|
|
+ 3: [
|
|
|
|
+ "Year",
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ "rows_to_drop": [0, 1],
|
|
|
|
+ "year_column": "Year",
|
|
|
|
+ "cat_codes_manual": {
|
|
|
|
+ "Fermentation Gg": "3.A.1",
|
|
|
|
+ "Management CH4": "3.A.2",
|
|
|
|
+ "(Total CH4)": "3.A",
|
|
|
|
+ "Fermentation Gg C": "3.A.1",
|
|
|
|
+ "Management O2e": "3.A.2",
|
|
|
|
+ "(Gg CO2e)": "3.A",
|
|
|
|
+ },
|
|
|
|
+ "multi_entity": {
|
|
|
|
+ "unit": ["Gg", "Gg", "Gg", "Gg CO2e", "Gg CO2e", "Gg CO2e"],
|
|
|
|
+ "entity": [
|
|
|
|
+ "CH4",
|
|
|
|
+ "CH4",
|
|
|
|
+ "CH4",
|
|
|
|
+ "KYOTOGHG (SARGWP100)",
|
|
|
|
+ "KYOTOGHG (SARGWP100)",
|
|
|
|
+ "KYOTOGHG (SARGWP100)",
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ "biomass_burning": {
|
|
|
|
+ "page_defs": {
|
|
|
|
+ "114": {
|
|
|
|
+ "area": ["70,214,544,78"],
|
|
|
|
+ "cols": ["116,185,239,304,365,426,491"],
|
|
|
|
+ },
|
|
|
|
+ "115": {
|
|
|
|
+ "area": ["72,777,545,505"],
|
|
|
|
+ "cols": ["123,190,250,313,374,438,495"],
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ "last_year": "2020",
|
|
|
|
+ "col_to_use": 5,
|
|
|
|
+ "rows_to_fix": {
|
|
|
|
+ 7: [
|
|
|
|
+ "3.C.1 - Emiss",
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ "year_column": "Year",
|
|
|
|
+ # TODO: These categories are technically duplicate, just with a different unit
|
|
|
|
+ "categories_to_drop": [
|
|
|
|
+ "3.C.1 -Emiss CH4 (Gg CO2e)",
|
|
|
|
+ "ions from bioma (CO2e) N2O (Gg CO2e)",
|
|
|
|
+ "ss burning Total (Gg CO2e)",
|
|
|
|
+ ],
|
|
|
|
+ "cat_codes_manual": {
|
|
|
|
+ "3.C.1 CH4 (Gg)": "3.C.1",
|
|
|
|
+ "-Emissions fr N2O (Gg)": "3.C.1",
|
|
|
|
+ "om biomass bur NOx (Gg)": "3.C.1",
|
|
|
|
+ "ning CO(Gg)": "3.C.1",
|
|
|
|
+ },
|
|
|
|
+ "multi_entity": {
|
|
|
|
+ "unit": ["Gg", "Gg", "Gg", "Gg"],
|
|
|
|
+ "entity": [
|
|
|
|
+ "CH4",
|
|
|
|
+ "N2O",
|
|
|
|
+ "NOx",
|
|
|
|
+ "CO",
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ "managed_soils_direct": {
|
|
|
|
+ "page_defs": {
|
|
|
|
+ "119": {
|
|
|
|
+ "area": ["70,600,541,173"],
|
|
|
|
+ "cols": ["114,191,245,328,400,476"],
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ "last_year": "2020",
|
|
|
|
+ "col_to_use": 3,
|
|
|
|
+ "rows_to_fix": {
|
|
|
|
+ 10: [
|
|
|
|
+ "Urine and dung",
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ "year_column": "Year",
|
|
|
|
+ # # TODO: technically duplicate, just with a different unit
|
|
|
|
+ "categories_to_drop": [
|
|
|
|
+ "3.C.4 -Direct N2O Emissions from managed soils (CO2e) Gg CO2e",
|
|
|
|
+ "Inorganic N fertilizer application N2O (Gg)",
|
|
|
|
+ "Organic N applied as fertilizer (manure) N2O (Gg)",
|
|
|
|
+ "Urine and dung N deposited on pasture, range and paddock by grazing animals N2O (Gg)",
|
|
|
|
+ "N in crop residues N2O (Gg)",
|
|
|
|
+ ],
|
|
|
|
+ "cat_codes_manual": {
|
|
|
|
+ # TODO the next 4 categories are made up placeholders
|
|
|
|
+ # "Inorganic N fertilizer application N2O (Gg)": "3.C.4.i",
|
|
|
|
+ # "Organic N applied as fertilizer (manure) N2O (Gg)": "3.C.4.ii",
|
|
|
|
+ # "Urine and dung N deposited on pasture, range and paddock by grazing animals N2O (Gg)": "3.C.4.iii",
|
|
|
|
+ # "N in crop residues N2O (Gg)": "3.C.4.iiii",
|
|
|
|
+ "3.C.4 -Direct N2O Emissions from managed soils N2O (Gg)": "3.C.4",
|
|
|
|
+ },
|
|
|
|
+ "entity": "N2O",
|
|
|
|
+ "unit": "Gg",
|
|
|
|
+ # "multi_entity": {
|
|
|
|
+ # "unit": ["Gg", "Gg", "Gg", "Gg", "Gg"],
|
|
|
|
+ # "entity": [
|
|
|
|
+ # "N2O",
|
|
|
|
+ # "N2O",
|
|
|
|
+ # "N2O",
|
|
|
|
+ # "N2O",
|
|
|
|
+ # "N2O",
|
|
|
|
+ # ],
|
|
|
|
+ # },
|
|
|
|
+ },
|
|
|
|
+ "managed_soils_indirect": {
|
|
|
|
+ "page_defs": {
|
|
|
|
+ "125": {
|
|
|
|
+ "area": ["74,214,539,83"],
|
|
|
|
+ "cols": ["125,222,309,423"],
|
|
|
|
+ },
|
|
|
|
+ "126": {
|
|
|
|
+ "area": ["72,775,539,369"],
|
|
|
|
+ "cols": ["148,248,351,459"],
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ "last_year": "2020",
|
|
|
|
+ "col_to_use": 3,
|
|
|
|
+ "rows_to_fix": {
|
|
|
|
+ 7: [
|
|
|
|
+ "3.C.5 - Indirect N2O",
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ "year_column": "Year",
|
|
|
|
+ # # TODO: technically duplicate, just with a different unit
|
|
|
|
+ "categories_to_drop": [
|
|
|
|
+ "3.C.5 -Indirect N2O emissions from managed soils Gg CO2e",
|
|
|
|
+ "Volatilization pathway Gg N2O",
|
|
|
|
+ "Leaching/runoff pathway Gg N2O",
|
|
|
|
+ ],
|
|
|
|
+ "cat_codes_manual": {
|
|
|
|
+ # TODO the next 2 categories are made up placeholders
|
|
|
|
+ # "Volatilization pathway Gg N2O": "3.C.5.i",
|
|
|
|
+ # "Leaching/runoff pathway Gg N2O": "3.C.5.ii",
|
|
|
|
+ "3.C.5 -Indirect N2O emissions from managed soils Gg N2O": "3.C.5",
|
|
|
|
+ },
|
|
|
|
+ "entity": "N2O",
|
|
|
|
+ "unit": "Gg",
|
|
|
|
+ },
|
|
|
|
+ "bio_waste": {
|
|
|
|
+ "page_defs": {
|
|
|
|
+ "157": {
|
|
|
|
+ "area": ["68,748,541,228"],
|
|
|
|
+ "cols": ["108,176,222,283,332,387,429"],
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ "last_year": "2020",
|
|
|
|
+ "rows_to_fix": {
|
|
|
|
+ 2: [
|
|
|
|
+ "Year",
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ "year_column": "Year",
|
|
|
|
+ # # TODO: technically duplicate, just with a different unit
|
|
|
|
+ "categories_to_drop": [
|
|
|
|
+ "Total emissions from SWDS Gg CO2e",
|
|
|
|
+ "Food",
|
|
|
|
+ "Garden",
|
|
|
|
+ "Paper Gg CH4",
|
|
|
|
+ "Wood",
|
|
|
|
+ "Textile",
|
|
|
|
+ ],
|
|
|
|
+ "cat_codes_manual": {
|
|
|
|
+ # TODO the categories are made up placeholders
|
|
|
|
+ # "Food": "4.A.1.food",
|
|
|
|
+ # "Garden": "4.A.1.garden",
|
|
|
|
+ # "Paper Gg CH4": "4.A.1.paper",
|
|
|
|
+ # "Wood": "4.A.1.wood",
|
|
|
|
+ # "Textile": "4.A.1.textile",
|
|
|
|
+ "Total": "4.A.1.",
|
|
|
|
+ },
|
|
|
|
+ "entity": "CH4 ",
|
|
|
|
+ "unit": "Gg",
|
|
|
|
+ },
|
|
|
|
+ "wastewater": {
|
|
|
|
+ "page_defs": {
|
|
|
|
+ "161": {
|
|
|
|
+ "area": ["60,480,541,85"],
|
|
|
|
+ "cols": ["98,165,226,281,340,408,465"],
|
|
|
|
+ },
|
|
|
|
+ "162": {
|
|
|
|
+ "area": ["62,775,541,613"],
|
|
|
|
+ "cols": ["110,176,229,288,349,414,486"],
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ "last_year": "2020",
|
|
|
|
+ "col_to_use": 7,
|
|
|
|
+ "rows_to_fix": {
|
|
|
|
+ 10: [
|
|
|
|
+ "Wastewater",
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ "year_column": "Year",
|
|
|
|
+ # # TODO: technically duplicate, just with a different unit
|
|
|
|
+ "categories_to_drop": [
|
|
|
|
+ "Domestic wastewater CH4 emissions",
|
|
|
|
+ "Domestic wastewater N2O emissions (Gg C",
|
|
|
|
+ "Industrial wastewater CH4 emissions O2 e)",
|
|
|
|
+ "Wastewater treatment and discharge Total emissions",
|
|
|
|
+ ],
|
|
|
|
+ "cat_codes_manual": {
|
|
|
|
+ "Domestic wastewater CH4 emissions (Gg CH4)": "4.D.1",
|
|
|
|
+ "Domestic wastewater N2O emissions (Gg N2O)": "4.D.1",
|
|
|
|
+ "Industrial wastewater CH4 emissions (Gg CH4)": "4.D.2",
|
|
|
|
+ },
|
|
|
|
+ "multi_entity": {
|
|
|
|
+ "unit": ["Gg", "Gg", "Gg"],
|
|
|
|
+ "entity": [
|
|
|
|
+ "CH4",
|
|
|
|
+ "N2O",
|
|
|
|
+ "CH4",
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+}
|
|
|
|
+
|
|
# primap2 format conversion
|
|
# primap2 format conversion
|
|
coords_cols = {
|
|
coords_cols = {
|
|
"category": "category",
|
|
"category": "category",
|
|
@@ -326,35 +721,30 @@ meta_data = {
|
|
country_processing_step1 = {
|
|
country_processing_step1 = {
|
|
"tolerance": 0.01,
|
|
"tolerance": 0.01,
|
|
"aggregate_cats": {
|
|
"aggregate_cats": {
|
|
- # TODO: Remove "M.3.C.AG". Just here to see previous aggregation setup.
|
|
|
|
- # "M.3.C.AG": {
|
|
|
|
- # "sources": [
|
|
|
|
- # "3.C.1",
|
|
|
|
- # "3.C.2",
|
|
|
|
- # "3.C.3",
|
|
|
|
- # "3.C.4",
|
|
|
|
- # "3.C.5",
|
|
|
|
- # "3.C.6",
|
|
|
|
- # "3.C.7",
|
|
|
|
- # "3.C.8",
|
|
|
|
- # ],
|
|
|
|
- # "name": "Aggregate sources and non-CO2 emissions sources on land "
|
|
|
|
- # "(Agriculture)",
|
|
|
|
- # },
|
|
|
|
- "M.3.D.AG": {"sources": ["3.D.2"], "name": "Other (Agriculture)"},
|
|
|
|
- # TODO: In this case 3.C should be equivalent to M.3.C.AG, but I'm not sure.
|
|
|
|
|
|
+ "M.3.D.AG": {"sources": ["3.D.2"]},
|
|
|
|
+ "M.3.C.AG": {
|
|
|
|
+ "sources": ["3.C.1", "3.C.4", "3.C.5"],
|
|
|
|
+ },
|
|
"M.AG.ELV": {
|
|
"M.AG.ELV": {
|
|
- "sources": ["3.C", "M.3.D.AG"],
|
|
|
|
- "name": "Agriculture excluding livestock",
|
|
|
|
|
|
+ "sources": ["M.3.C.AG", "M.3.D.AG"],
|
|
},
|
|
},
|
|
- "M.AG": {"sources": ["3.A", "M.AG.ELV"], "name": "Agriculture"},
|
|
|
|
- "M.3.D.LU": {"sources": ["3.D.1"], "name": "Other (LULUCF)"},
|
|
|
|
- "M.LULUCF": {"sources": ["3.B", "M.3.D.LU"], "name": "LULUCF"},
|
|
|
|
|
|
+ # "3.A" : {"sources" : ["3.A.1", "3.A.2"]},
|
|
|
|
+ # "3.C" : {"sources" : ["3.C.1",
|
|
|
|
+ # "3.C.2",
|
|
|
|
+ # "3.C.3",
|
|
|
|
+ # "3.C.4",
|
|
|
|
+ # "3.C.5",
|
|
|
|
+ # "3.C.6",
|
|
|
|
+ # "3.C.7",
|
|
|
|
+ # "3.C.8", ]},
|
|
|
|
+ # "3.D" : {"sources" : ["3.D.1", "3.D.2"]},
|
|
|
|
+ "M.AG": {"sources": ["3.A", "M.AG.ELV"]},
|
|
|
|
+ "M.3.D.LU": {"sources": ["3.D.1"]},
|
|
|
|
+ "M.LULUCF": {"sources": ["3.B", "M.3.D.LU"]},
|
|
"M.0.EL": {
|
|
"M.0.EL": {
|
|
- "sources": ["1", "2", "M.AG", "4", "5"],
|
|
|
|
- "name": "National total emissions excluding LULUCF",
|
|
|
|
|
|
+ "sources": ["1", "2", "M.AG", "4"],
|
|
},
|
|
},
|
|
- "3": {"sources": ["M.AG", "M.LULUCF"], "name": "AFOLU"}, # consistency check
|
|
|
|
|
|
+ "3": {"sources": ["M.AG", "M.LULUCF"]}, # consistency check
|
|
"0": {"sources": ["1", "2", "3", "4"]}, # consistency check
|
|
"0": {"sources": ["1", "2", "3", "4"]}, # consistency check
|
|
},
|
|
},
|
|
"basket_copy": {
|
|
"basket_copy": {
|
|
@@ -362,8 +752,36 @@ country_processing_step1 = {
|
|
"entities": ["HFCS", "PFCS"],
|
|
"entities": ["HFCS", "PFCS"],
|
|
"source_GWP": gwp_to_use,
|
|
"source_GWP": gwp_to_use,
|
|
},
|
|
},
|
|
|
|
+ "downscale": {
|
|
|
|
+ "sectors": {
|
|
|
|
+ "1.B_CH4": {
|
|
|
|
+ "basket": "1.B",
|
|
|
|
+ "basket_contents": ["1.B.1", "1.B.2"],
|
|
|
|
+ "entities": ["CH4"],
|
|
|
|
+ "dim": f"category ({coords_terminologies['category']})",
|
|
|
|
+ # "tolerance": 0.05, # some inconsistencies (rounding?)
|
|
|
|
+ },
|
|
|
|
+ "1.B_CO2": {
|
|
|
|
+ "basket": "1.B",
|
|
|
|
+ "basket_contents": ["1.B.1", "1.B.2"],
|
|
|
|
+ "entities": ["CO2"],
|
|
|
|
+ "dim": f"category ({coords_terminologies['category']})",
|
|
|
|
+ "sel": {
|
|
|
|
+ "time": [
|
|
|
|
+ "2000",
|
|
|
|
+ "2005",
|
|
|
|
+ "2010",
|
|
|
|
+ "2015",
|
|
|
|
+ "2020",
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ }
|
|
|
|
+ },
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+country_processing_gas_baskets = {"tolerance": 0.02}
|
|
|
|
+
|
|
gas_baskets = {
|
|
gas_baskets = {
|
|
"FGASES (SARGWP100)": ["HFCS (SARGWP100)", "PFCS (SARGWP100)", "SF6", "NF3"],
|
|
"FGASES (SARGWP100)": ["HFCS (SARGWP100)", "PFCS (SARGWP100)", "SF6", "NF3"],
|
|
"FGASES (AR4GWP100)": ["HFCS (AR4GWP100)", "PFCS (AR4GWP100)", "SF6", "NF3"],
|
|
"FGASES (AR4GWP100)": ["HFCS (AR4GWP100)", "PFCS (AR4GWP100)", "SF6", "NF3"],
|